@cloud-copilot/iam-collect
Version:
Collect IAM information from AWS Accounts
13 lines • 626 B
TypeScript
import { type Sync } from '../sync.js';
export declare const RestApisSync: Sync;
/**
* Parse the API Gateway policy string into a JSON object.
* For some reason API Gateway policies can have \\\ at the start of every string
* and any forward slash is escaped with a double backslash (\\/)
*
* @param apiId the ID of the API Gateway
* @param policy the policy string to parse
* @returns the parsed policy object or undefined if the policy is not provided
*/
export declare function parseApiGatewayPolicy(apiId: string, policy: string | undefined): Record<string, any> | undefined;
//# sourceMappingURL=gateways.d.ts.map