Resolver
Provides an AppSync Resolver.
Create a Resolver Resource
new Resolver(name: string, args: ResolverArgs, opts?: CustomResourceOptions);def Resolver(resource_name, opts=None, api_id=None, caching_config=None, data_source=None, field=None, kind=None, pipeline_config=None, request_template=None, response_template=None, type=None, __props__=None);func NewResolver(ctx *Context, name string, args ResolverArgs, opts ...ResourceOption) (*Resolver, error)public Resolver(string name, ResolverArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ResolverArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ResolverArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResolverArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Resolver Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Resolver resource accepts the following input properties:
- Api
Id string The API ID for the GraphQL API.
- Field string
The field name from the schema defined in the GraphQL API.
- Request
Template string The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.
- Response
Template string The response mapping template for UNIT resolver or ‘after mapping template’ for PIPELINE resolver.
- Type string
The type name from the schema defined in the GraphQL API.
- Caching
Config ResolverCaching Config Args The CachingConfig.
- Data
Source string The DataSource name.
- Kind string
The resolver type. Valid values are
UNITandPIPELINE.- Pipeline
Config ResolverPipeline Config Args The PipelineConfig.
- Api
Id string The API ID for the GraphQL API.
- Field string
The field name from the schema defined in the GraphQL API.
- Request
Template string The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.
- Response
Template string The response mapping template for UNIT resolver or ‘after mapping template’ for PIPELINE resolver.
- Type string
The type name from the schema defined in the GraphQL API.
- Caching
Config ResolverCaching Config The CachingConfig.
- Data
Source string The DataSource name.
- Kind string
The resolver type. Valid values are
UNITandPIPELINE.- Pipeline
Config ResolverPipeline Config The PipelineConfig.
- api
Id string The API ID for the GraphQL API.
- field string
The field name from the schema defined in the GraphQL API.
- request
Template string The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.
- response
Template string The response mapping template for UNIT resolver or ‘after mapping template’ for PIPELINE resolver.
- type string
The type name from the schema defined in the GraphQL API.
- caching
Config ResolverCaching Config The CachingConfig.
- data
Source string The DataSource name.
- kind string
The resolver type. Valid values are
UNITandPIPELINE.- pipeline
Config ResolverPipeline Config The PipelineConfig.
- api_
id str The API ID for the GraphQL API.
- field str
The field name from the schema defined in the GraphQL API.
- request_
template str The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.
- response_
template str The response mapping template for UNIT resolver or ‘after mapping template’ for PIPELINE resolver.
- type str
The type name from the schema defined in the GraphQL API.
- caching_
config Dict[ResolverCaching Config] The CachingConfig.
- data_
source str The DataSource name.
- kind str
The resolver type. Valid values are
UNITandPIPELINE.- pipeline_
config Dict[ResolverPipeline Config] The PipelineConfig.
Outputs
All input properties are implicitly available as output properties. Additionally, the Resolver resource produces the following output properties:
Look up an Existing Resolver Resource
Get an existing Resolver resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ResolverState, opts?: CustomResourceOptions): Resolverstatic get(resource_name, id, opts=None, api_id=None, arn=None, caching_config=None, data_source=None, field=None, kind=None, pipeline_config=None, request_template=None, response_template=None, type=None, __props__=None);func GetResolver(ctx *Context, name string, id IDInput, state *ResolverState, opts ...ResourceOption) (*Resolver, error)public static Resolver Get(string name, Input<string> id, ResolverState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Api
Id string The API ID for the GraphQL API.
- Arn string
The ARN
- Caching
Config ResolverCaching Config Args The CachingConfig.
- Data
Source string The DataSource name.
- Field string
The field name from the schema defined in the GraphQL API.
- Kind string
The resolver type. Valid values are
UNITandPIPELINE.- Pipeline
Config ResolverPipeline Config Args The PipelineConfig.
- Request
Template string The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.
- Response
Template string The response mapping template for UNIT resolver or ‘after mapping template’ for PIPELINE resolver.
- Type string
The type name from the schema defined in the GraphQL API.
- Api
Id string The API ID for the GraphQL API.
- Arn string
The ARN
- Caching
Config ResolverCaching Config The CachingConfig.
- Data
Source string The DataSource name.
- Field string
The field name from the schema defined in the GraphQL API.
- Kind string
The resolver type. Valid values are
UNITandPIPELINE.- Pipeline
Config ResolverPipeline Config The PipelineConfig.
- Request
Template string The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.
- Response
Template string The response mapping template for UNIT resolver or ‘after mapping template’ for PIPELINE resolver.
- Type string
The type name from the schema defined in the GraphQL API.
- api
Id string The API ID for the GraphQL API.
- arn string
The ARN
- caching
Config ResolverCaching Config The CachingConfig.
- data
Source string The DataSource name.
- field string
The field name from the schema defined in the GraphQL API.
- kind string
The resolver type. Valid values are
UNITandPIPELINE.- pipeline
Config ResolverPipeline Config The PipelineConfig.
- request
Template string The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.
- response
Template string The response mapping template for UNIT resolver or ‘after mapping template’ for PIPELINE resolver.
- type string
The type name from the schema defined in the GraphQL API.
- api_
id str The API ID for the GraphQL API.
- arn str
The ARN
- caching_
config Dict[ResolverCaching Config] The CachingConfig.
- data_
source str The DataSource name.
- field str
The field name from the schema defined in the GraphQL API.
- kind str
The resolver type. Valid values are
UNITandPIPELINE.- pipeline_
config Dict[ResolverPipeline Config] The PipelineConfig.
- request_
template str The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.
- response_
template str The response mapping template for UNIT resolver or ‘after mapping template’ for PIPELINE resolver.
- type str
The type name from the schema defined in the GraphQL API.
Supporting Types
ResolverCachingConfig
- Caching
Keys List<string> The list of caching key.
- Ttl int
The TTL in seconds.
- Caching
Keys []string The list of caching key.
- Ttl int
The TTL in seconds.
- caching
Keys string[] The list of caching key.
- ttl number
The TTL in seconds.
- caching
Keys List[str] The list of caching key.
- ttl float
The TTL in seconds.
ResolverPipelineConfig
- Functions List<string>
The list of Function ID.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.