amazonka-ivschat-2.0: Amazon Interactive Video Service Chat SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IVSChat.CreateRoom

Description

Creates a room that allows clients to connect and pass messages.

Synopsis

Creating a Request

data CreateRoom Source #

See: newCreateRoom smart constructor.

Constructors

CreateRoom' 

Fields

Instances

Instances details
ToJSON CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

ToHeaders CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

Methods

toHeaders :: CreateRoom -> [Header] #

ToPath CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

ToQuery CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

AWSRequest CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

Associated Types

type AWSResponse CreateRoom #

Generic CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

Associated Types

type Rep CreateRoom :: Type -> Type #

Read CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

Show CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

NFData CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

Methods

rnf :: CreateRoom -> () #

Eq CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

Hashable CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

type AWSResponse CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

type Rep CreateRoom Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

type Rep CreateRoom = D1 ('MetaData "CreateRoom" "Amazonka.IVSChat.CreateRoom" "amazonka-ivschat-2.0-AB4QlCKEEGt4izEWjWKMb2" 'False) (C1 ('MetaCons "CreateRoom'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "loggingConfigurationIdentifiers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "maximumMessageLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "maximumMessageRatePerSecond") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: (S1 ('MetaSel ('Just "messageReviewHandler") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MessageReviewHandler)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))))

newCreateRoom :: CreateRoom Source #

Create a value of CreateRoom with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateRoom, createRoom_loggingConfigurationIdentifiers - Array of logging-configuration identifiers attached to the room.

CreateRoom, createRoom_maximumMessageLength - Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes. Default: 500.

CreateRoom, createRoom_maximumMessageRatePerSecond - Maximum number of messages per second that can be sent to the room (by all clients). Default: 10.

CreateRoom, createRoom_messageReviewHandler - Configuration information for optional review of messages.

CreateRoom, createRoom_name - Room name. The value does not need to be unique.

CreateRoom, createRoom_tags - Tags to attach 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.

Request Lenses

createRoom_loggingConfigurationIdentifiers :: Lens' CreateRoom (Maybe [Text]) Source #

Array of logging-configuration identifiers attached to the room.

createRoom_maximumMessageLength :: Lens' CreateRoom (Maybe Natural) Source #

Maximum number of characters in a single message. Messages are expected to be UTF-8 encoded and this limit applies specifically to rune/code-point count, not number of bytes. Default: 500.

createRoom_maximumMessageRatePerSecond :: Lens' CreateRoom (Maybe Natural) Source #

Maximum number of messages per second that can be sent to the room (by all clients). Default: 10.

createRoom_messageReviewHandler :: Lens' CreateRoom (Maybe MessageReviewHandler) Source #

Configuration information for optional review of messages.

createRoom_name :: Lens' CreateRoom (Maybe Text) Source #

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

createRoom_tags :: Lens' CreateRoom (Maybe (HashMap Text Text)) Source #

Tags to attach 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.

Destructuring the Response

data CreateRoomResponse Source #

See: newCreateRoomResponse smart constructor.

Constructors

CreateRoomResponse' 

Fields

Instances

Instances details
Generic CreateRoomResponse Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

Associated Types

type Rep CreateRoomResponse :: Type -> Type #

Read CreateRoomResponse Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

Show CreateRoomResponse Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

NFData CreateRoomResponse Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

Methods

rnf :: CreateRoomResponse -> () #

Eq CreateRoomResponse Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

type Rep CreateRoomResponse Source # 
Instance details

Defined in Amazonka.IVSChat.CreateRoom

type Rep CreateRoomResponse = D1 ('MetaData "CreateRoomResponse" "Amazonka.IVSChat.CreateRoom" "amazonka-ivschat-2.0-AB4QlCKEEGt4izEWjWKMb2" 'False) (C1 ('MetaCons "CreateRoomResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "loggingConfigurationIdentifiers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "maximumMessageLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))) :*: ((S1 ('MetaSel ('Just "maximumMessageRatePerSecond") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "messageReviewHandler") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MessageReviewHandler)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "updateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newCreateRoomResponse Source #

Create a value of CreateRoomResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateRoomResponse, createRoomResponse_arn - Room ARN, assigned by the system.

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

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

CreateRoom, createRoomResponse_loggingConfigurationIdentifiers - Array of logging configurations attached to the room, from the request (if specified).

CreateRoom, createRoomResponse_maximumMessageLength - Maximum number of characters in a single message, from the request (if specified).

CreateRoom, createRoomResponse_maximumMessageRatePerSecond - Maximum number of messages per second that can be sent to the room (by all clients), from the request (if specified).

CreateRoom, createRoomResponse_messageReviewHandler - Configuration information for optional review of messages.

CreateRoom, createRoomResponse_name - Room name, from the request (if specified).

CreateRoom, createRoomResponse_tags - Tags attached to the resource, from the request (if specified).

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

$sel:httpStatus:CreateRoomResponse', createRoomResponse_httpStatus - The response's http status code.

Response Lenses

createRoomResponse_arn :: Lens' CreateRoomResponse (Maybe Text) Source #

Room ARN, assigned by the system.

createRoomResponse_createTime :: Lens' CreateRoomResponse (Maybe UTCTime) Source #

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

createRoomResponse_id :: Lens' CreateRoomResponse (Maybe Text) Source #

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

createRoomResponse_loggingConfigurationIdentifiers :: Lens' CreateRoomResponse (Maybe [Text]) Source #

Array of logging configurations attached to the room, from the request (if specified).

createRoomResponse_maximumMessageLength :: Lens' CreateRoomResponse (Maybe Natural) Source #

Maximum number of characters in a single message, from the request (if specified).

createRoomResponse_maximumMessageRatePerSecond :: Lens' CreateRoomResponse (Maybe Natural) Source #

Maximum number of messages per second that can be sent to the room (by all clients), from the request (if specified).

createRoomResponse_messageReviewHandler :: Lens' CreateRoomResponse (Maybe MessageReviewHandler) Source #

Configuration information for optional review of messages.

createRoomResponse_name :: Lens' CreateRoomResponse (Maybe Text) Source #

Room name, from the request (if specified).

createRoomResponse_tags :: Lens' CreateRoomResponse (Maybe (HashMap Text Text)) Source #

Tags attached to the resource, from the request (if specified).

createRoomResponse_updateTime :: Lens' CreateRoomResponse (Maybe UTCTime) Source #

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