Class ResolverProps
(experimental) Additional property for an AppSync resolver for GraphQL API reference.
Inheritance
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public class ResolverProps : Object, IResolverProps, IExtendedResolverProps, IBaseResolverProps
Syntax (vb)
Public Class ResolverProps
Inherits Object
Implements IResolverProps, IExtendedResolverProps, IBaseResolverProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
GraphqlApi api;
AppsyncFunction appsyncFunction;
var pipelineResolver = new Resolver(this, "pipeline", new ResolverProps {
Api = api,
DataSource = api.AddNoneDataSource("none"),
TypeName = "typeName",
FieldName = "fieldName",
RequestMappingTemplate = MappingTemplate.FromFile("beforeRequest.vtl"),
PipelineConfig = new [] { appsyncFunction },
ResponseMappingTemplate = MappingTemplate.FromFile("afterResponse.vtl")
});
Synopsis
Constructors
ResolverProps() |
Properties
Api | (experimental) The API this resolver is attached to. |
CachingConfig | (experimental) The caching configuration for this resolver. |
DataSource | (experimental) The data source this resolver is using. |
FieldName | (experimental) name of the GraphQL field in the given type this resolver is attached to. |
PipelineConfig | (experimental) configuration of the pipeline resolver. |
RequestMappingTemplate | (experimental) The request mapping template for this resolver. |
ResponseMappingTemplate | (experimental) The response mapping template for this resolver. |
TypeName | (experimental) name of the GraphQL type this resolver is attached to. |
Constructors
ResolverProps()
public ResolverProps()
Properties
Api
(experimental) The API this resolver is attached to.
public IGraphqlApi Api { get; set; }
Property Value
Remarks
Stability: Experimental
CachingConfig
(experimental) The caching configuration for this resolver.
public ICachingConfig CachingConfig { get; set; }
Property Value
Remarks
Default: - No caching configuration
Stability: Experimental
DataSource
(experimental) The data source this resolver is using.
public BaseDataSource DataSource { get; set; }
Property Value
Remarks
Default: - No datasource
Stability: Experimental
FieldName
(experimental) name of the GraphQL field in the given type this resolver is attached to.
public string FieldName { get; set; }
Property Value
System.String
Remarks
Stability: Experimental
PipelineConfig
(experimental) configuration of the pipeline resolver.
public IAppsyncFunction[] PipelineConfig { get; set; }
Property Value
Remarks
Default: - no pipeline resolver configuration An empty array | undefined sets resolver to be of kind, unit
Stability: Experimental
RequestMappingTemplate
(experimental) The request mapping template for this resolver.
public MappingTemplate RequestMappingTemplate { get; set; }
Property Value
Remarks
Default: - No mapping template
Stability: Experimental
ResponseMappingTemplate
(experimental) The response mapping template for this resolver.
public MappingTemplate ResponseMappingTemplate { get; set; }
Property Value
Remarks
Default: - No mapping template
Stability: Experimental
TypeName
(experimental) name of the GraphQL type this resolver is attached to.
public string TypeName { get; set; }
Property Value
System.String
Remarks
Stability: Experimental