Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a room that allows clients to connect and pass messages.
Synopsis
- data CreateRoom = CreateRoom' {}
- newCreateRoom :: CreateRoom
- createRoom_loggingConfigurationIdentifiers :: Lens' CreateRoom (Maybe [Text])
- createRoom_maximumMessageLength :: Lens' CreateRoom (Maybe Natural)
- createRoom_maximumMessageRatePerSecond :: Lens' CreateRoom (Maybe Natural)
- createRoom_messageReviewHandler :: Lens' CreateRoom (Maybe MessageReviewHandler)
- createRoom_name :: Lens' CreateRoom (Maybe Text)
- createRoom_tags :: Lens' CreateRoom (Maybe (HashMap Text Text))
- data CreateRoomResponse = CreateRoomResponse' {
- arn :: Maybe Text
- createTime :: Maybe ISO8601
- id :: Maybe Text
- loggingConfigurationIdentifiers :: Maybe [Text]
- maximumMessageLength :: Maybe Natural
- maximumMessageRatePerSecond :: Maybe Natural
- messageReviewHandler :: Maybe MessageReviewHandler
- name :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- updateTime :: Maybe ISO8601
- httpStatus :: Int
- newCreateRoomResponse :: Int -> CreateRoomResponse
- createRoomResponse_arn :: Lens' CreateRoomResponse (Maybe Text)
- createRoomResponse_createTime :: Lens' CreateRoomResponse (Maybe UTCTime)
- createRoomResponse_id :: Lens' CreateRoomResponse (Maybe Text)
- createRoomResponse_loggingConfigurationIdentifiers :: Lens' CreateRoomResponse (Maybe [Text])
- createRoomResponse_maximumMessageLength :: Lens' CreateRoomResponse (Maybe Natural)
- createRoomResponse_maximumMessageRatePerSecond :: Lens' CreateRoomResponse (Maybe Natural)
- createRoomResponse_messageReviewHandler :: Lens' CreateRoomResponse (Maybe MessageReviewHandler)
- createRoomResponse_name :: Lens' CreateRoomResponse (Maybe Text)
- createRoomResponse_tags :: Lens' CreateRoomResponse (Maybe (HashMap Text Text))
- createRoomResponse_updateTime :: Lens' CreateRoomResponse (Maybe UTCTime)
- createRoomResponse_httpStatus :: Lens' CreateRoomResponse Int
Creating a Request
data CreateRoom Source #
See: newCreateRoom
smart constructor.
CreateRoom' | |
|
Instances
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.
CreateRoomResponse' | |
|
Instances
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/.
createRoomResponse_httpStatus :: Lens' CreateRoomResponse Int Source #
The response's http status code.