用途:在 VS Code 中通过 APIGatewayTool 管理、检查和测试 AWS API Gateway REST API,覆盖资源、方法、集成、阶段、授权方、使用计划、域名等。
主要能力:支持列出和查看 REST API、资源树、方法与集成、阶段、部署与阶段变量、授权方、使用计划、API 密钥、配额、自定义域名、基础路径映射、VPC 链接、模型、请求校验器、文档;可测试调用方法或授权方而无需部署;可导出 API 或获取 SDK 产物;也可创建和删除 API、资源、阶段、授权方、使用计划,并更新 API 定义或阶段设置。共 68 个命令。
使用方式:在 VS Code 中以 {"command": "<CommandName>", "params": {...}} 形式调用。常用命令包括 GetRestApis、GetResources、GetMethod、GetIntegration、GetStages、TestInvokeMethod、TestInvokeAuthorizer、GetUsagePlans 等。参数含 restApiId、resourceId、httpMethod、stageName、authorizerId、usagePlanId、domainName、limit、position 及测试调用用的 headers、body、pathWithQueryString、stageVariables 等。示例:{"command": "GetRestApis", "params": {"limit": 25}};{"command": "TestInvokeMethod", "params": {"restApiId": "abc123def", "resourceId": "xyz789", "httpMethod": "GET", "pathWithQueryString": "/items?category=books"}}。
适用场景:快速盘点 REST API、调试方法集成、验证授权方行为、查看部署与阶段变量、审计 API 密钥限流与配额。
限制:需在 VS Code 中使用 awsflow 扩展;本页未提供安装命令、收费方式及更多平台支持信息。API Gateway 执行日志组模式为 API-Gateway-Execution-Logs_<restApiId>/<stageName>。