disassociate_enclave_certificate_iam_role
async
¶
disassociate_enclave_certificate_iam_role(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
certificate_arn: Optional[CertificateId] = None,
role_arn: Optional[RoleId] = None,
dry_run: Optional[Boolean] = None,
) -> DisassociateEnclaveCertificateIamRoleResult
Disassociates an IAM role from an Certificate Manager (ACM) certificate. Disassociating an IAM role from an ACM certificate removes the Amazon S3 object that contains the certificate, certificate chain, and encrypted private key from the Amazon S3 bucket. It also revokes the IAM role's permission to use the KMS key used to encrypt the private key. This effectively revokes the role's permission to use the certificate.
Parameters:
-
certificate_arn(Optional[CertificateId], default:None) –The ARN of the ACM certificate from which to disassociate the IAM role.
-
role_arn(Optional[RoleId], default:None) –The ARN of the IAM role to disassociate.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
40489 40490 40491 40492 40493 40494 40495 40496 40497 40498 40499 40500 40501 40502 40503 40504 40505 40506 40507 40508 40509 40510 40511 40512 40513 40514 40515 40516 40517 40518 40519 40520 40521 40522 40523 40524 40525 40526 40527 40528 40529 40530 40531 40532 40533 40534 40535 40536 40537 40538 40539 40540 | |