ConfigProperty Struct
The network configuration for the connector.
Specify a VpcEgressConfiguration to enable outbound traffic routing 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 configProperty: lambda.CfnNetworkConnector.ConfigProperty = {
vpcEgressConfiguration: {
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_
config_property = lambda.CfnNetworkConnector.ConfigProperty(
vpc_egress_configuration=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.*;
ConfigProperty configProperty = ConfigProperty.builder()
.vpcEgressConfiguration(VpcEgressConfigurationProperty.builder()
.associatedComputeResourceTypes(List.of("associatedComputeResourceTypes"))
.networkProtocol("networkProtocol")
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.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 configProperty = new ConfigProperty {
VpcEgressConfiguration = 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"
configProperty := &ConfigProperty{
VpcEgressConfiguration: &VpcEgressConfigurationProperty{
AssociatedComputeResourceTypes: []*string{
jsii.String("associatedComputeResourceTypes"),
},
NetworkProtocol: jsii.String("networkProtocol"),
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
SubnetIds: []*string{
jsii.String("subnetIds"),
},
},
}
Properties
vpcEgressConfigurationIResolvable | CfnNetworkConnector.VpcEgressConfigurationPropertyvpc_egress_configurationtyping.Union[IResolvable, VpcEgressConfigurationProperty]vpcEgressConfigurationIResolvableVpcEgressConfigurationIResolvableVpcEgressConfigurationinterface{}required#The VPC egress configuration for the network connector.
Specifies the subnets, security groups, and network protocol for routing outbound traffic through your VPC.