amazonka-greengrass-2.0: Amazon Greengrass 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.Greengrass.CreateFunctionDefinition

Description

Creates a Lambda function definition which contains a list of Lambda functions and their configurations to be used in a group. You can create an initial version of the definition by providing a list of Lambda functions and their configurations now, or use ''CreateFunctionDefinitionVersion'' later.

Synopsis

Creating a Request

data CreateFunctionDefinition Source #

See: newCreateFunctionDefinition smart constructor.

Constructors

CreateFunctionDefinition' 

Fields

Instances

Instances details
ToJSON CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

ToHeaders CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

ToPath CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

ToQuery CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

AWSRequest CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

Generic CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

Associated Types

type Rep CreateFunctionDefinition :: Type -> Type #

Read CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

Show CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

NFData CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

Eq CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

Hashable CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

type AWSResponse CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

type Rep CreateFunctionDefinition Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

type Rep CreateFunctionDefinition = D1 ('MetaData "CreateFunctionDefinition" "Amazonka.Greengrass.CreateFunctionDefinition" "amazonka-greengrass-2.0-KjUXjyW3l8XyfFjm5ZueR" 'False) (C1 ('MetaCons "CreateFunctionDefinition'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "amznClientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "initialVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionDefinitionVersion))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))))

newCreateFunctionDefinition :: CreateFunctionDefinition Source #

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

$sel:initialVersion:CreateFunctionDefinition', createFunctionDefinition_initialVersion - Information about the initial version of the function definition.

CreateFunctionDefinition, createFunctionDefinition_name - The name of the function definition.

CreateFunctionDefinition, createFunctionDefinition_tags - Tag(s) to add to the new resource.

Request Lenses

createFunctionDefinition_amznClientToken :: Lens' CreateFunctionDefinition (Maybe Text) Source #

A client token used to correlate requests and responses.

createFunctionDefinition_initialVersion :: Lens' CreateFunctionDefinition (Maybe FunctionDefinitionVersion) Source #

Information about the initial version of the function definition.

Destructuring the Response

data CreateFunctionDefinitionResponse Source #

See: newCreateFunctionDefinitionResponse smart constructor.

Constructors

CreateFunctionDefinitionResponse' 

Fields

Instances

Instances details
Generic CreateFunctionDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

Associated Types

type Rep CreateFunctionDefinitionResponse :: Type -> Type #

Read CreateFunctionDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

Show CreateFunctionDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

NFData CreateFunctionDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

Eq CreateFunctionDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

type Rep CreateFunctionDefinitionResponse Source # 
Instance details

Defined in Amazonka.Greengrass.CreateFunctionDefinition

type Rep CreateFunctionDefinitionResponse = D1 ('MetaData "CreateFunctionDefinitionResponse" "Amazonka.Greengrass.CreateFunctionDefinition" "amazonka-greengrass-2.0-KjUXjyW3l8XyfFjm5ZueR" 'False) (C1 ('MetaCons "CreateFunctionDefinitionResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "arn") '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 "lastUpdatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "latestVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "latestVersionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newCreateFunctionDefinitionResponse Source #

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

CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_arn - The ARN of the definition.

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

CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_id - The ID of the definition.

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

CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_latestVersion - The ID of the latest version associated with the definition.

CreateFunctionDefinitionResponse, createFunctionDefinitionResponse_latestVersionArn - The ARN of the latest version associated with the definition.

CreateFunctionDefinition, createFunctionDefinitionResponse_name - The name of the definition.

$sel:httpStatus:CreateFunctionDefinitionResponse', createFunctionDefinitionResponse_httpStatus - The response's http status code.

Response Lenses

createFunctionDefinitionResponse_creationTimestamp :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #

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

createFunctionDefinitionResponse_lastUpdatedTimestamp :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #

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

createFunctionDefinitionResponse_latestVersion :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #

The ID of the latest version associated with the definition.

createFunctionDefinitionResponse_latestVersionArn :: Lens' CreateFunctionDefinitionResponse (Maybe Text) Source #

The ARN of the latest version associated with the definition.