AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Enables EBS encryption by default for your account in the current Region.

After you enable encryption by default, the EBS volumes that you create are always encrypted, either using the default KMS key or the KMS key that you specified when you created each volume. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

You can specify the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

Enabling encryption by default has no effect on the encryption status of your existing volumes.

After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported instance types.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to EnableEbsEncryptionByDefaultAsync.

Namespace: Amazon.EC2
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public virtual EnableEbsEncryptionByDefaultResponse EnableEbsEncryptionByDefault(
         EnableEbsEncryptionByDefaultRequest request
)

Parameters

request
Type: Amazon.EC2.Model.EnableEbsEncryptionByDefaultRequest

Container for the necessary parameters to execute the EnableEbsEncryptionByDefault service method.

Return Value


The response from the EnableEbsEncryptionByDefault service method, as returned by EC2.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also