# VpcEndpointPrivateDnsOnlyForInboundResolverEndpoint

Indicates whether to enable private DNS only for inbound endpoints.

This option is available only for services that support both gateway and interface endpoints.
It routes traffic that originates from the VPC to the gateway endpoint and traffic that
originates from on-premises to the interface endpoint.

- Source: [`aws-ec2/lib/vpc-endpoint.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.ts#L185)
- Type last changed: v2.190.0 · 17 Apr 2025

## Members

| Member | Description |
| --- | --- |
| `ALL_RESOLVERS` | Enable private DNS for all resolvers. |
| `ONLY_INBOUND_RESOLVER` | Enable private DNS only for inbound endpoints. |

## Referenced by

- [`InterfaceVpcEndpointOptions`](/v2/docs/aws-cdk-lib.aws_ec2.InterfaceVpcEndpointOptions).privateDnsOnlyForInboundResolverEndpoint
