list_rooms

list_rooms(**kwargs)

Gets summary information about all your rooms in the AWS region where the API request is processed. Results are sorted in descending order of updateTime .

See also: AWS API Documentation

Request Syntax

response = client.list_rooms(
    loggingConfigurationIdentifier='string',
    maxResults=123,
    messageReviewHandlerUri='string',
    name='string',
    nextToken='string'
)
Parameters
  • loggingConfigurationIdentifier (string) -- Logging-configuration identifier.
  • maxResults (integer) -- Maximum number of rooms to return. Default: 50.
  • messageReviewHandlerUri (string) -- Filters the list to match the specified message review handler URI.
  • name (string) -- Filters the list to match the specified room name.
  • nextToken (string) -- The first room to retrieve. This is used for pagination; see the nextToken response field.
Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'rooms': [
        {
            'arn': 'string',
            'createTime': datetime(2015, 1, 1),
            'id': 'string',
            'loggingConfigurationIdentifiers': [
                'string',
            ],
            'messageReviewHandler': {
                'fallbackResult': 'ALLOW'|'DENY',
                'uri': 'string'
            },
            'name': 'string',
            'tags': {
                'string': 'string'
            },
            'updateTime': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      If there are more rooms than maxResults , use nextToken in the request to get the next set.

    • rooms (list) --

      List of the matching rooms (summary information only).

      • (dict) --

        Summary information about a room.

        • arn (string) --

          Room ARN.

        • createTime (datetime) --

          Time when the room was created. This is an ISO 8601 timestamp; note that this is returned as a string .

        • id (string) --

          Room ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the room.

        • loggingConfigurationIdentifiers (list) --

          List of logging-configuration identifiers attached to the room.

          • (string) --
        • messageReviewHandler (dict) --

          Configuration information for optional review of messages.

          • fallbackResult (string) --

            Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the message is delivered with returned content to all users connected to the room. If denied, the message is not delivered to any user. Default: ALLOW .

          • uri (string) --

            Identifier of the message review handler. Currently this must be an ARN of a lambda function.

        • name (string) --

          Room name. The value does not need to be unique.

        • tags (dict) --

          Tags attached to the resource. Array of maps, each of the form string:string (key:value) . See Tagging AWS Resources for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond what is documented there.

          • (string) --
            • (string) --
        • updateTime (datetime) --

          Time of the room’s last update. This is an ISO 8601 timestamp; note that this is returned as a string .

Exceptions

  • ivschat.Client.exceptions.AccessDeniedException
  • ivschat.Client.exceptions.ResourceNotFoundException
  • ivschat.Client.exceptions.ValidationException