Skip to content
v2.278.0

VpcEndpointProperty Struct ​

The VPC and subnets for a proxy-mode firewall's endpoint.

Provide this instead of the top-level VpcId and SubnetMappings when NoSourcePreservation is true.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const vpcEndpointProperty: networkfirewall.CfnFirewall.VpcEndpointProperty = {
  subnetMappings: [{
    subnetId: 'subnetId',

    // the properties below are optional
    ipAddressType: 'ipAddressType',
  }],
  vpcId: 'vpcId',
};
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_networkfirewall as networkfirewall

vpc_endpoint_property = networkfirewall.CfnFirewall.VpcEndpointProperty(
    subnet_mappings=[networkfirewall.CfnFirewall.SubnetMappingProperty(
        subnet_id="subnetId",

        # the properties below are optional
        ip_address_type="ipAddressType"
    )],
    vpc_id="vpcId"
)
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.networkfirewall.*;

VpcEndpointProperty vpcEndpointProperty = VpcEndpointProperty.builder()
        .subnetMappings(List.of(SubnetMappingProperty.builder()
                .subnetId("subnetId")

                // the properties below are optional
                .ipAddressType("ipAddressType")
                .build()))
        .vpcId("vpcId")
        .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.NetworkFirewall;

var vpcEndpointProperty = new VpcEndpointProperty {
    SubnetMappings = new [] { new SubnetMappingProperty {
        SubnetId = "subnetId",

        // the properties below are optional
        IpAddressType = "ipAddressType"
    } },
    VpcId = "vpcId"
};
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"

vpcEndpointProperty := &VpcEndpointProperty{
	SubnetMappings: []interface{}{
		&SubnetMappingProperty{
			SubnetId: jsii.String("subnetId"),

			// the properties below are optional
			IpAddressType: jsii.String("ipAddressType"),
		},
	},
	VpcId: jsii.String("vpcId"),
}

Properties ​

subnetMappingsoptionalIResolvable | IResolvable | CfnFirewall.SubnetMappingProperty[]subnet_mappingsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SubnetMappingProperty]]]subnetMappingsoptionalIResolvableSubnetMappingsoptionalIResolvableSubnetMappingsoptionalinterface{} #
vpcIdoptionalstringvpc_idoptionalstrvpcIdoptionalStringVpcIdoptionalstringVpcIdoptional*string #
The unique identifier of the VPC for the firewall endpoint.