CfnNetworkConnectorPropsMixin
- class aws_cdk.cfn_property_mixins.aws_lambda.CfnNetworkConnectorPropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::Lambda::NetworkConnector.
- See:
- CloudformationResource:
AWS::Lambda::NetworkConnector
- 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_lambda as lambda_ import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_network_connector_props_mixin = lambda_.CfnNetworkConnectorPropsMixin(lambda.CfnNetworkConnectorMixinProps( configuration=lambda.CfnNetworkConnectorPropsMixin.ConfigProperty( vpc_egress_configuration=lambda.CfnNetworkConnectorPropsMixin.VpcEgressConfigurationProperty( associated_compute_resource_types=["associatedComputeResourceTypes"], network_protocol="networkProtocol", security_group_ids=["securityGroupIds"], subnet_ids=["subnetIds"] ) ), name="name", operator_role="operatorRole", tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Lambda::NetworkConnector.- Parameters:
props (
Union[CfnNetworkConnectorMixinProps,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 = ['configuration', 'name', 'operatorRole', 'tags']
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.
ConfigProperty
- class CfnNetworkConnectorPropsMixin.ConfigProperty(*, vpc_egress_configuration=None)
Bases:
objectThe network configuration for the connector.
Specify a VpcEgressConfiguration to enable outbound traffic routing through your VPC.
- Parameters:
vpc_egress_configuration (
Union[IResolvable,VpcEgressConfigurationProperty,Dict[str,Any],None]) – The VPC egress configuration for the network connector. Specifies the subnets, security groups, and network protocol for routing outbound traffic through your VPC.- 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_lambda as lambda_ config_property = lambda.CfnNetworkConnectorPropsMixin.ConfigProperty( vpc_egress_configuration=lambda.CfnNetworkConnectorPropsMixin.VpcEgressConfigurationProperty( associated_compute_resource_types=["associatedComputeResourceTypes"], network_protocol="networkProtocol", security_group_ids=["securityGroupIds"], subnet_ids=["subnetIds"] ) )
Attributes
- vpc_egress_configuration
The VPC egress configuration for the network connector.
Specifies the subnets, security groups, and network protocol for routing outbound traffic through your VPC.
VpcEgressConfigurationProperty
- class CfnNetworkConnectorPropsMixin.VpcEgressConfigurationProperty(*, associated_compute_resource_types=None, network_protocol=None, security_group_ids=None, subnet_ids=None)
Bases:
objectThe VPC egress configuration for the network connector.
Specifies the subnets, security groups, and network protocol for routing outbound traffic through your VPC.
- Parameters:
associated_compute_resource_types (
Optional[Sequence[str]]) – The types of Lambda compute resources that can use this connector. Currently, only MicroVm is supported.network_protocol (
Optional[str]) – The network protocol for the connector. Specify IPv4 for IPv4-only networking, or DualStack for both IPv4 and IPv6.security_group_ids (
Optional[Sequence[str]]) – The IDs of the VPC security groups to attach to the ENIs. Specify 0 to 5 security groups. All security groups must be in the same VPC as the subnets.subnet_ids (
Optional[Sequence[str]]) – The IDs of the VPC subnets where Lambda provisions elastic network interfaces (ENIs). Specify 1 to 16 subnets. All subnets must be in the same VPC.
- 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_lambda as lambda_ vpc_egress_configuration_property = lambda.CfnNetworkConnectorPropsMixin.VpcEgressConfigurationProperty( associated_compute_resource_types=["associatedComputeResourceTypes"], network_protocol="networkProtocol", security_group_ids=["securityGroupIds"], subnet_ids=["subnetIds"] )
Attributes
- associated_compute_resource_types
The types of Lambda compute resources that can use this connector.
Currently, only MicroVm is supported.
- network_protocol
The network protocol for the connector.
Specify IPv4 for IPv4-only networking, or DualStack for both IPv4 and IPv6.
- security_group_ids
The IDs of the VPC security groups to attach to the ENIs.
Specify 0 to 5 security groups. All security groups must be in the same VPC as the subnets.
- subnet_ids
The IDs of the VPC subnets where Lambda provisions elastic network interfaces (ENIs).
Specify 1 to 16 subnets. All subnets must be in the same VPC.