libZSservicesZSamazonka-appsyncZSamazonka-appsync
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.AppSync.CreateFunction

Description

Creates a Function object.

A function is a reusable entity. Multiple functions can be used to compose the resolver logic.

Synopsis

Creating a Request

data CreateFunction Source #

See: newCreateFunction smart constructor.

Constructors

CreateFunction' 

Fields

Instances

Instances details
Eq CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Read CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Show CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Generic CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Associated Types

type Rep CreateFunction :: Type -> Type #

NFData CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Methods

rnf :: CreateFunction -> () #

Hashable CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

ToJSON CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

AWSRequest CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Associated Types

type AWSResponse CreateFunction #

ToHeaders CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

ToPath CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

ToQuery CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

type Rep CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

type Rep CreateFunction = D1 ('MetaData "CreateFunction" "Amazonka.AppSync.CreateFunction" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "CreateFunction'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "requestMappingTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "responseMappingTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "syncConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SyncConfig)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "dataSourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "functionVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

newCreateFunction Source #

Create a value of CreateFunction 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:requestMappingTemplate:CreateFunction', createFunction_requestMappingTemplate - The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

$sel:responseMappingTemplate:CreateFunction', createFunction_responseMappingTemplate - The Function response mapping template.

$sel:syncConfig:CreateFunction', createFunction_syncConfig - Undocumented member.

$sel:description:CreateFunction', createFunction_description - The Function description.

$sel:apiId:CreateFunction', createFunction_apiId - The GraphQL API ID.

$sel:name:CreateFunction', createFunction_name - The Function name. The function name does not have to be unique.

$sel:dataSourceName:CreateFunction', createFunction_dataSourceName - The Function DataSource name.

$sel:functionVersion:CreateFunction', createFunction_functionVersion - The version of the request mapping template. Currently the supported value is 2018-05-29.

Request Lenses

createFunction_requestMappingTemplate :: Lens' CreateFunction (Maybe Text) Source #

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

createFunction_responseMappingTemplate :: Lens' CreateFunction (Maybe Text) Source #

The Function response mapping template.

createFunction_name :: Lens' CreateFunction Text Source #

The Function name. The function name does not have to be unique.

createFunction_functionVersion :: Lens' CreateFunction Text Source #

The version of the request mapping template. Currently the supported value is 2018-05-29.

Destructuring the Response

data CreateFunctionResponse Source #

See: newCreateFunctionResponse smart constructor.

Constructors

CreateFunctionResponse' 

Fields

Instances

Instances details
Eq CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Read CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Show CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Generic CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Associated Types

type Rep CreateFunctionResponse :: Type -> Type #

NFData CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Methods

rnf :: CreateFunctionResponse -> () #

type Rep CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

type Rep CreateFunctionResponse = D1 ('MetaData "CreateFunctionResponse" "Amazonka.AppSync.CreateFunction" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "CreateFunctionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "functionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateFunctionResponse Source #

Create a value of CreateFunctionResponse 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:functionConfiguration:CreateFunctionResponse', createFunctionResponse_functionConfiguration - The Function object.

$sel:httpStatus:CreateFunctionResponse', createFunctionResponse_httpStatus - The response's http status code.

Response Lenses