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 |
Associates a device with a given room. This applies all the settings from the room profile to the device, and all the skills in any skill groups added to that room. This operation requires the device to be online, or else a manual sync is required.
Synopsis
- data AssociateDeviceWithRoom = AssociateDeviceWithRoom' {}
- newAssociateDeviceWithRoom :: AssociateDeviceWithRoom
- associateDeviceWithRoom_deviceArn :: Lens' AssociateDeviceWithRoom (Maybe Text)
- associateDeviceWithRoom_roomArn :: Lens' AssociateDeviceWithRoom (Maybe Text)
- data AssociateDeviceWithRoomResponse = AssociateDeviceWithRoomResponse' {
- httpStatus :: Int
- newAssociateDeviceWithRoomResponse :: Int -> AssociateDeviceWithRoomResponse
- associateDeviceWithRoomResponse_httpStatus :: Lens' AssociateDeviceWithRoomResponse Int
Creating a Request
data AssociateDeviceWithRoom Source #
See: newAssociateDeviceWithRoom
smart constructor.
Instances
newAssociateDeviceWithRoom :: AssociateDeviceWithRoom Source #
Create a value of AssociateDeviceWithRoom
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:deviceArn:AssociateDeviceWithRoom'
, associateDeviceWithRoom_deviceArn
- The ARN of the device to associate to a room. Required.
$sel:roomArn:AssociateDeviceWithRoom'
, associateDeviceWithRoom_roomArn
- The ARN of the room with which to associate the device. Required.
Request Lenses
associateDeviceWithRoom_deviceArn :: Lens' AssociateDeviceWithRoom (Maybe Text) Source #
The ARN of the device to associate to a room. Required.
associateDeviceWithRoom_roomArn :: Lens' AssociateDeviceWithRoom (Maybe Text) Source #
The ARN of the room with which to associate the device. Required.
Destructuring the Response
data AssociateDeviceWithRoomResponse Source #
See: newAssociateDeviceWithRoomResponse
smart constructor.
AssociateDeviceWithRoomResponse' | |
|
Instances
Eq AssociateDeviceWithRoomResponse Source # | |
Read AssociateDeviceWithRoomResponse Source # | |
Show AssociateDeviceWithRoomResponse Source # | |
Generic AssociateDeviceWithRoomResponse Source # | |
NFData AssociateDeviceWithRoomResponse Source # | |
Defined in Amazonka.AlexaBusiness.AssociateDeviceWithRoom rnf :: AssociateDeviceWithRoomResponse -> () # | |
type Rep AssociateDeviceWithRoomResponse Source # | |
Defined in Amazonka.AlexaBusiness.AssociateDeviceWithRoom type Rep AssociateDeviceWithRoomResponse = D1 ('MetaData "AssociateDeviceWithRoomResponse" "Amazonka.AlexaBusiness.AssociateDeviceWithRoom" "libZSservicesZSamazonka-alexa-businessZSamazonka-alexa-business" 'False) (C1 ('MetaCons "AssociateDeviceWithRoomResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAssociateDeviceWithRoomResponse Source #
Create a value of AssociateDeviceWithRoomResponse
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:httpStatus:AssociateDeviceWithRoomResponse'
, associateDeviceWithRoomResponse_httpStatus
- The response's http status code.
Response Lenses
associateDeviceWithRoomResponse_httpStatus :: Lens' AssociateDeviceWithRoomResponse Int Source #
The response's http status code.