UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

48 lines (47 loc) 2.67 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement } from '../../shared'; import { aws_iam as iam } from "aws-cdk-lib"; /** * Statement provider for service [vpce](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsprivatelink.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Vpce extends PolicyStatement { servicePrefix: string; /** * Grants permission to manage multi-region VPC endpoints and VPC endpoint service configurations * * Access Level: Write * * https://docs.aws.amazon.com/vpc/latest/privatelink/security_iam_service-with-iam.html */ toAllowMultiRegion(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type vpc-endpoint to the statement * * https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-overview.html * * @param vpcEndpointId - Identifier for the vpcEndpointId. * @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. */ onVpcEndpoint(vpcEndpointId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type vpc-endpoint-service to the statement * * https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-services-overview.html * * @param vpcEndpointServiceId - Identifier for the vpcEndpointServiceId. * @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. */ onVpcEndpointService(vpcEndpointServiceId: string, account?: string, region?: string, partition?: string): this; /** * Statement provider for service [vpce](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsprivatelink.html). * */ constructor(props?: iam.PolicyStatementProps); }