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 |
Detaches the specified principal from the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.
This call is asynchronous. It might take several seconds for the detachment to propagate.
Requires permission to access the DetachThingPrincipal action.
Synopsis
- data DetachThingPrincipal = DetachThingPrincipal' {}
- newDetachThingPrincipal :: Text -> Text -> DetachThingPrincipal
- detachThingPrincipal_thingName :: Lens' DetachThingPrincipal Text
- detachThingPrincipal_principal :: Lens' DetachThingPrincipal Text
- data DetachThingPrincipalResponse = DetachThingPrincipalResponse' {
- httpStatus :: Int
- newDetachThingPrincipalResponse :: Int -> DetachThingPrincipalResponse
- detachThingPrincipalResponse_httpStatus :: Lens' DetachThingPrincipalResponse Int
Creating a Request
data DetachThingPrincipal Source #
The input for the DetachThingPrincipal operation.
See: newDetachThingPrincipal
smart constructor.
Instances
newDetachThingPrincipal Source #
:: Text | |
-> Text | |
-> DetachThingPrincipal |
Create a value of DetachThingPrincipal
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:DetachThingPrincipal'
, detachThingPrincipal_thingName
- The name of the thing.
$sel:principal:DetachThingPrincipal'
, detachThingPrincipal_principal
- 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.
Request Lenses
detachThingPrincipal_thingName :: Lens' DetachThingPrincipal Text Source #
The name of the thing.
detachThingPrincipal_principal :: 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
data DetachThingPrincipalResponse Source #
The output from the DetachThingPrincipal operation.
See: newDetachThingPrincipalResponse
smart constructor.
DetachThingPrincipalResponse' | |
|
Instances
newDetachThingPrincipalResponse Source #
Create a value of DetachThingPrincipalResponse
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:DetachThingPrincipalResponse'
, detachThingPrincipalResponse_httpStatus
- The response's http status code.
Response Lenses
detachThingPrincipalResponse_httpStatus :: Lens' DetachThingPrincipalResponse Int Source #
The response's http status code.