# HttpApiAttributes

Attributes for importing an HttpApi into the CDK.

- Source: [`aws-apigatewayv2/lib/http/api.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/api.ts#L367)
- Type last changed: v2.112.0 · 1 Dec 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const httpApiAttributes: apigatewayv2.HttpApiAttributes = {
  httpApiId: 'httpApiId',

  // the properties below are optional
  apiEndpoint: 'apiEndpoint',
};
```

## Properties

- `apiEndpoint`: string — The endpoint URL of the HttpApi.

  **Default:** throws an error if apiEndpoint is accessed.

- `httpApiId`: string (required) — The identifier of the HttpApi.
