DocsAWS 101BlogServices

API Gateway v2 (HTTP / WebSocket)

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

REST-JSON multi-tenant 32 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

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

CreateApi CreateAuthorizer CreateDeployment CreateIntegration CreateRoute CreateStage DeleteApi DeleteAuthorizer DeleteDeployment DeleteIntegration DeleteRoute DeleteStage GetApi GetApis GetAuthorizer GetAuthorizers GetDeployment GetDeployments GetIntegration GetIntegrations GetRoute GetRoutes GetStage GetStages GetTags TagResource UntagResource UpdateApi UpdateAuthorizer UpdateIntegration UpdateRoute UpdateStage

CloudFormation

The CloudFormation engine provisions these resource types via this service:

AWS::ApiGatewayV2::Api AWS::ApiGatewayV2::Stage

See CloudFormation engine for intrinsic support and lifecycle details.

Known limitations

  • AccessLogSettings are not written.
  • Automatic CORS configuration is limited — explicit CORS routes are more reliable.

Source

  • ministack/services/apigateway.py

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