Skip to content
v2.273.0

HttpApiAttributes Struct ​

Attributes for importing an HttpApi into the CDK.

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 ​

apiEndpointstringapi_endpointstrapiEndpointStringApiEndpointstringApiEndpoint*string= throws an error if apiEndpoint i…#
The endpoint URL of the HttpApi.
default

Default: throws an error if apiEndpoint is accessed.

httpApiIdstringhttp_api_idstrhttpApiIdStringHttpApiIdstringHttpApiId*stringrequired#
The identifier of the HttpApi.