Skip to main content

account_vpc_encryption_controls

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

Overview

Nameaccount_vpc_encryption_controls
TypeResource
Idaws.ec2.account_vpc_encryption_controls

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
exclusionsstringInformation about the traffic exclusions for the account-level VPC Encryption Control configuration.
last_update_timestampstringThe date and time when the account-level VPC Encryption Control configuration was last updated.
managed_bystringThe entity that manages the account-level VPC Encryption Control configuration.
modestringThe encryption mode for the account-level VPC Encryption Control configuration.
statestringThe current state of the account-level VPC Encryption Control configuration.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_account_vpc_encryption_controlselectregionDryRunDescribes the account-level VPC Encryption Control configuration for your account. VPC Encryption Control enables you to enforce encryption for all data in transit within and between VPCs to meet compliance requirements. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
modify_account_vpc_encryption_controlupdateregionDryRun, Mode, InternetGateway, EgressOnlyInternetGateway, NatGateway, VirtualPrivateGateway, VpcPeering, Lambda, VpcLattice, ElasticFileSystemModifies the account-level VPC Encryption Control configuration. This sets the encryption control mode and resource exclusions that apply to the VPCs in your account. VPC Encryption Control enables you to enforce encryption for all data in transit within and between VPCs to meet compliance requirements. For more information, see Enforce VPC encryption in transit in the Amazon VPC 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.
EgressOnlyInternetGatewaystringSpecifies whether to exclude egress-only internet gateway resource from account-level encryption enforcement.
ElasticFileSystemstringSpecifies whether to exclude Elastic File System service from account-level encryption enforcement.
InternetGatewaystringSpecifies whether to exclude internet gateway resource from account-level encryption enforcement.
LambdastringSpecifies whether to exclude Lambda service from account-level encryption enforcement.
ModestringThe encryption mode for the account encryption control configuration.
NatGatewaystringSpecifies whether to exclude NAT gateway resource from account-level encryption enforcement.
VirtualPrivateGatewaystringSpecifies whether to exclude virtual private gateway resource from account-level encryption enforcement.
VpcLatticestringSpecifies whether to exclude VPC Lattice service from account-level encryption enforcement.
VpcPeeringstringSpecifies whether to exclude VPC peering connection resource from account-level encryption enforcement.

SELECT examples

Describes the account-level VPC Encryption Control configuration for your account. VPC Encryption Control enables you to enforce encryption for all data in transit within and between VPCs to meet compliance requirements. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

SELECT
exclusions,
last_update_timestamp,
managed_by,
mode,
state
FROM aws.ec2.account_vpc_encryption_controls
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;

UPDATE examples

Modifies the account-level VPC Encryption Control configuration. This sets the encryption control mode and resource exclusions that apply to the VPCs in your account. VPC Encryption Control enables you to enforce encryption for all data in transit within and between VPCs to meet compliance requirements. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

UPDATE aws.ec2.account_vpc_encryption_controls
SET
-- No updatable properties
WHERE
region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
AND Mode = '{{ Mode}}'
AND InternetGateway = '{{ InternetGateway}}'
AND EgressOnlyInternetGateway = '{{ EgressOnlyInternetGateway}}'
AND NatGateway = '{{ NatGateway}}'
AND VirtualPrivateGateway = '{{ VirtualPrivateGateway}}'
AND VpcPeering = '{{ VpcPeering}}'
AND Lambda = '{{ Lambda}}'
AND VpcLattice = '{{ VpcLattice}}'
AND ElasticFileSystem = '{{ ElasticFileSystem}}'
RETURNING
exclusions,
last_update_timestamp,
managed_by,
mode,
state;