Skip to content

EC2  >  Operations  >  modify_account_vpc_encryption_control

modify_account_vpc_encryption_control

Operation

modify_account_vpc_encryption_control async

modify_account_vpc_encryption_control(request: ModifyAccountVpcEncryptionControlInput | ModifyAccountVpcEncryptionControlInputDict, /, *, plugins: list[Plugin] | None = None) -> ModifyAccountVpcEncryptionControlOutput
modify_account_vpc_encryption_control(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyAccountVpcEncryptionControlInputDict]) -> ModifyAccountVpcEncryptionControlOutput

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.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ModifyAccountVpcEncryptionControlOutput

An instance of ModifyAccountVpcEncryptionControlOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

ModifyAccountVpcEncryptionControlInput dataclass

Bases: _SerdeShape

Dataclass for ModifyAccountVpcEncryptionControlInput structure.

Attributes
api_gateway_v2 class-attribute instance-attribute
api_gateway_v2: str | None = ...

Specifies whether to exclude Amazon API Gateway V2 from account-level encryption enforcement.

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

Checks 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.

egress_only_internet_gateway class-attribute instance-attribute
egress_only_internet_gateway: str | None = ...

Specifies whether to exclude egress-only internet gateway resource from account-level encryption enforcement.

elastic_file_system class-attribute instance-attribute
elastic_file_system: str | None = ...

Specifies whether to exclude Elastic File System service from account-level encryption enforcement.

global_accelerator class-attribute instance-attribute
global_accelerator: str | None = ...

Specifies whether to exclude AWS Global Accelerator from account-level encryption enforcement.

internet_gateway class-attribute instance-attribute
internet_gateway: str | None = ...

Specifies whether to exclude internet gateway resource from account-level encryption enforcement.

lambda_ class-attribute instance-attribute
lambda_: str | None = ...

Specifies whether to exclude Lambda service from account-level encryption enforcement.

mode class-attribute instance-attribute
mode: str | None = ...

The encryption mode for the account encryption control configuration.

nat_gateway class-attribute instance-attribute
nat_gateway: str | None = ...

Specifies whether to exclude NAT gateway resource from account-level encryption enforcement.

virtual_private_gateway class-attribute instance-attribute
virtual_private_gateway: str | None = ...

Specifies whether to exclude virtual private gateway resource from account-level encryption enforcement.

vpc_lattice class-attribute instance-attribute
vpc_lattice: str | None = ...

Specifies whether to exclude VPC Lattice service from account-level encryption enforcement.

vpc_peering class-attribute instance-attribute
vpc_peering: str | None = ...

Specifies whether to exclude VPC peering connection resource from account-level encryption enforcement.

Dictionaries

ModifyAccountVpcEncryptionControlInputDict

Bases: TypedDict

Dictionary form of ModifyAccountVpcEncryptionControlInput.

Attributes
api_gateway_v2 instance-attribute
api_gateway_v2: str | None

Specifies whether to exclude Amazon API Gateway V2 from account-level encryption enforcement.

dry_run instance-attribute
dry_run: bool | None

Checks 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.

egress_only_internet_gateway instance-attribute
egress_only_internet_gateway: str | None

Specifies whether to exclude egress-only internet gateway resource from account-level encryption enforcement.

elastic_file_system instance-attribute
elastic_file_system: str | None

Specifies whether to exclude Elastic File System service from account-level encryption enforcement.

global_accelerator instance-attribute
global_accelerator: str | None

Specifies whether to exclude AWS Global Accelerator from account-level encryption enforcement.

internet_gateway instance-attribute
internet_gateway: str | None

Specifies whether to exclude internet gateway resource from account-level encryption enforcement.

lambda_ instance-attribute
lambda_: str | None

Specifies whether to exclude Lambda service from account-level encryption enforcement.

mode instance-attribute
mode: str | None

The encryption mode for the account encryption control configuration.

nat_gateway instance-attribute
nat_gateway: str | None

Specifies whether to exclude NAT gateway resource from account-level encryption enforcement.

virtual_private_gateway instance-attribute
virtual_private_gateway: str | None

Specifies whether to exclude virtual private gateway resource from account-level encryption enforcement.

vpc_lattice instance-attribute
vpc_lattice: str | None

Specifies whether to exclude VPC Lattice service from account-level encryption enforcement.

vpc_peering instance-attribute
vpc_peering: str | None

Specifies whether to exclude VPC peering connection resource from account-level encryption enforcement.

Output

ModifyAccountVpcEncryptionControlOutput dataclass

Bases: _SerdeShape

Dataclass for ModifyAccountVpcEncryptionControlOutput structure.

Attributes

account_vpc_encryption_control class-attribute instance-attribute
account_vpc_encryption_control: AccountVpcEncryptionControl | None = ...

Information about the account-level VPC Encryption Control configuration.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.