We recommend new projects start with resources from the AWS provider.
aws-native.appsync.getResolver
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::AppSync::Resolver resource defines the logical GraphQL resolver that you attach to fields in a schema. Request and response templates for resolvers are written in Apache Velocity Template Language (VTL) format. For more information about resolvers, see Resolver Mapping Template Reference.
When you submit an update, CFNLong updates resources based on differences between what you submit and the stack’s current template. To cause this resource to be updated you must change a property value for this resource in the CFNshort template. Changing the S3 file content without changing a property value will not result in an update operation.
See Update Behaviors of Stack Resources in the User Guide.
Using getResolver
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getResolver(args: GetResolverArgs, opts?: InvokeOptions): Promise<GetResolverResult>
function getResolverOutput(args: GetResolverOutputArgs, opts?: InvokeOptions): Output<GetResolverResult>def get_resolver(resolver_arn: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetResolverResult
def get_resolver_output(resolver_arn: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetResolverResult]func LookupResolver(ctx *Context, args *LookupResolverArgs, opts ...InvokeOption) (*LookupResolverResult, error)
func LookupResolverOutput(ctx *Context, args *LookupResolverOutputArgs, opts ...InvokeOption) LookupResolverResultOutput> Note: This function is named LookupResolver in the Go SDK.
public static class GetResolver 
{
    public static Task<GetResolverResult> InvokeAsync(GetResolverArgs args, InvokeOptions? opts = null)
    public static Output<GetResolverResult> Invoke(GetResolverInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetResolverResult> getResolver(GetResolverArgs args, InvokeOptions options)
public static Output<GetResolverResult> getResolver(GetResolverArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:appsync:getResolver
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResolverArn string
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- ResolverArn string
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- resolverArn String
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- resolverArn string
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- resolver_arn str
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- resolverArn String
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
getResolver Result
The following output properties are available:
- CachingConfig Pulumi.Aws Native. App Sync. Outputs. Resolver Caching Config 
- The caching configuration for the resolver.
- Code string
- The resolvercode that contains the request and response functions. When code is used, theruntimeis required. The runtime value must beAPPSYNC_JS.
- DataSource stringName 
- The resolver data source name.
- Kind string
- 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 Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
 
- MaxBatch intSize 
- The maximum number of resolver request inputs that will be sent to a single LAMlong function in a BatchInvokeoperation.
- MetricsConfig Pulumi.Aws Native. App Sync. Resolver Metrics Config 
- Enables or disables enhanced resolver metrics for specified resolvers. Note that MetricsConfigwon't be used unless theresolverLevelMetricsBehaviorvalue is set toPER_RESOLVER_METRICS. If theresolverLevelMetricsBehavioris set toFULL_REQUEST_RESOLVER_METRICSinstead,MetricsConfigwill be ignored. However, you can still set its value.
- PipelineConfig Pulumi.Aws Native. App Sync. Outputs. Resolver Pipeline Config 
- Functions linked with the pipeline resolver.
- RequestMapping stringTemplate 
- The request mapping template. Request mapping templates are optional when using a Lambda data source. For all other data sources, a request mapping template is required.
- ResolverArn string
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- ResponseMapping stringTemplate 
- The response mapping template.
- Runtime
Pulumi.Aws Native. App Sync. Outputs. Resolver App Sync Runtime 
- Describes a runtime used by an APSYlong resolver or APSYlong function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
- SyncConfig Pulumi.Aws Native. App Sync. Outputs. Resolver Sync Config 
- The SyncConfigfor a resolver attached to a versioned data source.
- CachingConfig ResolverCaching Config 
- The caching configuration for the resolver.
- Code string
- The resolvercode that contains the request and response functions. When code is used, theruntimeis required. The runtime value must beAPPSYNC_JS.
- DataSource stringName 
- The resolver data source name.
- Kind string
- 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 Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
 
- MaxBatch intSize 
- The maximum number of resolver request inputs that will be sent to a single LAMlong function in a BatchInvokeoperation.
- MetricsConfig ResolverMetrics Config 
- Enables or disables enhanced resolver metrics for specified resolvers. Note that MetricsConfigwon't be used unless theresolverLevelMetricsBehaviorvalue is set toPER_RESOLVER_METRICS. If theresolverLevelMetricsBehavioris set toFULL_REQUEST_RESOLVER_METRICSinstead,MetricsConfigwill be ignored. However, you can still set its value.
- PipelineConfig ResolverPipeline Config 
- Functions linked with the pipeline resolver.
- RequestMapping stringTemplate 
- The request mapping template. Request mapping templates are optional when using a Lambda data source. For all other data sources, a request mapping template is required.
- ResolverArn string
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- ResponseMapping stringTemplate 
- The response mapping template.
- Runtime
ResolverApp Sync Runtime 
- Describes a runtime used by an APSYlong resolver or APSYlong function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
- SyncConfig ResolverSync Config 
- The SyncConfigfor a resolver attached to a versioned data source.
- cachingConfig ResolverCaching Config 
- The caching configuration for the resolver.
- code String
- The resolvercode that contains the request and response functions. When code is used, theruntimeis required. The runtime value must beAPPSYNC_JS.
- dataSource StringName 
- The resolver data source name.
- kind String
- 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 Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
 
- maxBatch IntegerSize 
- The maximum number of resolver request inputs that will be sent to a single LAMlong function in a BatchInvokeoperation.
- metricsConfig ResolverMetrics Config 
- Enables or disables enhanced resolver metrics for specified resolvers. Note that MetricsConfigwon't be used unless theresolverLevelMetricsBehaviorvalue is set toPER_RESOLVER_METRICS. If theresolverLevelMetricsBehavioris set toFULL_REQUEST_RESOLVER_METRICSinstead,MetricsConfigwill be ignored. However, you can still set its value.
- pipelineConfig ResolverPipeline Config 
- Functions linked with the pipeline resolver.
- requestMapping StringTemplate 
- The request mapping template. Request mapping templates are optional when using a Lambda data source. For all other data sources, a request mapping template is required.
- resolverArn String
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- responseMapping StringTemplate 
- The response mapping template.
- runtime
ResolverApp Sync Runtime 
- Describes a runtime used by an APSYlong resolver or APSYlong function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
- syncConfig ResolverSync Config 
- The SyncConfigfor a resolver attached to a versioned data source.
- cachingConfig ResolverCaching Config 
- The caching configuration for the resolver.
- code string
- The resolvercode that contains the request and response functions. When code is used, theruntimeis required. The runtime value must beAPPSYNC_JS.
- dataSource stringName 
- The resolver data source name.
- kind string
- 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 Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
 
- maxBatch numberSize 
- The maximum number of resolver request inputs that will be sent to a single LAMlong function in a BatchInvokeoperation.
- metricsConfig ResolverMetrics Config 
- Enables or disables enhanced resolver metrics for specified resolvers. Note that MetricsConfigwon't be used unless theresolverLevelMetricsBehaviorvalue is set toPER_RESOLVER_METRICS. If theresolverLevelMetricsBehavioris set toFULL_REQUEST_RESOLVER_METRICSinstead,MetricsConfigwill be ignored. However, you can still set its value.
- pipelineConfig ResolverPipeline Config 
- Functions linked with the pipeline resolver.
- requestMapping stringTemplate 
- The request mapping template. Request mapping templates are optional when using a Lambda data source. For all other data sources, a request mapping template is required.
- resolverArn string
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- responseMapping stringTemplate 
- The response mapping template.
- runtime
ResolverApp Sync Runtime 
- Describes a runtime used by an APSYlong resolver or APSYlong function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
- syncConfig ResolverSync Config 
- The SyncConfigfor a resolver attached to a versioned data source.
- caching_config ResolverCaching Config 
- The caching configuration for the resolver.
- code str
- The resolvercode that contains the request and response functions. When code is used, theruntimeis required. The runtime value must beAPPSYNC_JS.
- data_source_ strname 
- The resolver data source name.
- kind str
- 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 Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
 
- max_batch_ intsize 
- The maximum number of resolver request inputs that will be sent to a single LAMlong function in a BatchInvokeoperation.
- metrics_config ResolverMetrics Config 
- Enables or disables enhanced resolver metrics for specified resolvers. Note that MetricsConfigwon't be used unless theresolverLevelMetricsBehaviorvalue is set toPER_RESOLVER_METRICS. If theresolverLevelMetricsBehavioris set toFULL_REQUEST_RESOLVER_METRICSinstead,MetricsConfigwill be ignored. However, you can still set its value.
- pipeline_config ResolverPipeline Config 
- Functions linked with the pipeline resolver.
- request_mapping_ strtemplate 
- The request mapping template. Request mapping templates are optional when using a Lambda data source. For all other data sources, a request mapping template is required.
- resolver_arn str
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- response_mapping_ strtemplate 
- The response mapping template.
- runtime
ResolverApp Sync Runtime 
- Describes a runtime used by an APSYlong resolver or APSYlong function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
- sync_config ResolverSync Config 
- The SyncConfigfor a resolver attached to a versioned data source.
- cachingConfig Property Map
- The caching configuration for the resolver.
- code String
- The resolvercode that contains the request and response functions. When code is used, theruntimeis required. The runtime value must beAPPSYNC_JS.
- dataSource StringName 
- The resolver data source name.
- kind String
- 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 Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
 
- maxBatch NumberSize 
- The maximum number of resolver request inputs that will be sent to a single LAMlong function in a BatchInvokeoperation.
- metricsConfig "ENABLED" | "DISABLED"
- Enables or disables enhanced resolver metrics for specified resolvers. Note that MetricsConfigwon't be used unless theresolverLevelMetricsBehaviorvalue is set toPER_RESOLVER_METRICS. If theresolverLevelMetricsBehavioris set toFULL_REQUEST_RESOLVER_METRICSinstead,MetricsConfigwill be ignored. However, you can still set its value.
- pipelineConfig Property Map
- Functions linked with the pipeline resolver.
- requestMapping StringTemplate 
- The request mapping template. Request mapping templates are optional when using a Lambda data source. For all other data sources, a request mapping template is required.
- resolverArn String
- ARN of the resolver, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/types/typename/resolvers/resolvername.
- responseMapping StringTemplate 
- The response mapping template.
- runtime Property Map
- Describes a runtime used by an APSYlong resolver or APSYlong function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
- syncConfig Property Map
- The SyncConfigfor a resolver attached to a versioned data source.
Supporting Types
ResolverAppSyncRuntime   
- Name string
- The nameof the runtime to use. Currently, the only allowed value isAPPSYNC_JS.
- RuntimeVersion string
- The versionof the runtime to use. Currently, the only allowed version is1.0.0.
- Name string
- The nameof the runtime to use. Currently, the only allowed value isAPPSYNC_JS.
- RuntimeVersion string
- The versionof the runtime to use. Currently, the only allowed version is1.0.0.
- name String
- The nameof the runtime to use. Currently, the only allowed value isAPPSYNC_JS.
- runtimeVersion String
- The versionof the runtime to use. Currently, the only allowed version is1.0.0.
- name string
- The nameof the runtime to use. Currently, the only allowed value isAPPSYNC_JS.
- runtimeVersion string
- The versionof the runtime to use. Currently, the only allowed version is1.0.0.
- name str
- The nameof the runtime to use. Currently, the only allowed value isAPPSYNC_JS.
- runtime_version str
- The versionof the runtime to use. Currently, the only allowed version is1.0.0.
- name String
- The nameof the runtime to use. Currently, the only allowed value isAPPSYNC_JS.
- runtimeVersion String
- The versionof the runtime to use. Currently, the only allowed version is1.0.0.
ResolverCachingConfig  
- Ttl double
- The TTL in seconds for a resolver that has caching activated. Valid values are 1–3,600 seconds.
- CachingKeys List<string>
- The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments,$context.source, and$context.identitymaps.
- Ttl float64
- The TTL in seconds for a resolver that has caching activated. Valid values are 1–3,600 seconds.
- CachingKeys []string
- The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments,$context.source, and$context.identitymaps.
- ttl Double
- The TTL in seconds for a resolver that has caching activated. Valid values are 1–3,600 seconds.
- cachingKeys List<String>
- The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments,$context.source, and$context.identitymaps.
- ttl number
- The TTL in seconds for a resolver that has caching activated. Valid values are 1–3,600 seconds.
- cachingKeys string[]
- The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments,$context.source, and$context.identitymaps.
- ttl float
- The TTL in seconds for a resolver that has caching activated. Valid values are 1–3,600 seconds.
- caching_keys Sequence[str]
- The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments,$context.source, and$context.identitymaps.
- ttl Number
- The TTL in seconds for a resolver that has caching activated. Valid values are 1–3,600 seconds.
- cachingKeys List<String>
- The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments,$context.source, and$context.identitymaps.
ResolverLambdaConflictHandlerConfig    
- LambdaConflict stringHandler Arn 
- The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.
- LambdaConflict stringHandler Arn 
- The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.
- lambdaConflict StringHandler Arn 
- The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.
- lambdaConflict stringHandler Arn 
- The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.
- lambda_conflict_ strhandler_ arn 
- The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.
- lambdaConflict StringHandler Arn 
- The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.
ResolverMetricsConfig  
ResolverPipelineConfig  
- Functions List<string>
- A list of Functionobjects.
- Functions []string
- A list of Functionobjects.
- functions List<String>
- A list of Functionobjects.
- functions string[]
- A list of Functionobjects.
- functions Sequence[str]
- A list of Functionobjects.
- functions List<String>
- A list of Functionobjects.
ResolverSyncConfig  
- ConflictDetection string
- The Conflict Detection strategy to use.- VERSION: Detect conflicts based on object versions for this resolver.
- NONE: Do not detect conflicts when invoking this resolver.
 
- ConflictHandler string
- The Conflict Resolution strategy to perform in the event of a conflict.- OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
- AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
- LAMBDA: Resolve conflicts with an LAMlong function supplied in the LambdaConflictHandlerConfig.
 
- LambdaConflict Pulumi.Handler Config Aws Native. App Sync. Inputs. Resolver Lambda Conflict Handler Config 
- The LambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.
- ConflictDetection string
- The Conflict Detection strategy to use.- VERSION: Detect conflicts based on object versions for this resolver.
- NONE: Do not detect conflicts when invoking this resolver.
 
- ConflictHandler string
- The Conflict Resolution strategy to perform in the event of a conflict.- OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
- AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
- LAMBDA: Resolve conflicts with an LAMlong function supplied in the LambdaConflictHandlerConfig.
 
- LambdaConflict ResolverHandler Config Lambda Conflict Handler Config 
- The LambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.
- conflictDetection String
- The Conflict Detection strategy to use.- VERSION: Detect conflicts based on object versions for this resolver.
- NONE: Do not detect conflicts when invoking this resolver.
 
- conflictHandler String
- The Conflict Resolution strategy to perform in the event of a conflict.- OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
- AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
- LAMBDA: Resolve conflicts with an LAMlong function supplied in the LambdaConflictHandlerConfig.
 
- lambdaConflict ResolverHandler Config Lambda Conflict Handler Config 
- The LambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.
- conflictDetection string
- The Conflict Detection strategy to use.- VERSION: Detect conflicts based on object versions for this resolver.
- NONE: Do not detect conflicts when invoking this resolver.
 
- conflictHandler string
- The Conflict Resolution strategy to perform in the event of a conflict.- OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
- AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
- LAMBDA: Resolve conflicts with an LAMlong function supplied in the LambdaConflictHandlerConfig.
 
- lambdaConflict ResolverHandler Config Lambda Conflict Handler Config 
- The LambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.
- conflict_detection str
- The Conflict Detection strategy to use.- VERSION: Detect conflicts based on object versions for this resolver.
- NONE: Do not detect conflicts when invoking this resolver.
 
- conflict_handler str
- The Conflict Resolution strategy to perform in the event of a conflict.- OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
- AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
- LAMBDA: Resolve conflicts with an LAMlong function supplied in the LambdaConflictHandlerConfig.
 
- lambda_conflict_ Resolverhandler_ config Lambda Conflict Handler Config 
- The LambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.
- conflictDetection String
- The Conflict Detection strategy to use.- VERSION: Detect conflicts based on object versions for this resolver.
- NONE: Do not detect conflicts when invoking this resolver.
 
- conflictHandler String
- The Conflict Resolution strategy to perform in the event of a conflict.- OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
- AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
- LAMBDA: Resolve conflicts with an LAMlong function supplied in the LambdaConflictHandlerConfig.
 
- lambdaConflict Property MapHandler Config 
- The LambdaConflictHandlerConfigwhen configuringLAMBDAas the Conflict Handler.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.