Skip to main content

rooms

Creates, updates, deletes or gets a room resource or lists rooms in a region

Overview

Namerooms
TypeResource
DescriptionResource type definition for AWS::IVSChat::Room.
Idaws.ivschat.rooms

Fields

NameDatatypeDescription
arnstringRoom ARN is automatically generated on creation and assigned as the unique identifier.
idstringThe system-generated ID of the room.
namestringThe name of the room. The value does not need to be unique.
logging_configuration_identifiersarrayArray of logging configuration identifiers attached to the room.
maximum_message_lengthintegerThe maximum number of characters in a single message.
maximum_message_rate_per_secondintegerThe maximum number of messages per second that can be sent to the room.
message_review_handlerobjectConfiguration information for optional review of messages.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERT, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all rooms in a region.

SELECT
region,
arn,
id,
name,
logging_configuration_identifiers,
maximum_message_length,
maximum_message_rate_per_second,
message_review_handler,
tags
FROM aws.ivschat.rooms
WHERE region = 'us-east-1';

Gets all properties from an individual room.

SELECT
region,
arn,
id,
name,
logging_configuration_identifiers,
maximum_message_length,
maximum_message_rate_per_second,
message_review_handler,
tags
FROM aws.ivschat.rooms
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new room resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ivschat.rooms (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ivschat.rooms
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the rooms resource, the following permissions are required:

Create

ivschat:CreateRoom,
ivschat:TagResource

Read

ivschat:GetRoom,
ivschat:ListTagsForResource

Update

ivschat:UpdateRoom,
ivschat:TagResource,
ivschat:UntagResource,
ivschat:ListTagsForResource

Delete

ivschat:DeleteRoom,
ivschat:UntagResource

List

ivschat:ListRooms,
ivschat:ListTagsForResource