UNPKG

@cloud-copilot/iam-collect

Version:

Collect IAM information from AWS Accounts

37 lines 1.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AwsConfigApiGatewayClient = void 0; const client_api_gateway_1 = require("@aws-sdk/client-api-gateway"); const AbstractClient_js_1 = require("../../customClients/AbstractClient.js"); const AwsConfigClientContext_js_1 = require("../AwsConfigClientContext.js"); /** * API Gateway client implementation using AWS Config as data source * * Since policies are not available in AWS Config, this client provides limited functionality * and returns empty results for all operations. */ class AwsConfigApiGatewayClient extends AbstractClient_js_1.AbstractClient { static clientName = client_api_gateway_1.APIGatewayClient.name; constructor(options, customContext) { super(options, customContext); } /** * Register all API Gateway command implementations */ registerCommands() { this.registerCommand(AwsConfigGetRestApisCommand); } } exports.AwsConfigApiGatewayClient = AwsConfigApiGatewayClient; /** * Config-based implementation of API Gateway GetRestApisCommand */ const AwsConfigGetRestApisCommand = (0, AwsConfigClientContext_js_1.awsConfigCommand)({ command: client_api_gateway_1.GetRestApisCommand, execute: async (input, context) => { return { items: [] // API Gateway is not fully supported in Config, so return empty result }; } }); //# sourceMappingURL=AwsConfigApiGatewayClient.js.map