CfnNetworkConnectorPropsMixin

class aws_cdk.cfn_property_mixins.aws_lambda.CfnNetworkConnectorPropsMixin(props, *, strategy=None)

Bases: Mixin

Resource Type definition for AWS::Lambda::NetworkConnector.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-networkconnector.html

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:

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

ConfigProperty

class CfnNetworkConnectorPropsMixin.ConfigProperty(*, vpc_egress_configuration=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-networkconnector-config.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-networkconnector-config.html#cfn-lambda-networkconnector-config-vpcegressconfiguration

VpcEgressConfigurationProperty

class CfnNetworkConnectorPropsMixin.VpcEgressConfigurationProperty(*, associated_compute_resource_types=None, network_protocol=None, security_group_ids=None, subnet_ids=None)

Bases: object

The 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-networkconnector-vpcegressconfiguration.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-networkconnector-vpcegressconfiguration.html#cfn-lambda-networkconnector-vpcegressconfiguration-associatedcomputeresourcetypes

network_protocol

The network protocol for the connector.

Specify IPv4 for IPv4-only networking, or DualStack for both IPv4 and IPv6.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-networkconnector-vpcegressconfiguration.html#cfn-lambda-networkconnector-vpcegressconfiguration-networkprotocol

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-networkconnector-vpcegressconfiguration.html#cfn-lambda-networkconnector-vpcegressconfiguration-securitygroupids

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-networkconnector-vpcegressconfiguration.html#cfn-lambda-networkconnector-vpcegressconfiguration-subnetids