revoke_member_issued_certificate
async
¶
revoke_member_issued_certificate(
certificate_authority_arn: MemberCertificateAuthorityArn,
certificate_serial: CertificateSerialNumber,
revocation_reason: PrivateCaRevocationReason,
*,
config_overrides: Optional[AsyncACMClientConfig] = None,
) -> RevokeMemberIssuedCertificateOutput
Revokes a certificate that a private certificate authority (CA) in a member account of the caller's organization issued. AWS Private Certificate Authority (AWS Private CA) applies the rules of its RevokeCertificate operation, including which certificates it can revoke. For details, see RevokeCertificate in the AWS Private CA API Reference. The caller must be the organization's management account or its delegated administrator, Certificate actions for organizations must be on, and the call must be made in the organization's home Region. For every check and error, see UpdateMemberCertificateAuthority.
Parameters:
-
certificate_authority_arn(MemberCertificateAuthorityArn) –The ARN of the certificate authority that issued the certificate.
-
certificate_serial(CertificateSerialNumber) –The serial number of the certificate to revoke.
-
revocation_reason(PrivateCaRevocationReason) –Why the certificate is revoked.
Raises:
-
AccessDeniedException–You do not have access required to perform this action.
-
ConflictException–You are trying to update a resource or configuration that is already being created or updated. Wait for the previous operation to finish and try again.
-
InternalServerException–The request processing has failed because of an unknown error, exception, or failure.
-
ResourceNotFoundException–The specified certificate cannot be found in the caller's account or the caller's account cannot be found.
-
ThrottlingException–The request was denied because it exceeded a quota.
-
ValidationException–The supplied input failed to satisfy constraints of an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Revoke a certificate a member account's certificate authority issued The certificate authority in account 444455556666 issued a certificate whose private key was exposed.
>>> await client.revoke_member_issued_certificate(certificate_authority_arn='arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012', certificate_serial='79:3f:0d:5b:6a:04:12:5e:2c:9c:fb:52:37:35:98:fe', revocation_reason='KEY_COMPROMISE')
Revoke a certificate that is already revoked
AWS Private CA in the member account has already revoked the certificate.
>>> await client.revoke_member_issued_certificate(certificate_authority_arn='arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012', certificate_serial='79:3f:0d:5b:6a:04:12:5e:2c:9c:fb:52:37:35:98:fe', revocation_reason='SUPERSEDED')
Source code in docs_src/capo_acm/_services/async_acm.py
3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 | |