amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DisassociateEnclaveCertificateIamRole

Description

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.

Synopsis

Creating a Request

data DisassociateEnclaveCertificateIamRole Source #

Constructors

DisassociateEnclaveCertificateIamRole' 

Fields

  • certificateArn :: Maybe Text

    The ARN of the ACM certificate from which to disassociate the IAM role.

  • dryRun :: Maybe Bool

    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 is UnauthorizedOperation.

  • roleArn :: Maybe Text

    The ARN of the IAM role to disassociate.

Instances

Instances details
ToHeaders DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

ToPath DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

ToQuery DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

AWSRequest DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

Generic DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

Read DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

Show DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

NFData DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

Eq DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

Hashable DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

type AWSResponse DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

type Rep DisassociateEnclaveCertificateIamRole Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

type Rep DisassociateEnclaveCertificateIamRole = D1 ('MetaData "DisassociateEnclaveCertificateIamRole" "Amazonka.EC2.DisassociateEnclaveCertificateIamRole" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DisassociateEnclaveCertificateIamRole'" 'PrefixI 'True) (S1 ('MetaSel ('Just "certificateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDisassociateEnclaveCertificateIamRole :: DisassociateEnclaveCertificateIamRole Source #

Create a value of DisassociateEnclaveCertificateIamRole with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DisassociateEnclaveCertificateIamRole, disassociateEnclaveCertificateIamRole_certificateArn - The ARN of the ACM certificate from which to disassociate the IAM role.

$sel:dryRun:DisassociateEnclaveCertificateIamRole', disassociateEnclaveCertificateIamRole_dryRun - 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 is UnauthorizedOperation.

$sel:roleArn:DisassociateEnclaveCertificateIamRole', disassociateEnclaveCertificateIamRole_roleArn - The ARN of the IAM role to disassociate.

Request Lenses

disassociateEnclaveCertificateIamRole_certificateArn :: Lens' DisassociateEnclaveCertificateIamRole (Maybe Text) Source #

The ARN of the ACM certificate from which to disassociate the IAM role.

disassociateEnclaveCertificateIamRole_dryRun :: Lens' DisassociateEnclaveCertificateIamRole (Maybe Bool) Source #

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 is UnauthorizedOperation.

Destructuring the Response

data DisassociateEnclaveCertificateIamRoleResponse Source #

Constructors

DisassociateEnclaveCertificateIamRoleResponse' 

Fields

Instances

Instances details
Generic DisassociateEnclaveCertificateIamRoleResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

Read DisassociateEnclaveCertificateIamRoleResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

Show DisassociateEnclaveCertificateIamRoleResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

NFData DisassociateEnclaveCertificateIamRoleResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

Eq DisassociateEnclaveCertificateIamRoleResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

type Rep DisassociateEnclaveCertificateIamRoleResponse Source # 
Instance details

Defined in Amazonka.EC2.DisassociateEnclaveCertificateIamRole

type Rep DisassociateEnclaveCertificateIamRoleResponse = D1 ('MetaData "DisassociateEnclaveCertificateIamRoleResponse" "Amazonka.EC2.DisassociateEnclaveCertificateIamRole" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DisassociateEnclaveCertificateIamRoleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDisassociateEnclaveCertificateIamRoleResponse Source #

Create a value of DisassociateEnclaveCertificateIamRoleResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:return':DisassociateEnclaveCertificateIamRoleResponse', disassociateEnclaveCertificateIamRoleResponse_return - Returns true if the request succeeds; otherwise, it returns an error.

$sel:httpStatus:DisassociateEnclaveCertificateIamRoleResponse', disassociateEnclaveCertificateIamRoleResponse_httpStatus - The response's http status code.

Response Lenses

disassociateEnclaveCertificateIamRoleResponse_return :: Lens' DisassociateEnclaveCertificateIamRoleResponse (Maybe Bool) Source #

Returns true if the request succeeds; otherwise, it returns an error.