class Aws::AppSync::Types::CreateResolverRequest

@note When making an API call, you may pass CreateResolverRequest

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"],
      },
    }

@!attribute [rw] api_id

The ID for the GraphQL API for which the resolver is being created.
@return [String]

@!attribute [rw] type_name

The name of the `Type`.
@return [String]

@!attribute [rw] field_name

The name of the field to attach the resolver to.
@return [String]

@!attribute [rw] data_source_name

The name of the data source for which the resolver is being created.
@return [String]

@!attribute [rw] request_mapping_template

The mapping template to be used for requests.

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 a Lambda data
source. For all other data sources, VTL request and response mapping
templates are required.
@return [String]

@!attribute [rw] response_mapping_template

The mapping template to be used for responses from the data source.
@return [String]

@!attribute [rw] kind

The resolver type.

* **UNIT**\: A UNIT resolver type. A UNIT resolver is the default
  resolver type. A UNIT resolver enables you to execute a GraphQL
  query against a single data source.

* **PIPELINE**\: A PIPELINE resolver type. A PIPELINE resolver
  enables you to execute a series of `Function` in a serial manner.
  You can use a pipeline resolver to execute a GraphQL query against
  multiple data sources.
@return [String]

@!attribute [rw] pipeline_config

The `PipelineConfig`.
@return [Types::PipelineConfig]

@!attribute [rw] sync_config

The `SyncConfig` for a resolver attached to a versioned datasource.
@return [Types::SyncConfig]

@!attribute [rw] caching_config

The caching configuration for the resolver.
@return [Types::CachingConfig]

@see docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolverRequest AWS API Documentation

Constants

SENSITIVE