libZSservicesZSamazonka-iotthingsgraphZSamazonka-iotthingsgraph
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoTThingsGraph.AssociateEntityToThing

Description

Associates a device with a concrete thing that is in the user's registry.

A thing can be associated with only one device at a time. If you associate a thing with a new device id, its previous association will be removed.

Synopsis

Creating a Request

data AssociateEntityToThing Source #

See: newAssociateEntityToThing smart constructor.

Constructors

AssociateEntityToThing' 

Fields

  • namespaceVersion :: Maybe Integer

    The version of the user's namespace. Defaults to the latest version of the user's namespace.

  • thingName :: Text

    The name of the thing to which the entity is to be associated.

  • entityId :: Text

    The ID of the device to be associated with the thing.

    The ID should be in the following format.

    urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME

Instances

Instances details
Eq AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Read AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Show AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Generic AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Associated Types

type Rep AssociateEntityToThing :: Type -> Type #

NFData AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Methods

rnf :: AssociateEntityToThing -> () #

Hashable AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

ToJSON AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

AWSRequest AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Associated Types

type AWSResponse AssociateEntityToThing #

ToHeaders AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

ToPath AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

ToQuery AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

type Rep AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

type Rep AssociateEntityToThing = D1 ('MetaData "AssociateEntityToThing" "Amazonka.IoTThingsGraph.AssociateEntityToThing" "libZSservicesZSamazonka-iotthingsgraphZSamazonka-iotthingsgraph" 'False) (C1 ('MetaCons "AssociateEntityToThing'" 'PrefixI 'True) (S1 ('MetaSel ('Just "namespaceVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "thingName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "entityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AssociateEntityToThing Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

newAssociateEntityToThing Source #

Create a value of AssociateEntityToThing 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:namespaceVersion:AssociateEntityToThing', associateEntityToThing_namespaceVersion - The version of the user's namespace. Defaults to the latest version of the user's namespace.

$sel:thingName:AssociateEntityToThing', associateEntityToThing_thingName - The name of the thing to which the entity is to be associated.

$sel:entityId:AssociateEntityToThing', associateEntityToThing_entityId - The ID of the device to be associated with the thing.

The ID should be in the following format.

urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME

Request Lenses

associateEntityToThing_namespaceVersion :: Lens' AssociateEntityToThing (Maybe Integer) Source #

The version of the user's namespace. Defaults to the latest version of the user's namespace.

associateEntityToThing_thingName :: Lens' AssociateEntityToThing Text Source #

The name of the thing to which the entity is to be associated.

associateEntityToThing_entityId :: Lens' AssociateEntityToThing Text Source #

The ID of the device to be associated with the thing.

The ID should be in the following format.

urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME

Destructuring the Response

data AssociateEntityToThingResponse Source #

See: newAssociateEntityToThingResponse smart constructor.

Constructors

AssociateEntityToThingResponse' 

Fields

Instances

Instances details
Eq AssociateEntityToThingResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Read AssociateEntityToThingResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Show AssociateEntityToThingResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Generic AssociateEntityToThingResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

Associated Types

type Rep AssociateEntityToThingResponse :: Type -> Type #

NFData AssociateEntityToThingResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

type Rep AssociateEntityToThingResponse Source # 
Instance details

Defined in Amazonka.IoTThingsGraph.AssociateEntityToThing

type Rep AssociateEntityToThingResponse = D1 ('MetaData "AssociateEntityToThingResponse" "Amazonka.IoTThingsGraph.AssociateEntityToThing" "libZSservicesZSamazonka-iotthingsgraphZSamazonka-iotthingsgraph" 'False) (C1 ('MetaCons "AssociateEntityToThingResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAssociateEntityToThingResponse Source #

Create a value of AssociateEntityToThingResponse 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:AssociateEntityToThingResponse', associateEntityToThingResponse_httpStatus - The response's http status code.

Response Lenses