aws appsync create-resolver
Creates a Resolver object. A resolver converts incoming requests into a format that a data source can understand and converts the data source's responses into GraphQL
Options
Name | Description |
---|---|
--api-id <string> | The ID for the GraphQL API for which the resolver is being created |
--type-name <string> | The name of the Type |
--field-name <string> | The name of the field to attach the resolver to |
--data-source-name <string> | The name of the data source for which the resolver is being created |
--request-mapping-template <string> | 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 |
--response-mapping-template <string> | The mapping template to be used for responses from the data source |
--kind <string> | 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 |
--pipeline-config <structure> | The PipelineConfig |
--sync-config <structure> | The SyncConfig for a resolver attached to a versioned datasource |
--caching-config <structure> | The caching configuration for the resolver |
--cli-input-json <string> | Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally |
--generate-cli-skeleton <string> | Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command |