VpcEgressConfigurationProperty Struct
The VPC egress configuration for the network connector.
Specifies the subnets, security groups, and network protocol for routing outbound traffic through your VPC.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const vpcEgressConfigurationProperty: lambda.CfnNetworkConnector.VpcEgressConfigurationProperty = {
associatedComputeResourceTypes: ['associatedComputeResourceTypes'],
networkProtocol: 'networkProtocol',
securityGroupIds: ['securityGroupIds'],
subnetIds: ['subnetIds'],
};
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_lambda as lambda_
vpc_egress_configuration_property = lambda.CfnNetworkConnector.VpcEgressConfigurationProperty(
associated_compute_resource_types=["associatedComputeResourceTypes"],
network_protocol="networkProtocol",
security_group_ids=["securityGroupIds"],
subnet_ids=["subnetIds"]
)
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.lambda.*;
VpcEgressConfigurationProperty vpcEgressConfigurationProperty = VpcEgressConfigurationProperty.builder()
.associatedComputeResourceTypes(List.of("associatedComputeResourceTypes"))
.networkProtocol("networkProtocol")
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.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.Lambda;
var vpcEgressConfigurationProperty = new VpcEgressConfigurationProperty {
AssociatedComputeResourceTypes = new [] { "associatedComputeResourceTypes" },
NetworkProtocol = "networkProtocol",
SecurityGroupIds = new [] { "securityGroupIds" },
SubnetIds = new [] { "subnetIds" }
};
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"
vpcEgressConfigurationProperty := &VpcEgressConfigurationProperty{
AssociatedComputeResourceTypes: []*string{
jsii.String("associatedComputeResourceTypes"),
},
NetworkProtocol: jsii.String("networkProtocol"),
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
SubnetIds: []*string{
jsii.String("subnetIds"),
},
}
Properties
associatedComputeResourceTypesstring[]associated_compute_resource_typestyping.List[str]associatedComputeResourceTypesList<String>AssociatedComputeResourceTypesstring[]AssociatedComputeResourceTypes*[]*stringrequired#The types of Lambda compute resources that can use this connector.
Supported values are MicroVm and WebFunction.
networkProtocolstringnetwork_protocolstrnetworkProtocolStringNetworkProtocolstringNetworkProtocol*stringrequired#The network protocol for the connector.
Specify IPv4 for IPv4-only networking, or DualStack for both IPv4 and IPv6.
securityGroupIdsstring[]security_group_idstyping.List[str]securityGroupIdsList<String>SecurityGroupIdsstring[]SecurityGroupIds*[]*stringrequired#The IDs of the VPC security groups to attach to the ENIs.
All security groups must be in the same VPC as the subnets.
subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*stringrequired#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.