Class ExtendedResolverProps
Additional property for an AppSync resolver for data source reference.
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ExtendedResolverProps : IExtendedResolverProps, IBaseResolverProps
Syntax (vb)
Public Class ExtendedResolverProps Implements IExtendedResolverProps, IBaseResolverProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.AppSync;
using Amazon.CDK.Interfaces.AppSync;
BaseDataSource baseDataSource;
Code code;
IFunctionConfigurationRef functionConfigurationRef;
FunctionRuntime functionRuntime;
MappingTemplate mappingTemplate;
var extendedResolverProps = new ExtendedResolverProps {
FieldName = "fieldName",
TypeName = "typeName",
// the properties below are optional
CachingConfig = new CachingConfig {
Ttl = Duration.Minutes(30),
// the properties below are optional
CachingKeys = new [] { "cachingKeys" }
},
Code = code,
DataSource = baseDataSource,
MaxBatchSize = 123,
PipelineConfig = new [] { functionConfigurationRef },
RequestMappingTemplate = mappingTemplate,
ResponseMappingTemplate = mappingTemplate,
Runtime = functionRuntime
};
Synopsis
Constructors
| ExtendedResolverProps() | Additional property for an AppSync resolver for data source reference. |
Properties
| CachingConfig | The caching configuration for this resolver. |
| Code | The function code. |
| DataSource | The data source this resolver is using. |
| FieldName | name of the GraphQL field in the given type this resolver is attached to. |
| MaxBatchSize | The maximum number of elements per batch, when using batch invoke. |
| PipelineConfig | configuration of the pipeline resolver. |
| RequestMappingTemplate | The request mapping template for this resolver. |
| ResponseMappingTemplate | The response mapping template for this resolver. |
| Runtime | The functions runtime. |
| TypeName | name of the GraphQL type this resolver is attached to. |
Constructors
ExtendedResolverProps()
Additional property for an AppSync resolver for data source reference.
public ExtendedResolverProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.AppSync;
using Amazon.CDK.Interfaces.AppSync;
BaseDataSource baseDataSource;
Code code;
IFunctionConfigurationRef functionConfigurationRef;
FunctionRuntime functionRuntime;
MappingTemplate mappingTemplate;
var extendedResolverProps = new ExtendedResolverProps {
FieldName = "fieldName",
TypeName = "typeName",
// the properties below are optional
CachingConfig = new CachingConfig {
Ttl = Duration.Minutes(30),
// the properties below are optional
CachingKeys = new [] { "cachingKeys" }
},
Code = code,
DataSource = baseDataSource,
MaxBatchSize = 123,
PipelineConfig = new [] { functionConfigurationRef },
RequestMappingTemplate = mappingTemplate,
ResponseMappingTemplate = mappingTemplate,
Runtime = functionRuntime
};
Properties
CachingConfig
The caching configuration for this resolver.
public ICachingConfig? CachingConfig { get; set; }
Property Value
Remarks
Default: - No caching configuration
Code
The function code.
public Code? Code { get; set; }
Property Value
Remarks
Default: - no code is used
DataSource
The data source this resolver is using.
public BaseDataSource? DataSource { get; set; }
Property Value
Remarks
Default: - No datasource
FieldName
name of the GraphQL field in the given type this resolver is attached to.
public string FieldName { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
MaxBatchSize
The maximum number of elements per batch, when using batch invoke.
public double? MaxBatchSize { get; set; }
Property Value
Remarks
Default: - No max batch size
PipelineConfig
configuration of the pipeline resolver.
public IFunctionConfigurationRef[]? PipelineConfig { get; set; }
Property Value
Remarks
Default: - no pipeline resolver configuration An empty array | undefined sets resolver to be of kind, unit
RequestMappingTemplate
The request mapping template for this resolver.
public MappingTemplate? RequestMappingTemplate { get; set; }
Property Value
Remarks
Default: - No mapping template
ResponseMappingTemplate
The response mapping template for this resolver.
public MappingTemplate? ResponseMappingTemplate { get; set; }
Property Value
Remarks
Default: - No mapping template
Runtime
The functions runtime.
public FunctionRuntime? Runtime { get; set; }
Property Value
Remarks
Default: - no function runtime, VTL mapping templates used
TypeName
name of the GraphQL type this resolver is attached to.
public string TypeName { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated