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 |
Revokes a certificate that you issued by calling the IssueCertificate
function. If you enable a certificate revocation list (CRL) when you create or update your private CA, information about the revoked certificates will be included in the CRL. ACM PCA writes the CRL to an S3 bucket that you specify. For more information about revocation, see the CrlConfiguration
structure. ACM PCA also writes revocation information to the audit report. For more information, see CreateCertificateAuthorityAuditReport
.
- revokeCertificate :: Text -> Text -> RevocationReason -> RevokeCertificate
- data RevokeCertificate
- rcCertificateAuthorityARN :: Lens' RevokeCertificate Text
- rcCertificateSerial :: Lens' RevokeCertificate Text
- rcRevocationReason :: Lens' RevokeCertificate RevocationReason
- revokeCertificateResponse :: RevokeCertificateResponse
- data RevokeCertificateResponse
Creating a Request
:: Text | |
-> Text | |
-> RevocationReason | |
-> RevokeCertificate |
Creates a value of RevokeCertificate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rcCertificateAuthorityARN
- Amazon Resource Name (ARN) of the private CA that issued the certificate to be revoked. This must be of the form:arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012
rcCertificateSerial
- Serial number of the certificate to be revoked. This must be in hexadecimal format. You can retrieve the serial number by callingGetCertificate
with the Amazon Resource Name (ARN) of the certificate you want and the ARN of your private CA. The GetCertificate function retrieves the certificate in the PEM format. You can use the following OpenSSL command to list the certificate in text format and copy the hexadecimal serial number.openssl x509 -in file_path -text -noout
You can also copy the serial number from the console or use the DescribeCertificate function in the AWS Certificate Manager API Reference .rcRevocationReason
- Specifies why you revoked the certificate.
data RevokeCertificate Source #
See: revokeCertificate
smart constructor.
Request Lenses
rcCertificateAuthorityARN :: Lens' RevokeCertificate Text Source #
Amazon Resource Name (ARN) of the private CA that issued the certificate to be revoked. This must be of the form: arn:aws:acm:region :account :certificate-authority/12345678-1234-1234-1234-123456789012
rcCertificateSerial :: Lens' RevokeCertificate Text Source #
Serial number of the certificate to be revoked. This must be in hexadecimal format. You can retrieve the serial number by calling GetCertificate
with the Amazon Resource Name (ARN) of the certificate you want and the ARN of your private CA. The GetCertificate function retrieves the certificate in the PEM format. You can use the following OpenSSL command to list the certificate in text format and copy the hexadecimal serial number. openssl x509 -in file_path -text -noout
You can also copy the serial number from the console or use the DescribeCertificate function in the AWS Certificate Manager API Reference .
rcRevocationReason :: Lens' RevokeCertificate RevocationReason Source #
Specifies why you revoked the certificate.
Destructuring the Response
revokeCertificateResponse :: RevokeCertificateResponse Source #
Creates a value of RevokeCertificateResponse
with the minimum fields required to make a request.
data RevokeCertificateResponse Source #
See: revokeCertificateResponse
smart constructor.