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.ResetEbsDefaultKmsKeyId

Description

Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS.

After resetting the default KMS key to the Amazon Web Services managed KMS key, you can continue to encrypt by a customer managed KMS key by specifying it when you create the volume. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data ResetEbsDefaultKmsKeyId Source #

See: newResetEbsDefaultKmsKeyId smart constructor.

Constructors

ResetEbsDefaultKmsKeyId' 

Fields

  • 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.

Instances

Instances details
ToHeaders ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

ToPath ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

ToQuery ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

AWSRequest ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

Generic ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

Associated Types

type Rep ResetEbsDefaultKmsKeyId :: Type -> Type #

Read ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

Show ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

NFData ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

Methods

rnf :: ResetEbsDefaultKmsKeyId -> () #

Eq ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

Hashable ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

type AWSResponse ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

type Rep ResetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

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

newResetEbsDefaultKmsKeyId :: ResetEbsDefaultKmsKeyId Source #

Create a value of ResetEbsDefaultKmsKeyId 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:dryRun:ResetEbsDefaultKmsKeyId', resetEbsDefaultKmsKeyId_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.

Request Lenses

resetEbsDefaultKmsKeyId_dryRun :: Lens' ResetEbsDefaultKmsKeyId (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 ResetEbsDefaultKmsKeyIdResponse Source #

See: newResetEbsDefaultKmsKeyIdResponse smart constructor.

Constructors

ResetEbsDefaultKmsKeyIdResponse' 

Fields

  • kmsKeyId :: Maybe Text

    The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by default.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ResetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

Associated Types

type Rep ResetEbsDefaultKmsKeyIdResponse :: Type -> Type #

Read ResetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

Show ResetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

NFData ResetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

Eq ResetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

type Rep ResetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId

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

newResetEbsDefaultKmsKeyIdResponse Source #

Create a value of ResetEbsDefaultKmsKeyIdResponse 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:

ResetEbsDefaultKmsKeyIdResponse, resetEbsDefaultKmsKeyIdResponse_kmsKeyId - The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by default.

$sel:httpStatus:ResetEbsDefaultKmsKeyIdResponse', resetEbsDefaultKmsKeyIdResponse_httpStatus - The response's http status code.

Response Lenses

resetEbsDefaultKmsKeyIdResponse_kmsKeyId :: Lens' ResetEbsDefaultKmsKeyIdResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the default KMS key for EBS encryption by default.