DocsAWS 101BlogServices

API Gateway v2 (HTTP / WebSocket)

HTTP APIs and WebSocket APIs — routes, integrations, authorizers, stages, domain names.

REST-JSON multi-tenant 52 operations

Quick start

import boto3
h = boto3.client("apigatewayv2", endpoint_url="http://localhost:4566",
                 region_name="us-east-1",
                 aws_access_key_id="test", aws_secret_access_key="test")
h.create_api(Name="demo", ProtocolType="HTTP")

Supported operations

52 operations exposed by this service as of MiniStack 1.5.24. Extracted directly from the handler dispatch in the source module.

CreateApi CreateApiMapping CreateAuthorizer CreateDeployment CreateDomainName CreateIntegration CreateIntegrationResponse CreateRoute CreateRouteResponse CreateStage DeleteApi DeleteApiMapping DeleteAuthorizer DeleteDeployment DeleteDomainName DeleteIntegration DeleteIntegrationResponse DeleteRoute DeleteRouteResponse DeleteStage GetApi GetApiMapping GetApiMappings GetApis GetAuthorizer GetAuthorizers GetDeployment GetDeployments GetDomainName GetDomainNames GetIntegration GetIntegrationResponse GetIntegrationResponses GetIntegrations GetRoute GetRouteResponse GetRouteResponses GetRoutes GetStage GetStages GetTags TagResource UntagResource UpdateApi UpdateApiMapping UpdateAuthorizer UpdateDomainName UpdateIntegration UpdateIntegrationResponse UpdateRoute UpdateRouteResponse UpdateStage

CloudFormation

The CloudFormation engine provisions these resource types via this service:

AWS::ApiGatewayV2::Api AWS::ApiGatewayV2::Authorizer AWS::ApiGatewayV2::Integration AWS::ApiGatewayV2::Route AWS::ApiGatewayV2::Stage

See CloudFormation engine for intrinsic support and lifecycle details.

Known limitations

  • AccessLogSettings are not written.
  • corsConfiguration is applied automatically — OPTIONS preflight is served and CORS headers are merged into route responses.

Source

  • ministack/services/apigateway.py

Read the source to verify the ops list above — dispatch tables and handler functions are the ground truth.