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 |
Detaches the specified principal from the specified thing.
Synopsis
- 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
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 Source #
The input for the DetachThingPrincipal operation.
See: detachThingPrincipal
smart constructor.
Instances
Request Lenses
dtpThingName :: Lens' DetachThingPrincipal Text Source #
The name of the thing.
dtpPrincipal :: Lens' DetachThingPrincipal Text Source #
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 Source #
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 Source #
The output from the DetachThingPrincipal operation.
See: detachThingPrincipalResponse
smart constructor.
Instances
Response Lenses
dtprsResponseStatus :: Lens' DetachThingPrincipalResponse Int Source #
- - | The response status code.