Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Imports your signed private CA certificate into ACM PCA. Before you can call this function, you must create the private certificate authority by calling the CreateCertificateAuthority
function. You must then generate a certificate signing request (CSR) by calling the GetCertificateAuthorityCsr
function. Take the CSR to your on-premises CA and use the root certificate or a subordinate certificate to sign it. Create a certificate chain and copy the signed certificate and the certificate chain to your working directory.
Synopsis
- importCertificateAuthorityCertificate :: Text -> ByteString -> ByteString -> ImportCertificateAuthorityCertificate
- data ImportCertificateAuthorityCertificate
- icacCertificateAuthorityARN :: Lens' ImportCertificateAuthorityCertificate Text
- icacCertificate :: Lens' ImportCertificateAuthorityCertificate ByteString
- icacCertificateChain :: Lens' ImportCertificateAuthorityCertificate ByteString
- importCertificateAuthorityCertificateResponse :: ImportCertificateAuthorityCertificateResponse
- data ImportCertificateAuthorityCertificateResponse
Creating a Request
importCertificateAuthorityCertificate Source #
Creates a value of ImportCertificateAuthorityCertificate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
icacCertificateAuthorityARN
- The Amazon Resource Name (ARN) that was returned when you calledCreateCertificateAuthority
. This must be of the form:arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012
icacCertificate
- The PEM-encoded certificate for your private CA. This must be signed by using your on-premises CA.-- Note: ThisLens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLens
accepts and returns only raw unencoded data.icacCertificateChain
- A PEM-encoded file that contains all of your certificates, other than the certificate you're importing, chaining up to your root CA. Your on-premises root certificate is the last in the chain, and each certificate in the chain signs the one preceding. -- Note: ThisLens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLens
accepts and returns only raw unencoded data.
data ImportCertificateAuthorityCertificate Source #
See: importCertificateAuthorityCertificate
smart constructor.
Instances
Request Lenses
icacCertificateAuthorityARN :: Lens' ImportCertificateAuthorityCertificate 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
icacCertificate :: Lens' ImportCertificateAuthorityCertificate ByteString Source #
The PEM-encoded certificate for your private CA. This must be signed by using your on-premises CA.-- 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.
icacCertificateChain :: Lens' ImportCertificateAuthorityCertificate ByteString Source #
A PEM-encoded file that contains all of your certificates, other than the certificate you're importing, chaining up to your root CA. Your on-premises root certificate is the last in the chain, and each certificate in the chain signs the one preceding. -- 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
importCertificateAuthorityCertificateResponse :: ImportCertificateAuthorityCertificateResponse Source #
Creates a value of ImportCertificateAuthorityCertificateResponse
with the minimum fields required to make a request.
data ImportCertificateAuthorityCertificateResponse Source #
See: importCertificateAuthorityCertificateResponse
smart constructor.