Interface IResolverProps
(experimental) Additional property for an AppSync resolver for GraphQL API reference.
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.AWS.AppSync.dll
Syntax (csharp)
public interface IResolverProps : IExtendedResolverProps, IBaseResolverProps
Syntax (vb)
Public Interface IResolverProps
Inherits 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
Properties
Api | (experimental) The API this resolver is attached to. |
Properties
Api
(experimental) The API this resolver is attached to.
IGraphqlApi Api { get; }
Property Value
Remarks
Stability: Experimental