Skip to content
v2.278.0

CfnVpcEndpointAssociationProps Struct ​

Properties for defining a CfnVpcEndpointAssociation.

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 cfnVpcEndpointAssociationProps: networkfirewall.CfnVpcEndpointAssociationProps = {
  firewallArn: 'firewallArn',
  subnetMapping: {
    subnetId: 'subnetId',

    // the properties below are optional
    ipAddressType: 'ipAddressType',
  },
  vpcId: 'vpcId',

  // the properties below are optional
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
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_networkfirewall as networkfirewall

cfn_vpc_endpoint_association_props = networkfirewall.CfnVpcEndpointAssociationProps(
    firewall_arn="firewallArn",
    subnet_mapping=networkfirewall.CfnVpcEndpointAssociation.SubnetMappingProperty(
        subnet_id="subnetId",

        # the properties below are optional
        ip_address_type="ipAddressType"
    ),
    vpc_id="vpcId",

    # the properties below are optional
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnVpcEndpointAssociationProps cfnVpcEndpointAssociationProps = CfnVpcEndpointAssociationProps.builder()
        .firewallArn("firewallArn")
        .subnetMapping(SubnetMappingProperty.builder()
                .subnetId("subnetId")

                // the properties below are optional
                .ipAddressType("ipAddressType")
                .build())
        .vpcId("vpcId")

        // the properties below are optional
        .description("description")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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.NetworkFirewall;

var cfnVpcEndpointAssociationProps = new CfnVpcEndpointAssociationProps {
    FirewallArn = "firewallArn",
    SubnetMapping = new SubnetMappingProperty {
        SubnetId = "subnetId",

        // the properties below are optional
        IpAddressType = "ipAddressType"
    },
    VpcId = "vpcId",

    // the properties below are optional
    Description = "description",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnVpcEndpointAssociationProps := &CfnVpcEndpointAssociationProps{
	FirewallArn: jsii.String("firewallArn"),
	SubnetMapping: &SubnetMappingProperty{
		SubnetId: jsii.String("subnetId"),

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

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description of the VPC endpoint association.
firewallArnstringfirewall_arnstrfirewallArnStringFirewallArnstringFirewallArn*string required #
The Amazon Resource Name (ARN) of the firewall.
subnetMappingIResolvable | CfnVpcEndpointAssociation.SubnetMappingPropertysubnet_mappingtyping.Union[IResolvable, SubnetMappingProperty]subnetMappingIResolvableSubnetMappingIResolvableSubnetMappinginterface{} required #
The ID for a subnet that's used in an association with a firewall.
notes

This is used in CreateFirewall , AssociateSubnets , and CreateVpcEndpointAssociation . AWS Network Firewall creates an instance of the associated firewall in each subnet that you specify, to filter traffic in the subnet's Availability Zone.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The key:value pairs to associate with the resource.
vpcIdstringvpc_idstrvpcIdStringVpcIdstringVpcId*string required #
The unique identifier of the VPC for the endpoint association.