| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.IoT.AttachThingPrincipal
Description
Attaches the specified principal to the specified thing.
Synopsis
- attachThingPrincipal :: Text -> Text -> AttachThingPrincipal
- data AttachThingPrincipal
- atpThingName :: Lens' AttachThingPrincipal Text
- atpPrincipal :: Lens' AttachThingPrincipal Text
- attachThingPrincipalResponse :: Int -> AttachThingPrincipalResponse
- data AttachThingPrincipalResponse
- atprsResponseStatus :: Lens' AttachThingPrincipalResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> AttachThingPrincipal |
Creates a value of AttachThingPrincipal with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atpThingName- The name of the thing.atpPrincipal- The principal, such as a certificate or other credential.
data AttachThingPrincipal Source #
The input for the AttachThingPrincipal operation.
See: attachThingPrincipal smart constructor.
Instances
Request Lenses
atpThingName :: Lens' AttachThingPrincipal Text Source #
The name of the thing.
atpPrincipal :: Lens' AttachThingPrincipal Text Source #
The principal, such as a certificate or other credential.
Destructuring the Response
attachThingPrincipalResponse Source #
Arguments
| :: Int | |
| -> AttachThingPrincipalResponse |
Creates a value of AttachThingPrincipalResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atprsResponseStatus- -- | The response status code.
data AttachThingPrincipalResponse Source #
The output from the AttachThingPrincipal operation.
See: attachThingPrincipalResponse smart constructor.
Instances
Response Lenses
atprsResponseStatus :: Lens' AttachThingPrincipalResponse Int Source #
- - | The response status code.