| 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 |
Amazonka.IoTThingsGraph.DissociateEntityFromThing
Description
Dissociates a device entity from a concrete thing. The action takes only the type of the entity that you need to dissociate because only one entity of a particular type can be associated with a thing.
Synopsis
- data DissociateEntityFromThing = DissociateEntityFromThing' {}
- newDissociateEntityFromThing :: Text -> EntityType -> DissociateEntityFromThing
- dissociateEntityFromThing_thingName :: Lens' DissociateEntityFromThing Text
- dissociateEntityFromThing_entityType :: Lens' DissociateEntityFromThing EntityType
- data DissociateEntityFromThingResponse = DissociateEntityFromThingResponse' {
- httpStatus :: Int
- newDissociateEntityFromThingResponse :: Int -> DissociateEntityFromThingResponse
- dissociateEntityFromThingResponse_httpStatus :: Lens' DissociateEntityFromThingResponse Int
Creating a Request
data DissociateEntityFromThing Source #
See: newDissociateEntityFromThing smart constructor.
Constructors
| DissociateEntityFromThing' | |
Fields
| |
Instances
newDissociateEntityFromThing Source #
Arguments
| :: Text | |
| -> EntityType | |
| -> DissociateEntityFromThing |
Create a value of DissociateEntityFromThing 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:DissociateEntityFromThing', dissociateEntityFromThing_thingName - The name of the thing to disassociate.
$sel:entityType:DissociateEntityFromThing', dissociateEntityFromThing_entityType - The entity type from which to disassociate the thing.
Request Lenses
dissociateEntityFromThing_thingName :: Lens' DissociateEntityFromThing Text Source #
The name of the thing to disassociate.
dissociateEntityFromThing_entityType :: Lens' DissociateEntityFromThing EntityType Source #
The entity type from which to disassociate the thing.
Destructuring the Response
data DissociateEntityFromThingResponse Source #
See: newDissociateEntityFromThingResponse smart constructor.
Constructors
| DissociateEntityFromThingResponse' | |
Fields
| |
Instances
newDissociateEntityFromThingResponse Source #
Arguments
| :: Int | |
| -> DissociateEntityFromThingResponse |
Create a value of DissociateEntityFromThingResponse 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:DissociateEntityFromThingResponse', dissociateEntityFromThingResponse_httpStatus - The response's http status code.
Response Lenses
dissociateEntityFromThingResponse_httpStatus :: Lens' DissociateEntityFromThingResponse Int Source #
The response's http status code.