Skip to main content

ebs_encryption_by_defaults

Creates, updates, deletes, gets or lists an ebs_encryption_by_defaults resource.

Overview

Nameebs_encryption_by_defaults
TypeResource
Idaws.ec2.ebs_encryption_by_defaults

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
ebs_encryption_by_defaultbooleanIndicates whether encryption by default is enabled.
sse_typestringReserved for future use.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ebs_encryption_by_defaultselectregionDryRunDescribes whether EBS encryption by default is enabled for your account in the current Region. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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.

SELECT examples

Describes whether EBS encryption by default is enabled for your account in the current Region. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

SELECT
ebs_encryption_by_default,
sse_type
FROM aws.ec2.ebs_encryption_by_defaults
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;