Class: Aws::AppSync::Types::CreateFunctionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppSync::Types::CreateFunctionRequest
- Defined in:
- gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb
Overview
When making an API call, you may pass CreateFunctionRequest data as a hash:
{
api_id: "String", # required
name: "ResourceName", # required
description: "String",
data_source_name: "ResourceName", # required
request_mapping_template: "MappingTemplate",
response_mapping_template: "MappingTemplate",
function_version: "String", # required
sync_config: {
conflict_handler: "OPTIMISTIC_CONCURRENCY", # accepts OPTIMISTIC_CONCURRENCY, LAMBDA, AUTOMERGE, NONE
conflict_detection: "VERSION", # accepts VERSION, NONE
lambda_conflict_handler_config: {
lambda_conflict_handler_arn: "String",
},
},
max_batch_size: 1,
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#api_id ⇒ String
The GraphQL API ID.
-
#data_source_name ⇒ String
The
Function
DataSource
name. -
#description ⇒ String
The
Function
description. -
#function_version ⇒ String
The
version
of the request mapping template. -
#max_batch_size ⇒ Integer
The maximum batching size for a resolver.
-
#name ⇒ String
The
Function
name. -
#request_mapping_template ⇒ String
The
Function
request mapping template. -
#response_mapping_template ⇒ String
The
Function
response mapping template. -
#sync_config ⇒ Types::SyncConfig
Describes a Sync configuration for a resolver.
Instance Attribute Details
#api_id ⇒ String
The GraphQL API ID.
923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 923 class CreateFunctionRequest < Struct.new( :api_id, :name, :description, :data_source_name, :request_mapping_template, :response_mapping_template, :function_version, :sync_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#data_source_name ⇒ String
The Function
DataSource
name.
923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 923 class CreateFunctionRequest < Struct.new( :api_id, :name, :description, :data_source_name, :request_mapping_template, :response_mapping_template, :function_version, :sync_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#description ⇒ String
The Function
description.
923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 923 class CreateFunctionRequest < Struct.new( :api_id, :name, :description, :data_source_name, :request_mapping_template, :response_mapping_template, :function_version, :sync_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#function_version ⇒ String
The version
of the request mapping template. Currently, the
supported value is 2018-05-29.
923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 923 class CreateFunctionRequest < Struct.new( :api_id, :name, :description, :data_source_name, :request_mapping_template, :response_mapping_template, :function_version, :sync_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#max_batch_size ⇒ Integer
The maximum batching size for a resolver.
923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 923 class CreateFunctionRequest < Struct.new( :api_id, :name, :description, :data_source_name, :request_mapping_template, :response_mapping_template, :function_version, :sync_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#name ⇒ String
The Function
name. The function name does not have to be unique.
923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 923 class CreateFunctionRequest < Struct.new( :api_id, :name, :description, :data_source_name, :request_mapping_template, :response_mapping_template, :function_version, :sync_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#request_mapping_template ⇒ String
The Function
request mapping template. Functions support only the
2018-05-29 version of the request mapping template.
923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 923 class CreateFunctionRequest < Struct.new( :api_id, :name, :description, :data_source_name, :request_mapping_template, :response_mapping_template, :function_version, :sync_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#response_mapping_template ⇒ String
The Function
response mapping template.
923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 923 class CreateFunctionRequest < Struct.new( :api_id, :name, :description, :data_source_name, :request_mapping_template, :response_mapping_template, :function_version, :sync_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#sync_config ⇒ Types::SyncConfig
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 923 class CreateFunctionRequest < Struct.new( :api_id, :name, :description, :data_source_name, :request_mapping_template, :response_mapping_template, :function_version, :sync_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |