Skip to content
v2.276.0

SubnetMappingProperty Struct ​

The ID for a subnet that's used in an association with a firewall.

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.

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 subnetMappingProperty: networkfirewall.CfnVpcEndpointAssociation.SubnetMappingProperty = {
  subnetId: 'subnetId',

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

Properties ​

ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*string#
The subnet's IP address type.

You can't change the IP address type after you create the subnet.

subnetIdstringsubnet_idstrsubnetIdStringSubnetIdstringSubnetId*stringrequired#
The unique identifier for the subnet.