CfnVPCPropsMixin
- class aws_cdk.cfn_property_mixins.aws_ec2.CfnVPCPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies a virtual private cloud (VPC).
A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see AWS::EC2::VPCCidrBlock .
For more information, see Virtual private clouds (VPC) in the Amazon VPC User Guide .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
- CloudformationResource:
AWS::EC2::VPC
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_ec2 as ec2 import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_vpc_props_mixin = ec2.CfnVPCPropsMixin(ec2.CfnVPCMixinProps( cidr_block="cidrBlock", enable_dns_hostnames=False, enable_dns_support=False, instance_tenancy="instanceTenancy", ipv4_ipam_pool_id="ipv4IpamPoolId", ipv4_netmask_length=123, tags=[cdk.CfnTag( key="key", value="value" )], vpc_encryption_control=ec2.CfnVPCPropsMixin.VpcEncryptionControlProperty( egress_only_internet_gateway_exclusion="egressOnlyInternetGatewayExclusion", elastic_file_system_exclusion="elasticFileSystemExclusion", internet_gateway_exclusion="internetGatewayExclusion", lambda_exclusion="lambdaExclusion", mode="mode", nat_gateway_exclusion="natGatewayExclusion", resource_exclusions=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionsProperty( egress_only_internet_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), elastic_file_system=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), internet_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), lambda_=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), nat_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), virtual_private_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), vpc_lattice=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), vpc_peering=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ) ), state="state", state_message="stateMessage", virtual_private_gateway_exclusion="virtualPrivateGatewayExclusion", vpc_encryption_control_id="vpcEncryptionControlId", vpc_id="vpcId", vpc_lattice_exclusion="vpcLatticeExclusion", vpc_peering_exclusion="vpcPeeringExclusion" ) ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::EC2::VPC.- Parameters:
props (
Union[CfnVPCMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['cidrBlock', 'enableDnsHostnames', 'enableDnsSupport', 'instanceTenancy', 'ipv4IpamPoolId', 'ipv4NetmaskLength', 'tags', 'vpcEncryptionControl']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
VpcEncryptionControlExclusionProperty
- class CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty(*, state=None, state_message=None)
Bases:
objectDescribes an exclusion configuration for VPC Encryption Control.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- Parameters:
state (
Optional[str]) – The current state of the exclusion configuration.state_message (
Optional[str]) – A message providing additional information about the exclusion state.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_ec2 as ec2 vpc_encryption_control_exclusion_property = ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" )
Attributes
- state
The current state of the exclusion configuration.
- state_message
A message providing additional information about the exclusion state.
VpcEncryptionControlExclusionsProperty
- class CfnVPCPropsMixin.VpcEncryptionControlExclusionsProperty(*, egress_only_internet_gateway=None, elastic_file_system=None, internet_gateway=None, lambda_=None, nat_gateway=None, virtual_private_gateway=None, vpc_lattice=None, vpc_peering=None)
Bases:
objectDescribes 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.
- Parameters:
egress_only_internet_gateway (
Union[IResolvable,VpcEncryptionControlExclusionProperty,Dict[str,Any],None]) –Describes an exclusion configuration for VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
elastic_file_system (
Union[IResolvable,VpcEncryptionControlExclusionProperty,Dict[str,Any],None]) –Describes an exclusion configuration for VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
internet_gateway (
Union[IResolvable,VpcEncryptionControlExclusionProperty,Dict[str,Any],None]) –Describes an exclusion configuration for VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
lambda –
Describes an exclusion configuration for VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
nat_gateway (
Union[IResolvable,VpcEncryptionControlExclusionProperty,Dict[str,Any],None]) –Describes an exclusion configuration for VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
virtual_private_gateway (
Union[IResolvable,VpcEncryptionControlExclusionProperty,Dict[str,Any],None]) –Describes an exclusion configuration for VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
vpc_lattice (
Union[IResolvable,VpcEncryptionControlExclusionProperty,Dict[str,Any],None]) –Describes an exclusion configuration for VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
vpc_peering (
Union[IResolvable,VpcEncryptionControlExclusionProperty,Dict[str,Any],None]) –Describes an exclusion configuration for VPC Encryption Control. For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_ec2 as ec2 vpc_encryption_control_exclusions_property = ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionsProperty( egress_only_internet_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), elastic_file_system=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), internet_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), lambda_=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), nat_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), virtual_private_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), vpc_lattice=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), vpc_peering=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ) )
Attributes
- egress_only_internet_gateway
Describes an exclusion configuration for VPC Encryption Control.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- elastic_file_system
Describes an exclusion configuration for VPC Encryption Control.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- internet_gateway
Describes an exclusion configuration for VPC Encryption Control.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- lambda_
Describes an exclusion configuration for VPC Encryption Control.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- nat_gateway
Describes an exclusion configuration for VPC Encryption Control.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- virtual_private_gateway
Describes an exclusion configuration for VPC Encryption Control.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- vpc_lattice
Describes an exclusion configuration for VPC Encryption Control.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- vpc_peering
Describes an exclusion configuration for VPC Encryption Control.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
VpcEncryptionControlProperty
- class CfnVPCPropsMixin.VpcEncryptionControlProperty(*, egress_only_internet_gateway_exclusion=None, elastic_file_system_exclusion=None, internet_gateway_exclusion=None, lambda_exclusion=None, mode=None, nat_gateway_exclusion=None, resource_exclusions=None, state=None, state_message=None, virtual_private_gateway_exclusion=None, vpc_encryption_control_id=None, vpc_id=None, vpc_lattice_exclusion=None, vpc_peering_exclusion=None)
Bases:
objectDescribes the configuration and state of VPC encryption controls.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
- Parameters:
egress_only_internet_gateway_exclusion (
Optional[str])elastic_file_system_exclusion (
Optional[str])internet_gateway_exclusion (
Optional[str])lambda_exclusion (
Optional[str])mode (
Optional[str]) – The encryption mode for the VPC Encryption Control configuration.nat_gateway_exclusion (
Optional[str])resource_exclusions (
Union[IResolvable,VpcEncryptionControlExclusionsProperty,Dict[str,Any],None]) –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.
state (
Optional[str]) – The current state of the VPC Encryption Control configuration.state_message (
Optional[str]) – A message providing additional information about the encryption control state.virtual_private_gateway_exclusion (
Optional[str])vpc_encryption_control_id (
Optional[str]) – The ID of the VPC Encryption Control configuration.vpc_id (
Optional[str]) – The ID of the VPC associated with the encryption control configuration.vpc_lattice_exclusion (
Optional[str])vpc_peering_exclusion (
Optional[str])
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_ec2 as ec2 vpc_encryption_control_property = ec2.CfnVPCPropsMixin.VpcEncryptionControlProperty( egress_only_internet_gateway_exclusion="egressOnlyInternetGatewayExclusion", elastic_file_system_exclusion="elasticFileSystemExclusion", internet_gateway_exclusion="internetGatewayExclusion", lambda_exclusion="lambdaExclusion", mode="mode", nat_gateway_exclusion="natGatewayExclusion", resource_exclusions=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionsProperty( egress_only_internet_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), elastic_file_system=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), internet_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), lambda_=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), nat_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), virtual_private_gateway=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), vpc_lattice=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ), vpc_peering=ec2.CfnVPCPropsMixin.VpcEncryptionControlExclusionProperty( state="state", state_message="stateMessage" ) ), state="state", state_message="stateMessage", virtual_private_gateway_exclusion="virtualPrivateGatewayExclusion", vpc_encryption_control_id="vpcEncryptionControlId", vpc_id="vpcId", vpc_lattice_exclusion="vpcLatticeExclusion", vpc_peering_exclusion="vpcPeeringExclusion" )
Attributes
- egress_only_internet_gateway_exclusion
-
- Type:
see
- elastic_file_system_exclusion
-
- Type:
see
- internet_gateway_exclusion
-
- Type:
see
- lambda_exclusion
-
- Type:
see
- mode
The encryption mode for the VPC Encryption Control configuration.
- nat_gateway_exclusion
-
- Type:
see
- resource_exclusions
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.
- state
The current state of the VPC Encryption Control configuration.
- state_message
A message providing additional information about the encryption control state.
- virtual_private_gateway_exclusion
-
- Type:
see
- vpc_encryption_control_id
The ID of the VPC Encryption Control configuration.
- vpc_id
The ID of the VPC associated with the encryption control configuration.
- vpc_lattice_exclusion
-
- Type:
see