An AppSync resolver.
import { Resolver } from 'aws-cdk-lib/aws-appsync';Or use the module namespace:
import * as appsync from 'aws-cdk-lib/aws-appsync';
// appsync.ResolverConfiguration passed to the constructor as ResolverProps.
apiRequiredIGraphqlApiThe API this resolver is attached to.
ExtendedResolverPropsdataSourceOptionalinherited from ExtendedResolverPropsBaseDataSourceThe data source this resolver is using.
Default: - No datasource
BaseResolverPropsfieldNameRequiredinherited from BaseResolverPropsstringname of the GraphQL field in the given type this resolver is attached to.
typeNameRequiredinherited from BaseResolverPropsstringname of the GraphQL type this resolver is attached to.
cachingConfigOptionalinherited from BaseResolverPropsCachingConfigThe caching configuration for this resolver.
Default: - No caching configuration
codeOptionalinherited from BaseResolverPropsCodeThe function code.
Default: - no code is used
maxBatchSizeOptionalinherited from BaseResolverPropsnumberThe maximum number of elements per batch, when using batch invoke.
Default: - No max batch size
metricsConfigOptionalinherited from BaseResolverPropsResolverMetricsConfigWhether to enable enhanced metrics Value will be ignored, if `enhancedMetricsConfig.resolverLevelMetricsBehavior` on AppSync GraphqlApi construct is set to `FULL_REQUEST_RESOLVER_METRICS`.
Default: - no metrics configuration
pipelineConfigOptionalinherited from BaseResolverPropsIFunctionConfigurationRef[]configuration of the pipeline resolver.
Default: - no pipeline resolver configuration
An empty array | undefined sets resolver to be of kind, unit
requestMappingTemplateOptionalinherited from BaseResolverPropsMappingTemplateThe request mapping template for this resolver.
Default: - No mapping template
responseMappingTemplateOptionalinherited from BaseResolverPropsMappingTemplateThe response mapping template for this resolver.
Default: - No mapping template
runtimeOptionalinherited from BaseResolverPropsFunctionRuntimeThe functions runtime.
Default: - no function runtime, VTL mapping templates used
Everything you need to know about AWS AppSync on one page. HD quality, print-friendly.
Download Free Infographicaws-appsync