Show / Hide Table of Contents

Class ExtendedResolverProps

Additional property for an AppSync resolver for data source reference.

Inheritance
object
ExtendedResolverProps
Implements
IExtendedResolverProps
IBaseResolverProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

ICachingConfig

Remarks

Default: - No caching configuration

Code

The function code.

public Code? Code { get; set; }
Property Value

Code

Remarks

Default: - no code is used

DataSource

The data source this resolver is using.

public BaseDataSource? DataSource { get; set; }
Property Value

BaseDataSource

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

string

Remarks

ExampleMetadata: fixture=_generated

MaxBatchSize

The maximum number of elements per batch, when using batch invoke.

public double? MaxBatchSize { get; set; }
Property Value

double?

Remarks

Default: - No max batch size

PipelineConfig

configuration of the pipeline resolver.

public IFunctionConfigurationRef[]? PipelineConfig { get; set; }
Property Value

IFunctionConfigurationRef[]

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

MappingTemplate

Remarks

Default: - No mapping template

ResponseMappingTemplate

The response mapping template for this resolver.

public MappingTemplate? ResponseMappingTemplate { get; set; }
Property Value

MappingTemplate

Remarks

Default: - No mapping template

Runtime

The functions runtime.

public FunctionRuntime? Runtime { get; set; }
Property Value

FunctionRuntime

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

string

Remarks

ExampleMetadata: fixture=_generated

Implements

IExtendedResolverProps
IBaseResolverProps
Back to top Generated by DocFX