Resolver

Provides an AppSync Resolver.

Create a Resolver Resource

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:

ApiId string

The API ID for the GraphQL API.

Field string

The field name from the schema defined in the GraphQL API.

RequestTemplate string

The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.

ResponseTemplate 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.

CachingConfig ResolverCachingConfigArgs

The CachingConfig.

DataSource string

The DataSource name.

Kind string

The resolver type. Valid values are UNIT and PIPELINE.

PipelineConfig ResolverPipelineConfigArgs

The PipelineConfig.

ApiId string

The API ID for the GraphQL API.

Field string

The field name from the schema defined in the GraphQL API.

RequestTemplate string

The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.

ResponseTemplate 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.

CachingConfig ResolverCachingConfig

The CachingConfig.

DataSource string

The DataSource name.

Kind string

The resolver type. Valid values are UNIT and PIPELINE.

PipelineConfig ResolverPipelineConfig

The PipelineConfig.

apiId string

The API ID for the GraphQL API.

field string

The field name from the schema defined in the GraphQL API.

requestTemplate string

The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.

responseTemplate 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.

cachingConfig ResolverCachingConfig

The CachingConfig.

dataSource string

The DataSource name.

kind string

The resolver type. Valid values are UNIT and PIPELINE.

pipelineConfig ResolverPipelineConfig

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[ResolverCachingConfig]

The CachingConfig.

data_source str

The DataSource name.

kind str

The resolver type. Valid values are UNIT and PIPELINE.

pipeline_config Dict[ResolverPipelineConfig]

The PipelineConfig.

Outputs

All input properties are implicitly available as output properties. Additionally, the Resolver resource produces the following output properties:

Arn string

The ARN

Id string
The provider-assigned unique ID for this managed resource.
Arn string

The ARN

Id string
The provider-assigned unique ID for this managed resource.
arn string

The ARN

id string
The provider-assigned unique ID for this managed resource.
arn str

The ARN

id str
The provider-assigned unique ID for this managed resource.

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): Resolver
static 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:

ApiId string

The API ID for the GraphQL API.

Arn string

The ARN

CachingConfig ResolverCachingConfigArgs

The CachingConfig.

DataSource 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 UNIT and PIPELINE.

PipelineConfig ResolverPipelineConfigArgs

The PipelineConfig.

RequestTemplate string

The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.

ResponseTemplate 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.

ApiId string

The API ID for the GraphQL API.

Arn string

The ARN

CachingConfig ResolverCachingConfig

The CachingConfig.

DataSource 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 UNIT and PIPELINE.

PipelineConfig ResolverPipelineConfig

The PipelineConfig.

RequestTemplate string

The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.

ResponseTemplate 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.

apiId string

The API ID for the GraphQL API.

arn string

The ARN

cachingConfig ResolverCachingConfig

The CachingConfig.

dataSource 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 UNIT and PIPELINE.

pipelineConfig ResolverPipelineConfig

The PipelineConfig.

requestTemplate string

The request mapping template for UNIT resolver or ‘before mapping template’ for PIPELINE resolver.

responseTemplate 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[ResolverCachingConfig]

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 UNIT and PIPELINE.

pipeline_config Dict[ResolverPipelineConfig]

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

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

CachingKeys List<string>

The list of caching key.

Ttl int

The TTL in seconds.

CachingKeys []string

The list of caching key.

Ttl int

The TTL in seconds.

cachingKeys string[]

The list of caching key.

ttl number

The TTL in seconds.

cachingKeys List[str]

The list of caching key.

ttl float

The TTL in seconds.

ResolverPipelineConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Functions List<string>

The list of Function ID.

Functions []string

The list of Function ID.

functions string[]

The list of Function ID.

functions List[str]

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 aws Terraform Provider.