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

Description

Creates a component type.

Synopsis

Creating a Request

data CreateComponentType Source #

See: newCreateComponentType smart constructor.

Constructors

CreateComponentType' 

Fields

Instances

Instances details
ToJSON CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

ToHeaders CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

ToPath CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

ToQuery CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

AWSRequest CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

Associated Types

type AWSResponse CreateComponentType #

Generic CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

Associated Types

type Rep CreateComponentType :: Type -> Type #

Read CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

Show CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

NFData CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

Methods

rnf :: CreateComponentType -> () #

Eq CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

Hashable CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

type AWSResponse CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

type Rep CreateComponentType Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

type Rep CreateComponentType = D1 ('MetaData "CreateComponentType" "Amazonka.IotTwinMaker.CreateComponentType" "amazonka-iottwinmaker-2.0-F9krWmdiZsuIxDlP9hNtjs" 'False) (C1 ('MetaCons "CreateComponentType'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "componentTypeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "extendsFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "functions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text FunctionRequest))) :*: S1 ('MetaSel ('Just "isSingleton") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "propertyDefinitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text PropertyDefinitionRequest))) :*: S1 ('MetaSel ('Just "propertyGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text PropertyGroupRequest)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "workspaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "componentTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newCreateComponentType Source #

Create a value of CreateComponentType 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:

CreateComponentType, createComponentType_componentTypeName - A friendly name for the component type.

CreateComponentType, createComponentType_description - The description of the component type.

CreateComponentType, createComponentType_extendsFrom - Specifies the parent component type to extend.

$sel:functions:CreateComponentType', createComponentType_functions - An object that maps strings to the functions in the component type. Each string in the mapping must be unique to this object.

$sel:isSingleton:CreateComponentType', createComponentType_isSingleton - A Boolean value that specifies whether an entity can have more than one component of this type.

$sel:propertyDefinitions:CreateComponentType', createComponentType_propertyDefinitions - An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object.

CreateComponentType, createComponentType_propertyGroups -

$sel:tags:CreateComponentType', createComponentType_tags - Metadata that you can use to manage the component type.

CreateComponentType, createComponentType_workspaceId - The ID of the workspace that contains the component type.

CreateComponentType, createComponentType_componentTypeId - The ID of the component type.

Request Lenses

createComponentType_description :: Lens' CreateComponentType (Maybe Text) Source #

The description of the component type.

createComponentType_extendsFrom :: Lens' CreateComponentType (Maybe [Text]) Source #

Specifies the parent component type to extend.

createComponentType_functions :: Lens' CreateComponentType (Maybe (HashMap Text FunctionRequest)) Source #

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

createComponentType_isSingleton :: Lens' CreateComponentType (Maybe Bool) Source #

A Boolean value that specifies whether an entity can have more than one component of this type.

createComponentType_propertyDefinitions :: Lens' CreateComponentType (Maybe (HashMap Text PropertyDefinitionRequest)) Source #

An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object.

createComponentType_tags :: Lens' CreateComponentType (Maybe (HashMap Text Text)) Source #

Metadata that you can use to manage the component type.

createComponentType_workspaceId :: Lens' CreateComponentType Text Source #

The ID of the workspace that contains the component type.

Destructuring the Response

data CreateComponentTypeResponse Source #

See: newCreateComponentTypeResponse smart constructor.

Constructors

CreateComponentTypeResponse' 

Fields

Instances

Instances details
Generic CreateComponentTypeResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

Associated Types

type Rep CreateComponentTypeResponse :: Type -> Type #

Read CreateComponentTypeResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

Show CreateComponentTypeResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

NFData CreateComponentTypeResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

Eq CreateComponentTypeResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

type Rep CreateComponentTypeResponse Source # 
Instance details

Defined in Amazonka.IotTwinMaker.CreateComponentType

type Rep CreateComponentTypeResponse = D1 ('MetaData "CreateComponentTypeResponse" "Amazonka.IotTwinMaker.CreateComponentType" "amazonka-iottwinmaker-2.0-F9krWmdiZsuIxDlP9hNtjs" 'False) (C1 ('MetaCons "CreateComponentTypeResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: 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))))

newCreateComponentTypeResponse Source #

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

CreateComponentTypeResponse, createComponentTypeResponse_arn - The ARN of the component type.

CreateComponentTypeResponse, createComponentTypeResponse_creationDateTime - The date and time when the entity was created.

CreateComponentTypeResponse, createComponentTypeResponse_state - The current state of the component type.

Response Lenses