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

Description

Updates a Function object.

Synopsis

Creating a Request

data UpdateFunction Source #

See: newUpdateFunction smart constructor.

Constructors

UpdateFunction' 

Fields

Instances

Instances details
ToJSON UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

ToHeaders UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

ToPath UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

ToQuery UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

AWSRequest UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

Associated Types

type AWSResponse UpdateFunction #

Generic UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

Associated Types

type Rep UpdateFunction :: Type -> Type #

Read UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

Show UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

NFData UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

Methods

rnf :: UpdateFunction -> () #

Eq UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

Hashable UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

type AWSResponse UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

type Rep UpdateFunction Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

type Rep UpdateFunction = D1 ('MetaData "UpdateFunction" "Amazonka.AppSync.UpdateFunction" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "UpdateFunction'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "functionVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "maxBatchSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "requestMappingTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "responseMappingTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "runtime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AppSyncRuntime)) :*: (S1 ('MetaSel ('Just "syncConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SyncConfig)) :*: S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "functionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "dataSourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newUpdateFunction Source #

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

UpdateFunction, updateFunction_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.

UpdateFunction, updateFunction_description - The Function description.

UpdateFunction, updateFunction_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.

UpdateFunction, updateFunction_maxBatchSize - The maximum batching size for a resolver.

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

UpdateFunction, updateFunction_responseMappingTemplate - The Function request mapping template.

UpdateFunction, updateFunction_runtime - Undocumented member.

UpdateFunction, updateFunction_syncConfig - Undocumented member.

UpdateFunction, updateFunction_apiId - The GraphQL API ID.

UpdateFunction, updateFunction_name - The Function name.

UpdateFunction, updateFunction_functionId - The function ID.

UpdateFunction, updateFunction_dataSourceName - The Function DataSource name.

Request Lenses

updateFunction_code :: Lens' UpdateFunction (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.

updateFunction_functionVersion :: Lens' UpdateFunction (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.

updateFunction_maxBatchSize :: Lens' UpdateFunction (Maybe Natural) Source #

The maximum batching size for a resolver.

updateFunction_requestMappingTemplate :: Lens' UpdateFunction (Maybe Text) Source #

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

updateFunction_responseMappingTemplate :: Lens' UpdateFunction (Maybe Text) Source #

The Function request mapping template.

Destructuring the Response

data UpdateFunctionResponse Source #

See: newUpdateFunctionResponse smart constructor.

Constructors

UpdateFunctionResponse' 

Fields

Instances

Instances details
Generic UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

Associated Types

type Rep UpdateFunctionResponse :: Type -> Type #

Read UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

Show UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

NFData UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

Methods

rnf :: UpdateFunctionResponse -> () #

Eq UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

type Rep UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateFunction

type Rep UpdateFunctionResponse = D1 ('MetaData "UpdateFunctionResponse" "Amazonka.AppSync.UpdateFunction" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "UpdateFunctionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "functionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateFunctionResponse Source #

Create a value of UpdateFunctionResponse 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:UpdateFunctionResponse', updateFunctionResponse_functionConfiguration - The Function object.

$sel:httpStatus:UpdateFunctionResponse', updateFunctionResponse_httpStatus - The response's http status code.

Response Lenses