UNPKG

@cloud-copilot/iam-collect

Version:

Collect IAM information from AWS Accounts

34 lines 1.25 kB
import { APIGatewayClient, GetRestApisCommand } from '@aws-sdk/client-api-gateway'; import {} from '../../aws/coreAuth.js'; import { AbstractClient } from '../../customClients/AbstractClient.js'; import { awsConfigCommand } from '../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. */ export class AwsConfigApiGatewayClient extends AbstractClient { constructor(options, customContext) { super(options, customContext); } /** * Register all API Gateway command implementations */ registerCommands() { this.registerCommand(AwsConfigGetRestApisCommand); } } AwsConfigApiGatewayClient.clientName = APIGatewayClient.name; /** * Config-based implementation of API Gateway GetRestApisCommand */ const AwsConfigGetRestApisCommand = awsConfigCommand({ command: GetRestApisCommand, execute: async (input, context) => { return { items: [] // API Gateway is not fully supported in Config, so return empty result }; } }); //# sourceMappingURL=AwsConfigApiGatewayClient.js.map