Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data ResetEbsDefaultKmsKeyId = ResetEbsDefaultKmsKeyId' {}
- newResetEbsDefaultKmsKeyId :: ResetEbsDefaultKmsKeyId
- resetEbsDefaultKmsKeyId_dryRun :: Lens' ResetEbsDefaultKmsKeyId (Maybe Bool)
- data ResetEbsDefaultKmsKeyIdResponse = ResetEbsDefaultKmsKeyIdResponse' {
- kmsKeyId :: Maybe Text
- httpStatus :: Int
- newResetEbsDefaultKmsKeyIdResponse :: Int -> ResetEbsDefaultKmsKeyIdResponse
- resetEbsDefaultKmsKeyIdResponse_kmsKeyId :: Lens' ResetEbsDefaultKmsKeyIdResponse (Maybe Text)
- resetEbsDefaultKmsKeyIdResponse_httpStatus :: Lens' ResetEbsDefaultKmsKeyIdResponse Int
Creating a Request
data ResetEbsDefaultKmsKeyId Source #
See: newResetEbsDefaultKmsKeyId
smart constructor.
Instances
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.
ResetEbsDefaultKmsKeyIdResponse' | |
|
Instances
Generic ResetEbsDefaultKmsKeyIdResponse Source # | |
Read ResetEbsDefaultKmsKeyIdResponse Source # | |
Show ResetEbsDefaultKmsKeyIdResponse Source # | |
Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId | |
NFData ResetEbsDefaultKmsKeyIdResponse Source # | |
Defined in Amazonka.EC2.ResetEbsDefaultKmsKeyId rnf :: ResetEbsDefaultKmsKeyIdResponse -> () # | |
Eq ResetEbsDefaultKmsKeyIdResponse Source # | |
type Rep ResetEbsDefaultKmsKeyIdResponse Source # | |
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.
resetEbsDefaultKmsKeyIdResponse_httpStatus :: Lens' ResetEbsDefaultKmsKeyIdResponse Int Source #
The response's http status code.