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

Description

Creates a resource definition which contains a list of resources to be used in a group. You can create an initial version of the definition by providing a list of resources now, or use ''CreateResourceDefinitionVersion'' later.

Synopsis

Creating a Request

data CreateResourceDefinition Source #

See: newCreateResourceDefinition smart constructor.

Constructors

CreateResourceDefinition' 

Fields

Instances

Instances details
Eq CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

Read CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

Show CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

Generic CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

Associated Types

type Rep CreateResourceDefinition :: Type -> Type #

NFData CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

Hashable CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

ToJSON CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

AWSRequest CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

ToHeaders CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

ToPath CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

ToQuery CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

type Rep CreateResourceDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

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

Defined in Amazonka.Greengrass.CreateResourceDefinition

newCreateResourceDefinition :: CreateResourceDefinition Source #

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

$sel:initialVersion:CreateResourceDefinition', createResourceDefinition_initialVersion - Information about the initial version of the resource definition.

$sel:name:CreateResourceDefinition', createResourceDefinition_name - The name of the resource definition.

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

Request Lenses

createResourceDefinition_amznClientToken :: Lens' CreateResourceDefinition (Maybe Text) Source #

A client token used to correlate requests and responses.

createResourceDefinition_initialVersion :: Lens' CreateResourceDefinition (Maybe ResourceDefinitionVersion) Source #

Information about the initial version of the resource definition.

Destructuring the Response

data CreateResourceDefinitionResponse Source #

See: newCreateResourceDefinitionResponse smart constructor.

Constructors

CreateResourceDefinitionResponse' 

Fields

Instances

Instances details
Eq CreateResourceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

Read CreateResourceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

Show CreateResourceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

Generic CreateResourceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

Associated Types

type Rep CreateResourceDefinitionResponse :: Type -> Type #

NFData CreateResourceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

type Rep CreateResourceDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateResourceDefinition

type Rep CreateResourceDefinitionResponse = D1 ('MetaData "CreateResourceDefinitionResponse" "Amazonka.Greengrass.CreateResourceDefinition" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "CreateResourceDefinitionResponse'" '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)))))

newCreateResourceDefinitionResponse Source #

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

$sel:arn:CreateResourceDefinitionResponse', createResourceDefinitionResponse_arn - The ARN of the definition.

$sel:name:CreateResourceDefinition', createResourceDefinitionResponse_name - The name of the definition.

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

$sel:id:CreateResourceDefinitionResponse', createResourceDefinitionResponse_id - The ID of the definition.

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

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

$sel:httpStatus:CreateResourceDefinitionResponse', createResourceDefinitionResponse_httpStatus - The response's http status code.

Response Lenses

createResourceDefinitionResponse_latestVersionArn :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #

The ARN of the latest version associated with the definition.

createResourceDefinitionResponse_creationTimestamp :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #

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

createResourceDefinitionResponse_latestVersion :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #

The ID of the latest version associated with the definition.

createResourceDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateResourceDefinitionResponse (Maybe Text) Source #

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