amazonka-iottwinmaker-2.0: Amazon IoT TwinMaker SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IotTwinMaker.UpdateEntity

Description

Updates an entity.

Synopsis

Creating a Request

data UpdateEntity Source #

See: newUpdateEntity smart constructor.

Constructors

UpdateEntity' 

Fields

Instances

Instances details
ToJSON UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

ToHeaders UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

ToPath UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

ToQuery UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

AWSRequest UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

Associated Types

type AWSResponse UpdateEntity #

Generic UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

Associated Types

type Rep UpdateEntity :: Type -> Type #

Read UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

Show UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

NFData UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

Methods

rnf :: UpdateEntity -> () #

Eq UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

Hashable UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

type AWSResponse UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

type Rep UpdateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

type Rep UpdateEntity = D1 ('MetaData "UpdateEntity" "Amazonka.IotTwinMaker.UpdateEntity" "amazonka-iottwinmaker-2.0-F9krWmdiZsuIxDlP9hNtjs" 'False) (C1 ('MetaCons "UpdateEntity'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "componentUpdates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text ComponentUpdateRequest))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "entityName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "parentEntityUpdate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ParentEntityUpdateRequest)) :*: (S1 ('MetaSel ('Just "workspaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "entityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdateEntity Source #

Create a value of UpdateEntity 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:componentUpdates:UpdateEntity', updateEntity_componentUpdates - An object that maps strings to the component updates in the request. Each string in the mapping must be unique to this object.

UpdateEntity, updateEntity_description - The description of the entity.

UpdateEntity, updateEntity_entityName - The name of the entity.

$sel:parentEntityUpdate:UpdateEntity', updateEntity_parentEntityUpdate - An object that describes the update request for a parent entity.

UpdateEntity, updateEntity_workspaceId - The ID of the workspace that contains the entity.

UpdateEntity, updateEntity_entityId - The ID of the entity.

Request Lenses

updateEntity_componentUpdates :: Lens' UpdateEntity (Maybe (HashMap Text ComponentUpdateRequest)) Source #

An object that maps strings to the component updates in the request. Each string in the mapping must be unique to this object.

updateEntity_description :: Lens' UpdateEntity (Maybe Text) Source #

The description of the entity.

updateEntity_parentEntityUpdate :: Lens' UpdateEntity (Maybe ParentEntityUpdateRequest) Source #

An object that describes the update request for a parent entity.

updateEntity_workspaceId :: Lens' UpdateEntity Text Source #

The ID of the workspace that contains the entity.

Destructuring the Response

data UpdateEntityResponse Source #

See: newUpdateEntityResponse smart constructor.

Constructors

UpdateEntityResponse' 

Fields

Instances

Instances details
Generic UpdateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

Associated Types

type Rep UpdateEntityResponse :: Type -> Type #

Read UpdateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

Show UpdateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

NFData UpdateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

Methods

rnf :: UpdateEntityResponse -> () #

Eq UpdateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

type Rep UpdateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.UpdateEntity

type Rep UpdateEntityResponse = D1 ('MetaData "UpdateEntityResponse" "Amazonka.IotTwinMaker.UpdateEntity" "amazonka-iottwinmaker-2.0-F9krWmdiZsuIxDlP9hNtjs" 'False) (C1 ('MetaCons "UpdateEntityResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "updateDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 State))))

newUpdateEntityResponse Source #

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

UpdateEntityResponse, updateEntityResponse_updateDateTime - The date and time when the entity was last updated.

UpdateEntityResponse, updateEntityResponse_state - The current state of the entity update.

Response Lenses

updateEntityResponse_updateDateTime :: Lens' UpdateEntityResponse UTCTime Source #

The date and time when the entity was last updated.

updateEntityResponse_state :: Lens' UpdateEntityResponse State Source #

The current state of the entity update.