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.
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.
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);
ResetEbsDefaultKmsKeyIdCommandInput for command's
input
shape.ResetEbsDefaultKmsKeyIdCommandOutput for command's
response
shape.config for EC2Client's
config
shape.