disassociate_enclave_certificate_iam_role
¶
disassociate_enclave_certificate_iam_role(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
39953 39954 39955 39956 39957 39958 39959 39960 39961 39962 39963 39964 39965 39966 39967 39968 39969 39970 39971 39972 39973 39974 39975 39976 39977 39978 39979 39980 39981 39982 39983 39984 39985 39986 39987 39988 39989 39990 39991 39992 39993 39994 39995 39996 39997 39998 39999 40000 40001 40002 40003 | |