Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a room with the specified details.
Synopsis
- data CreateRoom = CreateRoom' {
- profileArn :: Maybe Text
- providerCalendarId :: Maybe Text
- clientRequestToken :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- roomName :: Text
- newCreateRoom :: Text -> CreateRoom
- createRoom_profileArn :: Lens' CreateRoom (Maybe Text)
- createRoom_providerCalendarId :: Lens' CreateRoom (Maybe Text)
- createRoom_clientRequestToken :: Lens' CreateRoom (Maybe Text)
- createRoom_description :: Lens' CreateRoom (Maybe Text)
- createRoom_tags :: Lens' CreateRoom (Maybe [Tag])
- createRoom_roomName :: Lens' CreateRoom Text
- data CreateRoomResponse = CreateRoomResponse' {
- roomArn :: Maybe Text
- httpStatus :: Int
- newCreateRoomResponse :: Int -> CreateRoomResponse
- createRoomResponse_roomArn :: Lens' CreateRoomResponse (Maybe Text)
- createRoomResponse_httpStatus :: Lens' CreateRoomResponse Int
Creating a Request
data CreateRoom Source #
See: newCreateRoom
smart constructor.
CreateRoom' | |
|
Instances
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:
$sel:profileArn:CreateRoom'
, createRoom_profileArn
- The profile ARN for the room. This is required.
$sel:providerCalendarId:CreateRoom'
, createRoom_providerCalendarId
- The calendar ARN for the room.
$sel:clientRequestToken:CreateRoom'
, createRoom_clientRequestToken
- A unique, user-specified identifier for this request that ensures
idempotency.
$sel:description:CreateRoom'
, createRoom_description
- The description for the room.
$sel:tags:CreateRoom'
, createRoom_tags
- The tags for the room.
$sel:roomName:CreateRoom'
, createRoom_roomName
- The name for the room.
Request Lenses
createRoom_profileArn :: Lens' CreateRoom (Maybe Text) Source #
The profile ARN for the room. This is required.
createRoom_providerCalendarId :: Lens' CreateRoom (Maybe Text) Source #
The calendar ARN for the room.
createRoom_clientRequestToken :: Lens' CreateRoom (Maybe Text) Source #
A unique, user-specified identifier for this request that ensures idempotency.
createRoom_description :: Lens' CreateRoom (Maybe Text) Source #
The description for the room.
createRoom_tags :: Lens' CreateRoom (Maybe [Tag]) Source #
The tags for the room.
createRoom_roomName :: Lens' CreateRoom Text Source #
The name for the room.
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:
$sel:roomArn:CreateRoomResponse'
, createRoomResponse_roomArn
- The ARN of the newly created room in the response.
$sel:httpStatus:CreateRoomResponse'
, createRoomResponse_httpStatus
- The response's http status code.
Response Lenses
createRoomResponse_roomArn :: Lens' CreateRoomResponse (Maybe Text) Source #
The ARN of the newly created room in the response.
createRoomResponse_httpStatus :: Lens' CreateRoomResponse Int Source #
The response's http status code.