amazonka-certificatemanager-pca-1.6.1: Amazon Certificate Manager Private Certificate Authority SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CertificateManagerPCA.GetCertificate

Contents

Description

Retrieves a certificate from your private CA. The ARN of the certificate is returned when you call the IssueCertificate function. You must specify both the ARN of your private CA and the ARN of the issued certificate when calling the GetCertificate function. You can retrieve the certificate if it is in the ISSUED state. You can call the CreateCertificateAuthorityAuditReport function to create a report that contains information about all of the certificates issued and revoked by your private CA.

Synopsis

Creating a Request

getCertificate Source #

Creates a value of GetCertificate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gcCertificateAuthorityARN - The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority . This must be of the form: arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012 .
  • gcCertificateARN - The ARN of the issued certificate. The ARN contains the certificate serial number and must be in the following form: arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012 certificate286535153982981100925020015808220737245

data GetCertificate Source #

See: getCertificate smart constructor.

Instances
Eq GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Data GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetCertificate -> c GetCertificate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetCertificate #

toConstr :: GetCertificate -> Constr #

dataTypeOf :: GetCertificate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetCertificate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetCertificate) #

gmapT :: (forall b. Data b => b -> b) -> GetCertificate -> GetCertificate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetCertificate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetCertificate -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetCertificate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetCertificate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetCertificate -> m GetCertificate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCertificate -> m GetCertificate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCertificate -> m GetCertificate #

Read GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Show GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Generic GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Associated Types

type Rep GetCertificate :: Type -> Type #

Hashable GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

ToJSON GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

AWSRequest GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Associated Types

type Rs GetCertificate :: Type #

ToHeaders GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

ToPath GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

ToQuery GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

NFData GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Methods

rnf :: GetCertificate -> () #

type Rep GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

type Rep GetCertificate = D1 (MetaData "GetCertificate" "Network.AWS.CertificateManagerPCA.GetCertificate" "amazonka-certificatemanager-pca-1.6.1-HitWzcqvY41EzhTFciBw3m" False) (C1 (MetaCons "GetCertificate'" PrefixI True) (S1 (MetaSel (Just "_gcCertificateAuthorityARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_gcCertificateARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs GetCertificate Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Request Lenses

gcCertificateAuthorityARN :: Lens' GetCertificate Text Source #

The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority . This must be of the form: arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012 .

gcCertificateARN :: Lens' GetCertificate Text Source #

The ARN of the issued certificate. The ARN contains the certificate serial number and must be in the following form: arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012 certificate286535153982981100925020015808220737245

Destructuring the Response

getCertificateResponse Source #

Creates a value of GetCertificateResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gcrsCertificate - The base64 PEM-encoded certificate specified by the CertificateArn parameter.
  • gcrsCertificateChain - The base64 PEM-encoded certificate chain that chains up to the on-premises root CA certificate that you used to sign your private CA certificate.
  • gcrsResponseStatus - -- | The response status code.

data GetCertificateResponse Source #

See: getCertificateResponse smart constructor.

Instances
Eq GetCertificateResponse Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Data GetCertificateResponse Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetCertificateResponse -> c GetCertificateResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetCertificateResponse #

toConstr :: GetCertificateResponse -> Constr #

dataTypeOf :: GetCertificateResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetCertificateResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetCertificateResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetCertificateResponse -> GetCertificateResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetCertificateResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetCertificateResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetCertificateResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetCertificateResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetCertificateResponse -> m GetCertificateResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCertificateResponse -> m GetCertificateResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCertificateResponse -> m GetCertificateResponse #

Read GetCertificateResponse Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Show GetCertificateResponse Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Generic GetCertificateResponse Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Associated Types

type Rep GetCertificateResponse :: Type -> Type #

NFData GetCertificateResponse Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

Methods

rnf :: GetCertificateResponse -> () #

type Rep GetCertificateResponse Source # 
Instance details

Defined in Network.AWS.CertificateManagerPCA.GetCertificate

type Rep GetCertificateResponse = D1 (MetaData "GetCertificateResponse" "Network.AWS.CertificateManagerPCA.GetCertificate" "amazonka-certificatemanager-pca-1.6.1-HitWzcqvY41EzhTFciBw3m" False) (C1 (MetaCons "GetCertificateResponse'" PrefixI True) (S1 (MetaSel (Just "_gcrsCertificate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gcrsCertificateChain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gcrsCertificate :: Lens' GetCertificateResponse (Maybe Text) Source #

The base64 PEM-encoded certificate specified by the CertificateArn parameter.

gcrsCertificateChain :: Lens' GetCertificateResponse (Maybe Text) Source #

The base64 PEM-encoded certificate chain that chains up to the on-premises root CA certificate that you used to sign your private CA certificate.

gcrsResponseStatus :: Lens' GetCertificateResponse Int Source #

  • - | The response status code.