# EndpointConfiguration

The endpoint configuration of a REST API, including VPCs and endpoint types.

EndpointConfiguration is a property of the AWS::ApiGateway::RestApi resource.

- Source: [`aws-apigateway/lib/restapi.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts#L1127)
- Type last changed: v2.195.0 · 7 May 2025

## Example

```ts
declare const someEndpoint: ec2.IVpcEndpoint;

const api = new apigateway.RestApi(this, 'api', {
  endpointConfiguration: {
    types: [ apigateway.EndpointType.PRIVATE ],
    vpcEndpoints: [ someEndpoint ]
  }
});
```

## Properties

- `ipAddressType`: [IpAddressType](/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.IpAddressType.html) — The IP address types that can invoke the API.

  **Default:** undefined - AWS default is DUAL_STACK for private API, IPV4 for all other APIs.

- `types`: [EndpointType](/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.EndpointType.html)[] (required) = EndpointType.EDGE — A list of endpoint types of an API or its custom domain name.

- `vpcEndpoints`: [IVpcEndpoint](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.IVpcEndpoint.html)[] — A list of VPC Endpoints against which to create Route53 ALIASes.

  **Default:** no ALIASes are created for the endpoint.
