libZSservicesZSamazonka-greengrassZSamazonka-greengrass
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.Greengrass.CreateDeviceDefinition

Description

Creates a device definition. You may provide the initial version of the device definition now or use ''CreateDeviceDefinitionVersion'' at a later time.

Synopsis

Creating a Request

data CreateDeviceDefinition Source #

See: newCreateDeviceDefinition smart constructor.

Constructors

CreateDeviceDefinition' 

Fields

Instances

Instances details
Eq CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Read CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Show CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Generic CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Associated Types

type Rep CreateDeviceDefinition :: Type -> Type #

NFData CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Methods

rnf :: CreateDeviceDefinition -> () #

Hashable CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

ToJSON CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

AWSRequest CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Associated Types

type AWSResponse CreateDeviceDefinition #

ToHeaders CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

ToPath CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

ToQuery CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

type Rep CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

type Rep CreateDeviceDefinition = D1 ('MetaData "CreateDeviceDefinition" "Amazonka.Greengrass.CreateDeviceDefinition" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "CreateDeviceDefinition'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "amznClientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "initialVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeviceDefinitionVersion))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))))
type AWSResponse CreateDeviceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

newCreateDeviceDefinition :: CreateDeviceDefinition Source #

Create a value of CreateDeviceDefinition 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:amznClientToken:CreateDeviceDefinition', createDeviceDefinition_amznClientToken - A client token used to correlate requests and responses.

$sel:initialVersion:CreateDeviceDefinition', createDeviceDefinition_initialVersion - Information about the initial version of the device definition.

$sel:name:CreateDeviceDefinition', createDeviceDefinition_name - The name of the device definition.

$sel:tags:CreateDeviceDefinition', createDeviceDefinition_tags - Tag(s) to add to the new resource.

Request Lenses

createDeviceDefinition_amznClientToken :: Lens' CreateDeviceDefinition (Maybe Text) Source #

A client token used to correlate requests and responses.

createDeviceDefinition_initialVersion :: Lens' CreateDeviceDefinition (Maybe DeviceDefinitionVersion) Source #

Information about the initial version of the device definition.

Destructuring the Response

data CreateDeviceDefinitionResponse Source #

See: newCreateDeviceDefinitionResponse smart constructor.

Constructors

CreateDeviceDefinitionResponse' 

Fields

Instances

Instances details
Eq CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Read CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Show CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Generic CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

Associated Types

type Rep CreateDeviceDefinitionResponse :: Type -> Type #

NFData CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

type Rep CreateDeviceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateDeviceDefinition

type Rep CreateDeviceDefinitionResponse = D1 ('MetaData "CreateDeviceDefinitionResponse" "Amazonka.Greengrass.CreateDeviceDefinition" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "CreateDeviceDefinitionResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "latestVersionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "creationTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "latestVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "lastUpdatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateDeviceDefinitionResponse Source #

Create a value of CreateDeviceDefinitionResponse 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:latestVersionArn:CreateDeviceDefinitionResponse', createDeviceDefinitionResponse_latestVersionArn - The ARN of the latest version associated with the definition.

$sel:arn:CreateDeviceDefinitionResponse', createDeviceDefinitionResponse_arn - The ARN of the definition.

$sel:name:CreateDeviceDefinition', createDeviceDefinitionResponse_name - The name of the definition.

$sel:creationTimestamp:CreateDeviceDefinitionResponse', createDeviceDefinitionResponse_creationTimestamp - The time, in milliseconds since the epoch, when the definition was created.

$sel:id:CreateDeviceDefinitionResponse', createDeviceDefinitionResponse_id - The ID of the definition.

$sel:latestVersion:CreateDeviceDefinitionResponse', createDeviceDefinitionResponse_latestVersion - The ID of the latest version associated with the definition.

$sel:lastUpdatedTimestamp:CreateDeviceDefinitionResponse', createDeviceDefinitionResponse_lastUpdatedTimestamp - The time, in milliseconds since the epoch, when the definition was last updated.

$sel:httpStatus:CreateDeviceDefinitionResponse', createDeviceDefinitionResponse_httpStatus - The response's http status code.

Response Lenses

createDeviceDefinitionResponse_latestVersionArn :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #

The ARN of the latest version associated with the definition.

createDeviceDefinitionResponse_creationTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #

The time, in milliseconds since the epoch, when the definition was created.

createDeviceDefinitionResponse_latestVersion :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #

The ID of the latest version associated with the definition.

createDeviceDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateDeviceDefinitionResponse (Maybe Text) Source #

The time, in milliseconds since the epoch, when the definition was last updated.