Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResetEbsDefaultKmsKeyIdCommand

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.

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, ResetEbsDefaultKmsKeyIdCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, ResetEbsDefaultKmsKeyIdCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new ResetEbsDefaultKmsKeyIdCommand(input);
const response = await client.send(command);
see

ResetEbsDefaultKmsKeyIdCommandInput for command's input shape.

see

ResetEbsDefaultKmsKeyIdCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ResetEbsDefaultKmsKeyIdCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions