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.Types.FunctionConfiguration

Description

 
Synopsis

Documentation

data FunctionConfiguration Source #

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

See: newFunctionConfiguration smart constructor.

Constructors

FunctionConfiguration' 

Fields

Instances

Instances details
FromJSON FunctionConfiguration Source # 
Instance details

Defined in Amazonka.AppSync.Types.FunctionConfiguration

Generic FunctionConfiguration Source # 
Instance details

Defined in Amazonka.AppSync.Types.FunctionConfiguration

Associated Types

type Rep FunctionConfiguration :: Type -> Type #

Read FunctionConfiguration Source # 
Instance details

Defined in Amazonka.AppSync.Types.FunctionConfiguration

Show FunctionConfiguration Source # 
Instance details

Defined in Amazonka.AppSync.Types.FunctionConfiguration

NFData FunctionConfiguration Source # 
Instance details

Defined in Amazonka.AppSync.Types.FunctionConfiguration

Methods

rnf :: FunctionConfiguration -> () #

Eq FunctionConfiguration Source # 
Instance details

Defined in Amazonka.AppSync.Types.FunctionConfiguration

Hashable FunctionConfiguration Source # 
Instance details

Defined in Amazonka.AppSync.Types.FunctionConfiguration

type Rep FunctionConfiguration Source # 
Instance details

Defined in Amazonka.AppSync.Types.FunctionConfiguration

type Rep FunctionConfiguration = D1 ('MetaData "FunctionConfiguration" "Amazonka.AppSync.Types.FunctionConfiguration" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "FunctionConfiguration'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dataSourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "functionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "functionId") '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 "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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)))))))

newFunctionConfiguration :: FunctionConfiguration Source #

Create a value of FunctionConfiguration 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:code:FunctionConfiguration', functionConfiguration_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.

$sel:dataSourceName:FunctionConfiguration', functionConfiguration_dataSourceName - The name of the DataSource.

$sel:description:FunctionConfiguration', functionConfiguration_description - The Function description.

$sel:functionArn:FunctionConfiguration', functionConfiguration_functionArn - The Amazon Resource Name (ARN) of the Function object.

$sel:functionId:FunctionConfiguration', functionConfiguration_functionId - A unique ID representing the Function object.

$sel:functionVersion:FunctionConfiguration', functionConfiguration_functionVersion - The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.

$sel:maxBatchSize:FunctionConfiguration', functionConfiguration_maxBatchSize - The maximum batching size for a resolver.

FunctionConfiguration, functionConfiguration_name - The name of the Function object.

$sel:requestMappingTemplate:FunctionConfiguration', functionConfiguration_requestMappingTemplate - The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

$sel:responseMappingTemplate:FunctionConfiguration', functionConfiguration_responseMappingTemplate - The Function response mapping template.

$sel:runtime:FunctionConfiguration', functionConfiguration_runtime - Undocumented member.

$sel:syncConfig:FunctionConfiguration', functionConfiguration_syncConfig - Undocumented member.

functionConfiguration_code :: Lens' FunctionConfiguration (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.

functionConfiguration_functionArn :: Lens' FunctionConfiguration (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Function object.

functionConfiguration_functionId :: Lens' FunctionConfiguration (Maybe Text) Source #

A unique ID representing the Function object.

functionConfiguration_functionVersion :: Lens' FunctionConfiguration (Maybe Text) Source #

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

functionConfiguration_requestMappingTemplate :: Lens' FunctionConfiguration (Maybe Text) Source #

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