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

Description

Describes the default KMS key for EBS encryption by default for your account in this Region. You can change the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data GetEbsDefaultKmsKeyId Source #

See: newGetEbsDefaultKmsKeyId smart constructor.

Constructors

GetEbsDefaultKmsKeyId' 

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 GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

ToPath GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

ToQuery GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

AWSRequest GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

Associated Types

type AWSResponse GetEbsDefaultKmsKeyId #

Generic GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

Associated Types

type Rep GetEbsDefaultKmsKeyId :: Type -> Type #

Read GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

Show GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

NFData GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

Methods

rnf :: GetEbsDefaultKmsKeyId -> () #

Eq GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

Hashable GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

type AWSResponse GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

type Rep GetEbsDefaultKmsKeyId Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

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

newGetEbsDefaultKmsKeyId :: GetEbsDefaultKmsKeyId Source #

Create a value of GetEbsDefaultKmsKeyId 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:GetEbsDefaultKmsKeyId', getEbsDefaultKmsKeyId_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

getEbsDefaultKmsKeyId_dryRun :: Lens' GetEbsDefaultKmsKeyId (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 GetEbsDefaultKmsKeyIdResponse Source #

See: newGetEbsDefaultKmsKeyIdResponse smart constructor.

Constructors

GetEbsDefaultKmsKeyIdResponse' 

Fields

  • kmsKeyId :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

Associated Types

type Rep GetEbsDefaultKmsKeyIdResponse :: Type -> Type #

Read GetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

Show GetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

NFData GetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

Eq GetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

type Rep GetEbsDefaultKmsKeyIdResponse Source # 
Instance details

Defined in Amazonka.EC2.GetEbsDefaultKmsKeyId

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

newGetEbsDefaultKmsKeyIdResponse Source #

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

GetEbsDefaultKmsKeyIdResponse, getEbsDefaultKmsKeyIdResponse_kmsKeyId - The Amazon Resource Name (ARN) of the default KMS key for encryption by default.

$sel:httpStatus:GetEbsDefaultKmsKeyIdResponse', getEbsDefaultKmsKeyIdResponse_httpStatus - The response's http status code.

Response Lenses

getEbsDefaultKmsKeyIdResponse_kmsKeyId :: Lens' GetEbsDefaultKmsKeyIdResponse (Maybe Text) Source #

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