Copyright | (c) 2013-2021 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 |
Retrieves an Amazon-issued certificate and its certificate chain. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs. All of the certificates are base64 encoded. You can use OpenSSL to decode the certificates and inspect individual fields.
Synopsis
- data GetCertificate = GetCertificate' {}
- newGetCertificate :: Text -> GetCertificate
- getCertificate_certificateArn :: Lens' GetCertificate Text
- data GetCertificateResponse = GetCertificateResponse' {}
- newGetCertificateResponse :: Int -> GetCertificateResponse
- getCertificateResponse_certificate :: Lens' GetCertificateResponse (Maybe Text)
- getCertificateResponse_certificateChain :: Lens' GetCertificateResponse (Maybe Text)
- getCertificateResponse_httpStatus :: Lens' GetCertificateResponse Int
Creating a Request
data GetCertificate Source #
See: newGetCertificate
smart constructor.
GetCertificate' | |
|
Instances
Create a value of GetCertificate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:certificateArn:GetCertificate'
, getCertificate_certificateArn
- String that contains a certificate ARN in the following format:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
Request Lenses
getCertificate_certificateArn :: Lens' GetCertificate Text Source #
String that contains a certificate ARN in the following format:
arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
For more information about ARNs, see Amazon Resource Names (ARNs).
Destructuring the Response
data GetCertificateResponse Source #
See: newGetCertificateResponse
smart constructor.
GetCertificateResponse' | |
|
Instances
newGetCertificateResponse Source #
Create a value of GetCertificateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:certificate:GetCertificateResponse'
, getCertificateResponse_certificate
- The ACM-issued certificate corresponding to the ARN specified as input.
$sel:certificateChain:GetCertificateResponse'
, getCertificateResponse_certificateChain
- Certificates forming the requested certificate's chain of trust. The
chain consists of the certificate of the issuing CA and the intermediate
certificates of any other subordinate CAs.
$sel:httpStatus:GetCertificateResponse'
, getCertificateResponse_httpStatus
- The response's http status code.
Response Lenses
getCertificateResponse_certificate :: Lens' GetCertificateResponse (Maybe Text) Source #
The ACM-issued certificate corresponding to the ARN specified as input.
getCertificateResponse_certificateChain :: Lens' GetCertificateResponse (Maybe Text) Source #
Certificates forming the requested certificate's chain of trust. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs.
getCertificateResponse_httpStatus :: Lens' GetCertificateResponse Int Source #
The response's http status code.