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.CreateEntity

Description

Creates an entity.

Synopsis

Creating a Request

data CreateEntity Source #

See: newCreateEntity smart constructor.

Constructors

CreateEntity' 

Fields

Instances

Instances details
ToJSON CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

ToHeaders CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

ToPath CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

ToQuery CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

AWSRequest CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

Associated Types

type AWSResponse CreateEntity #

Generic CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

Associated Types

type Rep CreateEntity :: Type -> Type #

Read CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

Show CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

NFData CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

Methods

rnf :: CreateEntity -> () #

Eq CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

Hashable CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

type AWSResponse CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

type Rep CreateEntity Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

newCreateEntity Source #

Create a value of CreateEntity 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:components:CreateEntity', createEntity_components - An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.

CreateEntity, createEntity_description - The description of the entity.

CreateEntity, createEntity_entityId - The ID of the entity.

CreateEntity, createEntity_parentEntityId - The ID of the entity's parent entity.

$sel:tags:CreateEntity', createEntity_tags - Metadata that you can use to manage the entity.

CreateEntity, createEntity_workspaceId - The ID of the workspace that contains the entity.

CreateEntity, createEntity_entityName - The name of the entity.

Request Lenses

createEntity_components :: Lens' CreateEntity (Maybe (HashMap Text ComponentRequest)) Source #

An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.

createEntity_description :: Lens' CreateEntity (Maybe Text) Source #

The description of the entity.

createEntity_parentEntityId :: Lens' CreateEntity (Maybe Text) Source #

The ID of the entity's parent entity.

createEntity_tags :: Lens' CreateEntity (Maybe (HashMap Text Text)) Source #

Metadata that you can use to manage the entity.

createEntity_workspaceId :: Lens' CreateEntity Text Source #

The ID of the workspace that contains the entity.

Destructuring the Response

data CreateEntityResponse Source #

See: newCreateEntityResponse smart constructor.

Constructors

CreateEntityResponse' 

Fields

Instances

Instances details
Generic CreateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

Associated Types

type Rep CreateEntityResponse :: Type -> Type #

Read CreateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

Show CreateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

NFData CreateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

Methods

rnf :: CreateEntityResponse -> () #

Eq CreateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

type Rep CreateEntityResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateEntity

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

newCreateEntityResponse Source #

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

CreateEntity, createEntityResponse_entityId - The ID of the entity.

CreateEntityResponse, createEntityResponse_arn - The ARN of the entity.

CreateEntityResponse, createEntityResponse_creationDateTime - The date and time when the entity was created.

CreateEntityResponse, createEntityResponse_state - The current state of the entity.

Response Lenses

createEntityResponse_creationDateTime :: Lens' CreateEntityResponse UTCTime Source #

The date and time when the entity was created.