revoke_member_certificate
async
¶
revoke_member_certificate(
certificate_arn: MemberCertificateArn,
revocation_reason: AcmRevocationReason,
*,
config_overrides: Optional[AsyncACMClientConfig] = None,
) -> RevokeMemberCertificateOutput
Revokes an AWS Certificate Manager (ACM) certificate in a member account of the caller's organization, and returns the ARN of the revoked certificate. ACM applies the rules of its RevokeCertificate operation, including which certificates it can revoke. For details, see RevokeCertificate in the AWS Certificate Manager 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 RenewMemberCertificate.
Parameters:
-
certificate_arn(MemberCertificateArn) –The ARN of the certificate to revoke.
-
revocation_reason(AcmRevocationReason) –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 in a member account The certificate's private key was exposed.
>>> await client.revoke_member_certificate(certificate_arn='arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222', revocation_reason='KEY_COMPROMISE')
Revoke a certificate that is already revoked
ACM in the member account has already revoked the certificate.
>>> await client.revoke_member_certificate(certificate_arn='arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222', revocation_reason='SUPERSEDED')
Source code in docs_src/capo_acm/_services/async_acm.py
3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 | |