Skip to content
v2.278.0

VpcEncryptionControlExclusionsProperty Struct ​

Describes the exclusion configurations for various resource types in VPC Encryption Control.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const vpcEncryptionControlExclusionsProperty: ec2.CfnVPC.VpcEncryptionControlExclusionsProperty = {
  egressOnlyInternetGateway: {
    state: 'state',
    stateMessage: 'stateMessage',
  },
  elasticFileSystem: {
    state: 'state',
    stateMessage: 'stateMessage',
  },
  internetGateway: {
    state: 'state',
    stateMessage: 'stateMessage',
  },
  lambda: {
    state: 'state',
    stateMessage: 'stateMessage',
  },
  natGateway: {
    state: 'state',
    stateMessage: 'stateMessage',
  },
  virtualPrivateGateway: {
    state: 'state',
    stateMessage: 'stateMessage',
  },
  vpcLattice: {
    state: 'state',
    stateMessage: 'stateMessage',
  },
  vpcPeering: {
    state: 'state',
    stateMessage: 'stateMessage',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

vpc_encryption_control_exclusions_property = ec2.CfnVPC.VpcEncryptionControlExclusionsProperty(
    egress_only_internet_gateway=ec2.CfnVPC.VpcEncryptionControlExclusionProperty(
        state="state",
        state_message="stateMessage"
    ),
    elastic_file_system=ec2.CfnVPC.VpcEncryptionControlExclusionProperty(
        state="state",
        state_message="stateMessage"
    ),
    internet_gateway=ec2.CfnVPC.VpcEncryptionControlExclusionProperty(
        state="state",
        state_message="stateMessage"
    ),
    lambda_=ec2.CfnVPC.VpcEncryptionControlExclusionProperty(
        state="state",
        state_message="stateMessage"
    ),
    nat_gateway=ec2.CfnVPC.VpcEncryptionControlExclusionProperty(
        state="state",
        state_message="stateMessage"
    ),
    virtual_private_gateway=ec2.CfnVPC.VpcEncryptionControlExclusionProperty(
        state="state",
        state_message="stateMessage"
    ),
    vpc_lattice=ec2.CfnVPC.VpcEncryptionControlExclusionProperty(
        state="state",
        state_message="stateMessage"
    ),
    vpc_peering=ec2.CfnVPC.VpcEncryptionControlExclusionProperty(
        state="state",
        state_message="stateMessage"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

VpcEncryptionControlExclusionsProperty vpcEncryptionControlExclusionsProperty = VpcEncryptionControlExclusionsProperty.builder()
        .egressOnlyInternetGateway(VpcEncryptionControlExclusionProperty.builder()
                .state("state")
                .stateMessage("stateMessage")
                .build())
        .elasticFileSystem(VpcEncryptionControlExclusionProperty.builder()
                .state("state")
                .stateMessage("stateMessage")
                .build())
        .internetGateway(VpcEncryptionControlExclusionProperty.builder()
                .state("state")
                .stateMessage("stateMessage")
                .build())
        .lambda(VpcEncryptionControlExclusionProperty.builder()
                .state("state")
                .stateMessage("stateMessage")
                .build())
        .natGateway(VpcEncryptionControlExclusionProperty.builder()
                .state("state")
                .stateMessage("stateMessage")
                .build())
        .virtualPrivateGateway(VpcEncryptionControlExclusionProperty.builder()
                .state("state")
                .stateMessage("stateMessage")
                .build())
        .vpcLattice(VpcEncryptionControlExclusionProperty.builder()
                .state("state")
                .stateMessage("stateMessage")
                .build())
        .vpcPeering(VpcEncryptionControlExclusionProperty.builder()
                .state("state")
                .stateMessage("stateMessage")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var vpcEncryptionControlExclusionsProperty = new VpcEncryptionControlExclusionsProperty {
    EgressOnlyInternetGateway = new VpcEncryptionControlExclusionProperty {
        State = "state",
        StateMessage = "stateMessage"
    },
    ElasticFileSystem = new VpcEncryptionControlExclusionProperty {
        State = "state",
        StateMessage = "stateMessage"
    },
    InternetGateway = new VpcEncryptionControlExclusionProperty {
        State = "state",
        StateMessage = "stateMessage"
    },
    Lambda = new VpcEncryptionControlExclusionProperty {
        State = "state",
        StateMessage = "stateMessage"
    },
    NatGateway = new VpcEncryptionControlExclusionProperty {
        State = "state",
        StateMessage = "stateMessage"
    },
    VirtualPrivateGateway = new VpcEncryptionControlExclusionProperty {
        State = "state",
        StateMessage = "stateMessage"
    },
    VpcLattice = new VpcEncryptionControlExclusionProperty {
        State = "state",
        StateMessage = "stateMessage"
    },
    VpcPeering = new VpcEncryptionControlExclusionProperty {
        State = "state",
        StateMessage = "stateMessage"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

vpcEncryptionControlExclusionsProperty := &VpcEncryptionControlExclusionsProperty{
	EgressOnlyInternetGateway: &VpcEncryptionControlExclusionProperty{
		State: jsii.String("state"),
		StateMessage: jsii.String("stateMessage"),
	},
	ElasticFileSystem: &VpcEncryptionControlExclusionProperty{
		State: jsii.String("state"),
		StateMessage: jsii.String("stateMessage"),
	},
	InternetGateway: &VpcEncryptionControlExclusionProperty{
		State: jsii.String("state"),
		StateMessage: jsii.String("stateMessage"),
	},
	Lambda: &VpcEncryptionControlExclusionProperty{
		State: jsii.String("state"),
		StateMessage: jsii.String("stateMessage"),
	},
	NatGateway: &VpcEncryptionControlExclusionProperty{
		State: jsii.String("state"),
		StateMessage: jsii.String("stateMessage"),
	},
	VirtualPrivateGateway: &VpcEncryptionControlExclusionProperty{
		State: jsii.String("state"),
		StateMessage: jsii.String("stateMessage"),
	},
	VpcLattice: &VpcEncryptionControlExclusionProperty{
		State: jsii.String("state"),
		StateMessage: jsii.String("stateMessage"),
	},
	VpcPeering: &VpcEncryptionControlExclusionProperty{
		State: jsii.String("state"),
		StateMessage: jsii.String("stateMessage"),
	},
}

Properties ​

egressOnlyInternetGatewayoptionalIResolvable | CfnVPC.VpcEncryptionControlExclusionPropertyegress_only_internet_gatewayoptionaltyping.Union[IResolvable, VpcEncryptionControlExclusionProperty]egressOnlyInternetGatewayoptionalIResolvableEgressOnlyInternetGatewayoptionalIResolvableEgressOnlyInternetGatewayoptionalinterface{} #
Describes an exclusion configuration for VPC Encryption Control.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

elasticFileSystemoptionalIResolvable | CfnVPC.VpcEncryptionControlExclusionPropertyelastic_file_systemoptionaltyping.Union[IResolvable, VpcEncryptionControlExclusionProperty]elasticFileSystemoptionalIResolvableElasticFileSystemoptionalIResolvableElasticFileSystemoptionalinterface{} #
Describes an exclusion configuration for VPC Encryption Control.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

internetGatewayoptionalIResolvable | CfnVPC.VpcEncryptionControlExclusionPropertyinternet_gatewayoptionaltyping.Union[IResolvable, VpcEncryptionControlExclusionProperty]internetGatewayoptionalIResolvableInternetGatewayoptionalIResolvableInternetGatewayoptionalinterface{} #
Describes an exclusion configuration for VPC Encryption Control.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

lambdaoptionalIResolvable | CfnVPC.VpcEncryptionControlExclusionPropertylambdaoptionaltyping.Union[IResolvable, VpcEncryptionControlExclusionProperty]lambdaoptionalIResolvableLambdaoptionalIResolvableLambdaoptionalinterface{} #
Describes an exclusion configuration for VPC Encryption Control.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

natGatewayoptionalIResolvable | CfnVPC.VpcEncryptionControlExclusionPropertynat_gatewayoptionaltyping.Union[IResolvable, VpcEncryptionControlExclusionProperty]natGatewayoptionalIResolvableNatGatewayoptionalIResolvableNatGatewayoptionalinterface{} #
Describes an exclusion configuration for VPC Encryption Control.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

virtualPrivateGatewayoptionalIResolvable | CfnVPC.VpcEncryptionControlExclusionPropertyvirtual_private_gatewayoptionaltyping.Union[IResolvable, VpcEncryptionControlExclusionProperty]virtualPrivateGatewayoptionalIResolvableVirtualPrivateGatewayoptionalIResolvableVirtualPrivateGatewayoptionalinterface{} #
Describes an exclusion configuration for VPC Encryption Control.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

vpcLatticeoptionalIResolvable | CfnVPC.VpcEncryptionControlExclusionPropertyvpc_latticeoptionaltyping.Union[IResolvable, VpcEncryptionControlExclusionProperty]vpcLatticeoptionalIResolvableVpcLatticeoptionalIResolvableVpcLatticeoptionalinterface{} #
Describes an exclusion configuration for VPC Encryption Control.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

vpcPeeringoptionalIResolvable | CfnVPC.VpcEncryptionControlExclusionPropertyvpc_peeringoptionaltyping.Union[IResolvable, VpcEncryptionControlExclusionProperty]vpcPeeringoptionalIResolvableVpcPeeringoptionalIResolvableVpcPeeringoptionalinterface{} #
Describes an exclusion configuration for VPC Encryption Control.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.