amazonka-appsync-2.0: Amazon AppSync 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.AppSync.CreateFunction

Description

Creates a Function object.

A function is a reusable entity. You can use multiple functions to compose the resolver logic.

Synopsis

Creating a Request

data CreateFunction Source #

See: newCreateFunction smart constructor.

Constructors

CreateFunction' 

Fields

Instances

Instances details
ToJSON CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.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

AWSRequest CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Associated Types

type AWSResponse CreateFunction #

Generic CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Associated Types

type Rep CreateFunction :: Type -> Type #

Read CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Show CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

NFData CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Methods

rnf :: CreateFunction -> () #

Eq CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Hashable CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

type AWSResponse CreateFunction Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

type Rep 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:

CreateFunction, createFunction_code - The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

CreateFunction, createFunction_description - The Function description.

CreateFunction, createFunction_functionVersion - The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion is required.

CreateFunction, createFunction_maxBatchSize - The maximum batching size for a resolver.

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

CreateFunction, createFunction_responseMappingTemplate - The Function response mapping template.

CreateFunction, createFunction_runtime - Undocumented member.

CreateFunction, createFunction_syncConfig - Undocumented member.

CreateFunction, createFunction_apiId - The GraphQL API ID.

CreateFunction, createFunction_name - The Function name. The function name does not have to be unique.

CreateFunction, createFunction_dataSourceName - The Function DataSource name.

Request Lenses

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

The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

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

The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion is required.

createFunction_maxBatchSize :: Lens' CreateFunction (Maybe Natural) Source #

The maximum batching size for a resolver.

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.

Destructuring the Response

data CreateFunctionResponse Source #

See: newCreateFunctionResponse smart constructor.

Constructors

CreateFunctionResponse' 

Fields

Instances

Instances details
Generic CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Associated Types

type Rep CreateFunctionResponse :: Type -> Type #

Read CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Show CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

NFData CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

Methods

rnf :: CreateFunctionResponse -> () #

Eq CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

type Rep CreateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateFunction

type Rep CreateFunctionResponse = D1 ('MetaData "CreateFunctionResponse" "Amazonka.AppSync.CreateFunction" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" '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