| 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.DetachThingPrincipal
Description
Detaches the specified principal from the specified thing.
- detachThingPrincipal :: Text -> Text -> DetachThingPrincipal
- data DetachThingPrincipal
- dtpThingName :: Lens' DetachThingPrincipal Text
- dtpPrincipal :: Lens' DetachThingPrincipal Text
- detachThingPrincipalResponse :: Int -> DetachThingPrincipalResponse
- data DetachThingPrincipalResponse
- dtprsResponseStatus :: Lens' DetachThingPrincipalResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DetachThingPrincipal |
Creates a value of DetachThingPrincipal with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dtpThingName- The name of the thing.dtpPrincipal- If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.
data DetachThingPrincipal #
The input for the DetachThingPrincipal operation.
See: detachThingPrincipal smart constructor.
Instances
Request Lenses
dtpThingName :: Lens' DetachThingPrincipal Text #
The name of the thing.
dtpPrincipal :: Lens' DetachThingPrincipal Text #
If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.
Destructuring the Response
detachThingPrincipalResponse #
Arguments
| :: Int | |
| -> DetachThingPrincipalResponse |
Creates a value of DetachThingPrincipalResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dtprsResponseStatus- -- | The response status code.
data DetachThingPrincipalResponse #
The output from the DetachThingPrincipal operation.
See: detachThingPrincipalResponse smart constructor.
Response Lenses
dtprsResponseStatus :: Lens' DetachThingPrincipalResponse Int #
- - | The response status code.