amazonka-certificatemanager-1.4.5: Amazon Certificate Manager SDK.

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

Network.AWS.CertificateManager.ImportCertificate

Contents

Description

Imports an SSLTLS certificate into AWS Certificate Manager (ACM) to use with <http:docs.aws.amazon.comacmlatestuserguide/acm-services.html ACM's integrated AWS services> .

For more information about importing certificates into ACM, including the differences between certificates that you import and those that ACM provides, see Importing Certificates in the AWS Certificate Manager User Guide .

To import a certificate, you must provide the certificate and the matching private key. When the certificate is not self-signed, you must also provide a certificate chain. You can omit the certificate chain when importing a self-signed certificate.

The certificate, private key, and certificate chain must be PEM-encoded. For more information about converting these items to PEM format, see Importing Certificates Troubleshooting in the AWS Certificate Manager User Guide .

To import a new certificate, omit the CertificateArn field. Include this field only when you want to replace a previously imported certificate.

This operation returns the Amazon Resource Name (ARN) of the imported certificate.

Synopsis

Creating a Request

importCertificate Source #

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

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

  • icCertificateARN - The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field.
  • icCertificateChain - The certificate chain. It must be PEM-encoded.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.
  • icCertificate - The certificate to import. It must meet the following requirements: * Must be PEM-encoded. * Must contain a 1024-bit or 2048-bit RSA public key. * Must be valid at the time of import. You cannot import a certificate before its validity period begins (the certificate's NotBefore date) or after it expires (the certificate's NotAfter date).-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.
  • icPrivateKey - The private key that matches the public key in the certificate. It must meet the following requirements: * Must be PEM-encoded. * Must be unencrypted. You cannot import a private key that is protected by a password or passphrase.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.

data ImportCertificate Source #

See: importCertificate smart constructor.

Instances

Eq ImportCertificate Source # 
Data ImportCertificate Source # 

Methods

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

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

toConstr :: ImportCertificate -> Constr #

dataTypeOf :: ImportCertificate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportCertificate Source # 
Show ImportCertificate Source # 
Generic ImportCertificate Source # 
Hashable ImportCertificate Source # 
ToJSON ImportCertificate Source # 
NFData ImportCertificate Source # 

Methods

rnf :: ImportCertificate -> () #

AWSRequest ImportCertificate Source # 
ToPath ImportCertificate Source # 
ToHeaders ImportCertificate Source # 
ToQuery ImportCertificate Source # 
type Rep ImportCertificate Source # 
type Rep ImportCertificate = D1 (MetaData "ImportCertificate" "Network.AWS.CertificateManager.ImportCertificate" "amazonka-certificatemanager-1.4.5-1PooRU18e9TGfT3Ofqp2pv" False) (C1 (MetaCons "ImportCertificate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_icCertificateARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_icCertificateChain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Base64)))) ((:*:) (S1 (MetaSel (Just Symbol "_icCertificate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Base64)) (S1 (MetaSel (Just Symbol "_icPrivateKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Base64))))))
type Rs ImportCertificate Source # 

Request Lenses

icCertificateARN :: Lens' ImportCertificate (Maybe Text) Source #

The Amazon Resource Name (ARN) of an imported certificate to replace. To import a new certificate, omit this field.

icCertificateChain :: Lens' ImportCertificate (Maybe ByteString) Source #

The certificate chain. It must be PEM-encoded.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.

icCertificate :: Lens' ImportCertificate ByteString Source #

The certificate to import. It must meet the following requirements: * Must be PEM-encoded. * Must contain a 1024-bit or 2048-bit RSA public key. * Must be valid at the time of import. You cannot import a certificate before its validity period begins (the certificate's NotBefore date) or after it expires (the certificate's NotAfter date).-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.

icPrivateKey :: Lens' ImportCertificate ByteString Source #

The private key that matches the public key in the certificate. It must meet the following requirements: * Must be PEM-encoded. * Must be unencrypted. You cannot import a private key that is protected by a password or passphrase.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.

Destructuring the Response

importCertificateResponse Source #

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

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

data ImportCertificateResponse Source #

See: importCertificateResponse smart constructor.

Instances

Eq ImportCertificateResponse Source # 
Data ImportCertificateResponse Source # 

Methods

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

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

toConstr :: ImportCertificateResponse -> Constr #

dataTypeOf :: ImportCertificateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportCertificateResponse Source # 
Show ImportCertificateResponse Source # 
Generic ImportCertificateResponse Source # 
NFData ImportCertificateResponse Source # 
type Rep ImportCertificateResponse Source # 
type Rep ImportCertificateResponse = D1 (MetaData "ImportCertificateResponse" "Network.AWS.CertificateManager.ImportCertificate" "amazonka-certificatemanager-1.4.5-1PooRU18e9TGfT3Ofqp2pv" False) (C1 (MetaCons "ImportCertificateResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_icrsCertificateARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_icrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses