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 |
Determines the details for the room from which a skill request was invoked. This operation is used by skill developers.
To query ResolveRoom from an Alexa skill, the skill ID needs to be authorized. When the skill is using an AWS Lambda function, the skill is automatically authorized when you publish your skill as a private skill to your AWS account. Skills that are hosted using a custom web service must be manually authorized. To get your skill authorized, contact AWS Support with your AWS account ID that queries the ResolveRoom API and skill ID.
Synopsis
- data ResolveRoom = ResolveRoom' {}
- newResolveRoom :: Text -> Text -> ResolveRoom
- resolveRoom_userId :: Lens' ResolveRoom Text
- resolveRoom_skillId :: Lens' ResolveRoom Text
- data ResolveRoomResponse = ResolveRoomResponse' {}
- newResolveRoomResponse :: Int -> ResolveRoomResponse
- resolveRoomResponse_roomSkillParameters :: Lens' ResolveRoomResponse (Maybe [RoomSkillParameter])
- resolveRoomResponse_roomArn :: Lens' ResolveRoomResponse (Maybe Text)
- resolveRoomResponse_roomName :: Lens' ResolveRoomResponse (Maybe Text)
- resolveRoomResponse_httpStatus :: Lens' ResolveRoomResponse Int
Creating a Request
data ResolveRoom Source #
See: newResolveRoom
smart constructor.
Instances
Create a value of ResolveRoom
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:userId:ResolveRoom'
, resolveRoom_userId
- The ARN of the user. Required.
$sel:skillId:ResolveRoom'
, resolveRoom_skillId
- The ARN of the skill that was requested. Required.
Request Lenses
resolveRoom_userId :: Lens' ResolveRoom Text Source #
The ARN of the user. Required.
resolveRoom_skillId :: Lens' ResolveRoom Text Source #
The ARN of the skill that was requested. Required.
Destructuring the Response
data ResolveRoomResponse Source #
See: newResolveRoomResponse
smart constructor.
ResolveRoomResponse' | |
|
Instances
newResolveRoomResponse Source #
Create a value of ResolveRoomResponse
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:roomSkillParameters:ResolveRoomResponse'
, resolveRoomResponse_roomSkillParameters
- Response to get the room profile request. Required.
$sel:roomArn:ResolveRoomResponse'
, resolveRoomResponse_roomArn
- The ARN of the room from which the skill request was invoked.
$sel:roomName:ResolveRoomResponse'
, resolveRoomResponse_roomName
- The name of the room from which the skill request was invoked.
$sel:httpStatus:ResolveRoomResponse'
, resolveRoomResponse_httpStatus
- The response's http status code.
Response Lenses
resolveRoomResponse_roomSkillParameters :: Lens' ResolveRoomResponse (Maybe [RoomSkillParameter]) Source #
Response to get the room profile request. Required.
resolveRoomResponse_roomArn :: Lens' ResolveRoomResponse (Maybe Text) Source #
The ARN of the room from which the skill request was invoked.
resolveRoomResponse_roomName :: Lens' ResolveRoomResponse (Maybe Text) Source #
The name of the room from which the skill request was invoked.
resolveRoomResponse_httpStatus :: Lens' ResolveRoomResponse Int Source #
The response's http status code.