CfnNetworkConnectorProps
- class aws_cdk.aws_lambda.CfnNetworkConnectorProps(*, configuration, name=None, operator_role=None, tags=None)
Bases:
objectProperties for defining a
CfnNetworkConnector.- Parameters:
configuration (
Union[IResolvable,ConfigProperty,Dict[str,Any]]) – The network configuration for the connector. Specify a VpcEgressConfiguration to enable outbound traffic routing through your VPC.name (
Optional[str]) – A unique name for the network connector within your account and Region. Must be 1 to 64 alphanumeric characters, hyphens, or underscores.operator_role (
Optional[str]) – The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC. This role must have permissions for ec2:CreateNetworkInterface and related describe operations.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – A list of tags to apply to the network connector. Use tags to categorize network connectors for cost allocation, access control, or operational management.
- See:
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_lambda as lambda_ cfn_network_connector_props = lambda.CfnNetworkConnectorProps( configuration=lambda.CfnNetworkConnector.ConfigProperty( vpc_egress_configuration=lambda.CfnNetworkConnector.VpcEgressConfigurationProperty( associated_compute_resource_types=["associatedComputeResourceTypes"], subnet_ids=["subnetIds"], # the properties below are optional network_protocol="networkProtocol", security_group_ids=["securityGroupIds"] ) ), # the properties below are optional name="name", operator_role="operatorRole", tags=[CfnTag( key="key", value="value" )] )
Attributes
- configuration
The network configuration for the connector.
Specify a VpcEgressConfiguration to enable outbound traffic routing through your VPC.
- name
A unique name for the network connector within your account and Region.
Must be 1 to 64 alphanumeric characters, hyphens, or underscores.
- operator_role
The ARN of the IAM role that Lambda assumes to manage elastic network interfaces in your VPC.
This role must have permissions for ec2:CreateNetworkInterface and related describe operations.
- tags
A list of tags to apply to the network connector.
Use tags to categorize network connectors for cost allocation, access control, or operational management.