# VpcEndpointProperty

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.

- Source: Generated code
- Type last changed: v2.275.0 · 26 Oct 2026

## 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',
};
```

## Properties

- `subnetMappings`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFirewall.SubnetMappingProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnFirewall.SubnetMappingProperty.html)[]

- `vpcId`: string — The unique identifier of the VPC for the firewall endpoint.
