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

Description

Creates a core definition. You may provide the initial version of the core definition now or use ''CreateCoreDefinitionVersion'' at a later time. Greengrass groups must each contain exactly one Greengrass core.

Synopsis

Creating a Request

data CreateCoreDefinition Source #

Information needed to create a core definition.

See: newCreateCoreDefinition smart constructor.

Constructors

CreateCoreDefinition' 

Fields

Instances

Instances details
Eq CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Read CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Show CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Generic CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Associated Types

type Rep CreateCoreDefinition :: Type -> Type #

NFData CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Methods

rnf :: CreateCoreDefinition -> () #

Hashable CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

ToJSON CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

AWSRequest CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Associated Types

type AWSResponse CreateCoreDefinition #

ToHeaders CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

ToPath CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

ToQuery CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

type Rep CreateCoreDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

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

Defined in Amazonka.Greengrass.CreateCoreDefinition

newCreateCoreDefinition :: CreateCoreDefinition Source #

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

$sel:initialVersion:CreateCoreDefinition', createCoreDefinition_initialVersion - Information about the initial version of the core definition.

$sel:name:CreateCoreDefinition', createCoreDefinition_name - The name of the core definition.

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

Request Lenses

createCoreDefinition_amznClientToken :: Lens' CreateCoreDefinition (Maybe Text) Source #

A client token used to correlate requests and responses.

createCoreDefinition_initialVersion :: Lens' CreateCoreDefinition (Maybe CoreDefinitionVersion) Source #

Information about the initial version of the core definition.

Destructuring the Response

data CreateCoreDefinitionResponse Source #

See: newCreateCoreDefinitionResponse smart constructor.

Constructors

CreateCoreDefinitionResponse' 

Fields

Instances

Instances details
Eq CreateCoreDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Read CreateCoreDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Show CreateCoreDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Generic CreateCoreDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

Associated Types

type Rep CreateCoreDefinitionResponse :: Type -> Type #

NFData CreateCoreDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

type Rep CreateCoreDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateCoreDefinition

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

newCreateCoreDefinitionResponse Source #

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

$sel:arn:CreateCoreDefinitionResponse', createCoreDefinitionResponse_arn - The ARN of the definition.

$sel:name:CreateCoreDefinition', createCoreDefinitionResponse_name - The name of the definition.

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

$sel:id:CreateCoreDefinitionResponse', createCoreDefinitionResponse_id - The ID of the definition.

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

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

$sel:httpStatus:CreateCoreDefinitionResponse', createCoreDefinitionResponse_httpStatus - The response's http status code.

Response Lenses

createCoreDefinitionResponse_latestVersionArn :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #

The ARN of the latest version associated with the definition.

createCoreDefinitionResponse_creationTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #

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

createCoreDefinitionResponse_latestVersion :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #

The ID of the latest version associated with the definition.

createCoreDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateCoreDefinitionResponse (Maybe Text) Source #

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