UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

253 lines (252 loc) 9.76 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 [ivschat](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazoninteractivevideoservicechat.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Ivschat extends PolicyStatement { servicePrefix: string; /** * Grants permission to create an encrypted token that is used to establish an individual WebSocket connection to a room * * Access Level: Write * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_CreateChatToken.html */ toCreateChatToken(): this; /** * Grants permission to create a logging configuration that allows clients to record room messages * * Access Level: Write * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_CreateLoggingConfiguration.html */ toCreateLoggingConfiguration(): this; /** * Grants permission to create a room that allows clients to connect and pass messages * * Access Level: Write * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_CreateRoom.html */ toCreateRoom(): this; /** * Grants permission to delete the logging configuration for a specified logging configuration ARN * * Access Level: Write * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_DeleteLoggingConfiguration.html */ toDeleteLoggingConfiguration(): this; /** * Grants permission to send an event to a specific room which directs clients to delete a specific message * * Access Level: Write * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_DeleteMessage.html */ toDeleteMessage(): this; /** * Grants permission to delete the room for a specified room ARN * * Access Level: Write * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_DeleteRoom.html */ toDeleteRoom(): this; /** * Grants permission to disconnect all connections using a specified user ID from a room * * Access Level: Write * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_DisconnectUser.html */ toDisconnectUser(): this; /** * Grants permission to get the logging configuration for a specified logging configuration ARN * * Access Level: Read * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_GetLoggingConfiguration.html */ toGetLoggingConfiguration(): this; /** * Grants permission to get the room configuration for a specified room ARN * * Access Level: Read * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_GetRoom.html */ toGetRoom(): this; /** * Grants permission to get summary information about logging configurations * * Access Level: List * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_ListLoggingConfigurations.html */ toListLoggingConfigurations(): this; /** * Grants permission to get summary information about rooms * * Access Level: List * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_ListRooms.html */ toListRooms(): this; /** * Grants permission to get information about the tags for a specified ARN * * Access Level: Read * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Grants permission to send an event to a room * * Access Level: Write * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_SendEvent.html */ toSendEvent(): this; /** * Grants permission to add or update tags for a resource with a specified ARN * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * - .ifAwsRequestTag() * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_TagResource.html */ toTagResource(): this; /** * Grants permission to remove tags for a resource with a specified ARN * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_UntagResource.html */ toUntagResource(): this; /** * Grants permission to update the logging configuration for a specified logging configuration ARN * * Access Level: Write * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_UpdateLoggingConfiguration.html */ toUpdateLoggingConfiguration(): this; /** * Grants permission to update the room configuration for a specified room ARN * * Access Level: Write * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_UpdateRoom.html */ toUpdateRoom(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type Room to the statement * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_Room.html * * @param resourceId - Identifier for the resourceId. * @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() */ onRoom(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type Logging-Configuration to the statement * * https://docs.aws.amazon.com/ivs/latest/ChatAPIReference/API_LoggingConfiguration.html * * @param resourceId - Identifier for the resourceId. * @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() */ onLoggingConfiguration(resourceId: string, account?: string, region?: string, partition?: string): this; /** * Filters access by the tags associated with the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateChatToken() * - .toCreateLoggingConfiguration() * - .toCreateRoom() * - .toListTagsForResource() * - .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 the tags associated with the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to resource types: * - Room * - Logging-Configuration * * @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 the tag keys that are passed in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateChatToken() * - .toCreateLoggingConfiguration() * - .toCreateRoom() * - .toListTagsForResource() * - .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 [ivschat](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazoninteractivevideoservicechat.html). * */ constructor(props?: iam.PolicyStatementProps); }