Class: Aws::AppSync::Types::UpdateResolverRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-appsync/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#api_idString

The API ID.

Returns:

  • (String)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#caching_configTypes::CachingConfig

The caching configuration for the resolver.



5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#codeString

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

Returns:

  • (String)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#data_source_nameString

The new data source name.

Returns:

  • (String)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#field_nameString

The new field name.

Returns:

  • (String)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#kindString

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.

Returns:

  • (String)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#max_batch_sizeInteger

The maximum batching size for a resolver.

Returns:

  • (Integer)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#metrics_configString

Enables or disables enhanced resolver metrics for specified resolvers. Note that ‘metricsConfig` won’t be used unless the ‘resolverLevelMetricsBehavior` value is set to `PER_RESOLVER_METRICS`. If the `resolverLevelMetricsBehavior` is set to `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be ignored. However, you can still set its value.

‘metricsConfig` can be `ENABLED` or `DISABLED`.

Returns:

  • (String)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#pipeline_configTypes::PipelineConfig

The ‘PipelineConfig`.



5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#request_mapping_templateString

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.

Returns:

  • (String)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#response_mapping_templateString

The new response mapping template.

Returns:

  • (String)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#runtimeTypes::AppSyncRuntime

Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.



5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#sync_configTypes::SyncConfig

The ‘SyncConfig` for a resolver attached to a versioned data source.

Returns:



5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end

#type_nameString

The new type name.

Returns:

  • (String)


5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
# File 'lib/aws-sdk-appsync/types.rb', line 5558

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,
  :runtime,
  :code,
  :metrics_config)
  SENSITIVE = []
  include Aws::Structure
end