UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

54 lines (53 loc) 2.43 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement } from '../../shared'; import { aws_iam as iam } from "aws-cdk-lib"; /** * Statement provider for service [execute-api](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonapigateway.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class ExecuteApi extends PolicyStatement { servicePrefix: string; /** * Used to invalidate API cache upon a client request * * Access Level: Write * * https://docs.aws.amazon.com/apigateway/api-reference/api-gateway-caching.html */ toInvalidateCache(): this; /** * Used to invoke an API upon a client request * * Access Level: Write * * https://docs.aws.amazon.com/apigateway/api-reference/how-to-call-api.html */ toInvoke(): this; /** * ManageConnections controls access to the @connections API * * Access Level: Write * * https://docs.aws.amazon.com/apigateway/api-reference/apigateway-websocket-control-access-iam.html */ toManageConnections(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type execute-api-general to the statement * * @param apiId - Identifier for the apiId. * @param stage - Identifier for the stage. * @param method - Identifier for the method. * @param apiSpecificResourcePath - Identifier for the apiSpecificResourcePath. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onExecuteApiGeneral(apiId: string, stage: string, method: string, apiSpecificResourcePath: string, account?: string, region?: string, partition?: string): this; /** * Statement provider for service [execute-api](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonapigateway.html). * */ constructor(props?: iam.PolicyStatementProps); }