UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

205 lines (204 loc) 7.79 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement, Operator } from '../../shared'; import { aws_iam as iam } from "aws-cdk-lib"; /** * Statement provider for service [interconnect](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsinterconnect.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Interconnect extends PolicyStatement { servicePrefix: string; /** * Grants permission to accept a connection proposal generated elsewhere * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/interconnect/latest/api/API_AcceptConnectionProposal.html */ toAcceptConnectionProposal(): this; /** * Grants permission to create a connection * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/interconnect/latest/api/API_CreateConnection.html */ toCreateConnection(): this; /** * Grants permission to delete an existing connection * * Access Level: Write * * https://docs.aws.amazon.com/interconnect/latest/api/API_DeleteConnection.html */ toDeleteConnection(): this; /** * Grants permission to describe a connection proposal * * Access Level: Read * * https://docs.aws.amazon.com/interconnect/latest/api/API_DescribeConnectionProposal.html */ toDescribeConnectionProposal(): this; /** * Grants permission to describe a connection * * Access Level: Read * * https://docs.aws.amazon.com/interconnect/latest/api/API_GetConnection.html */ toGetConnection(): this; /** * Grants permission to describe an environment * * Access Level: Read * * https://docs.aws.amazon.com/interconnect/latest/api/API_GetEnvironment.html */ toGetEnvironment(): this; /** * Grants permission to list available attach points * * Access Level: Read * * https://docs.aws.amazon.com/interconnect/latest/api/API_ListAttachPoints.html */ toListAttachPoints(): this; /** * Grants permission to list connections * * Access Level: List * * https://docs.aws.amazon.com/interconnect/latest/api/API_ListConnections.html */ toListConnections(): this; /** * Grants permission to list available environments * * Access Level: List * * https://docs.aws.amazon.com/interconnect/latest/api/API_ListEnvironments.html */ toListEnvironments(): this; /** * Grants permission to list tags on a resource * * Access Level: Read * * https://docs.aws.amazon.com/interconnect/latest/api/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to apply tags to a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/interconnect/latest/api/API_TagResource.html */ toTagResource(): this; /** * Grants permission to remove tags from a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/interconnect/latest/api/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to update an existing connection * * Access Level: Write * * https://docs.aws.amazon.com/interconnect/latest/api/API_UpdateConnection.html */ toUpdateConnection(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type connection to the statement * * https://docs.aws.amazon.com/interconnect/latest/api/Connection.html * * @param id - Identifier for the id. * @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. * * Possible conditions: * - .ifAwsResourceTag() */ onConnection(id: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type environment to the statement * * https://docs.aws.amazon.com/interconnect/latest/api/Environment.html * * @param id - Identifier for the id. * @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. */ onEnvironment(id: string, account?: string, region?: string, partition?: string): this; /** * Filters access by a tag key and value pair that is allowed in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toAcceptConnectionProposal() * - .toCreateConnection() * - .toTagResource() * * @param tagKey The tag key to check * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsRequestTag(tagKey: string, value: string | string[], operator?: Operator | string): this; /** * Filters access by a tag key and value pair of a resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to resource types: * - connection * * @param tagKey The tag key to check * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsResourceTag(tagKey: string, value: string | string[], operator?: Operator | string): this; /** * Filters access by a list of tag keys that are allowed in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toAcceptConnectionProposal() * - .toCreateConnection() * - .toTagResource() * - .toUntagResource() * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsTagKeys(value: string | string[], operator?: Operator | string): this; /** * Statement provider for service [interconnect](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsinterconnect.html). * */ constructor(props?: iam.PolicyStatementProps); }