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 |
Attaches the specified principal to the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.
Requires permission to access the AttachThingPrincipal action.
Synopsis
- data AttachThingPrincipal = AttachThingPrincipal' {}
- newAttachThingPrincipal :: Text -> Text -> AttachThingPrincipal
- attachThingPrincipal_thingName :: Lens' AttachThingPrincipal Text
- attachThingPrincipal_principal :: Lens' AttachThingPrincipal Text
- data AttachThingPrincipalResponse = AttachThingPrincipalResponse' {
- httpStatus :: Int
- newAttachThingPrincipalResponse :: Int -> AttachThingPrincipalResponse
- attachThingPrincipalResponse_httpStatus :: Lens' AttachThingPrincipalResponse Int
Creating a Request
data AttachThingPrincipal Source #
The input for the AttachThingPrincipal operation.
See: newAttachThingPrincipal
smart constructor.
Instances
newAttachThingPrincipal Source #
:: Text | |
-> Text | |
-> AttachThingPrincipal |
Create a value of AttachThingPrincipal
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:thingName:AttachThingPrincipal'
, attachThingPrincipal_thingName
- The name of the thing.
$sel:principal:AttachThingPrincipal'
, attachThingPrincipal_principal
- The principal, which can be a certificate ARN (as returned from the
CreateCertificate operation) or an Amazon Cognito ID.
Request Lenses
attachThingPrincipal_thingName :: Lens' AttachThingPrincipal Text Source #
The name of the thing.
attachThingPrincipal_principal :: Lens' AttachThingPrincipal Text Source #
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
Destructuring the Response
data AttachThingPrincipalResponse Source #
The output from the AttachThingPrincipal operation.
See: newAttachThingPrincipalResponse
smart constructor.
AttachThingPrincipalResponse' | |
|
Instances
newAttachThingPrincipalResponse Source #
Create a value of AttachThingPrincipalResponse
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:AttachThingPrincipalResponse'
, attachThingPrincipalResponse_httpStatus
- The response's http status code.
Response Lenses
attachThingPrincipalResponse_httpStatus :: Lens' AttachThingPrincipalResponse Int Source #
The response's http status code.