Class: Aws::AppSync::Types::UpdateResolverRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppSync::Types::UpdateResolverRequest
- Defined in:
- gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb
Overview
When making an API call, you may pass UpdateResolverRequest data as a hash:
{
api_id: "String", # required
type_name: "ResourceName", # required
field_name: "ResourceName", # required
data_source_name: "ResourceName",
request_mapping_template: "MappingTemplate",
response_mapping_template: "MappingTemplate",
kind: "UNIT", # accepts UNIT, PIPELINE
pipeline_config: {
functions: ["String"],
},
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",
},
},
caching_config: {
ttl: 1,
caching_keys: ["String"],
},
max_batch_size: 1,
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#api_id ⇒ String
The API ID.
-
#caching_config ⇒ Types::CachingConfig
The caching configuration for the resolver.
-
#data_source_name ⇒ String
The new data source name.
-
#field_name ⇒ String
The new field name.
-
#kind ⇒ String
The resolver type.
-
#max_batch_size ⇒ Integer
The maximum batching size for a resolver.
-
#pipeline_config ⇒ Types::PipelineConfig
The
PipelineConfig
. -
#request_mapping_template ⇒ String
The new request mapping template.
-
#response_mapping_template ⇒ String
The new response mapping template.
-
#sync_config ⇒ Types::SyncConfig
The
SyncConfig
for a resolver attached to a versioned data source. -
#type_name ⇒ String
The new type name.
Instance Attribute Details
#api_id ⇒ String
The API ID.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#caching_config ⇒ Types::CachingConfig
The caching configuration for the resolver.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#data_source_name ⇒ String
The new data source name.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#field_name ⇒ String
The new field name.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#kind ⇒ String
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#max_batch_size ⇒ Integer
The maximum batching size for a resolver.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#pipeline_config ⇒ Types::PipelineConfig
The PipelineConfig
.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#request_mapping_template ⇒ String
The new request mapping template.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#response_mapping_template ⇒ String
The new response mapping template.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#sync_config ⇒ Types::SyncConfig
The SyncConfig
for a resolver attached to a versioned data source.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |
#type_name ⇒ String
The new type name.
4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 |
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 4032 class UpdateResolverRequest < Struct.new( :api_id, :type_name, :field_name, :data_source_name, :request_mapping_template, :response_mapping_template, :kind, :pipeline_config, :sync_config, :caching_config, :max_batch_size) SENSITIVE = [] include Aws::Structure end |