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 |
Links a user's account to a third-party skill provider. If this API operation is called by an assumed IAM role, the skill being linked must be a private skill. Also, the skill must be owned by the AWS account that assumed the IAM role.
Synopsis
- data PutSkillAuthorization = PutSkillAuthorization' {}
- newPutSkillAuthorization :: Text -> PutSkillAuthorization
- putSkillAuthorization_roomArn :: Lens' PutSkillAuthorization (Maybe Text)
- putSkillAuthorization_authorizationResult :: Lens' PutSkillAuthorization (HashMap Text Text)
- putSkillAuthorization_skillId :: Lens' PutSkillAuthorization Text
- data PutSkillAuthorizationResponse = PutSkillAuthorizationResponse' {
- httpStatus :: Int
- newPutSkillAuthorizationResponse :: Int -> PutSkillAuthorizationResponse
- putSkillAuthorizationResponse_httpStatus :: Lens' PutSkillAuthorizationResponse Int
Creating a Request
data PutSkillAuthorization Source #
See: newPutSkillAuthorization
smart constructor.
PutSkillAuthorization' | |
|
Instances
newPutSkillAuthorization Source #
Create a value of PutSkillAuthorization
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:
PutSkillAuthorization
, putSkillAuthorization_roomArn
- The room that the skill is authorized for.
$sel:authorizationResult:PutSkillAuthorization'
, putSkillAuthorization_authorizationResult
- The authorization result specific to OAUTH code grant output. "Code”
must be populated in the AuthorizationResult map to establish the
authorization.
PutSkillAuthorization
, putSkillAuthorization_skillId
- The unique identifier of a skill.
Request Lenses
putSkillAuthorization_roomArn :: Lens' PutSkillAuthorization (Maybe Text) Source #
The room that the skill is authorized for.
putSkillAuthorization_authorizationResult :: Lens' PutSkillAuthorization (HashMap Text Text) Source #
The authorization result specific to OAUTH code grant output. "Code” must be populated in the AuthorizationResult map to establish the authorization.
putSkillAuthorization_skillId :: Lens' PutSkillAuthorization Text Source #
The unique identifier of a skill.
Destructuring the Response
data PutSkillAuthorizationResponse Source #
See: newPutSkillAuthorizationResponse
smart constructor.
PutSkillAuthorizationResponse' | |
|
Instances
newPutSkillAuthorizationResponse Source #
Create a value of PutSkillAuthorizationResponse
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:PutSkillAuthorizationResponse'
, putSkillAuthorizationResponse_httpStatus
- The response's http status code.
Response Lenses
putSkillAuthorizationResponse_httpStatus :: Lens' PutSkillAuthorizationResponse Int Source #
The response's http status code.