Interface CfnResolverProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResolverProps.Jsii$Proxy
CfnResolver
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.appsync.*; CfnResolverProps cfnResolverProps = CfnResolverProps.builder() .apiId("apiId") .fieldName("fieldName") .typeName("typeName") // the properties below are optional .cachingConfig(CachingConfigProperty.builder() .ttl(123) // the properties below are optional .cachingKeys(List.of("cachingKeys")) .build()) .code("code") .codeS3Location("codeS3Location") .dataSourceName("dataSourceName") .kind("kind") .maxBatchSize(123) .metricsConfig("metricsConfig") .pipelineConfig(PipelineConfigProperty.builder() .functions(List.of("functions")) .build()) .requestMappingTemplate("requestMappingTemplate") .requestMappingTemplateS3Location("requestMappingTemplateS3Location") .responseMappingTemplate("responseMappingTemplate") .responseMappingTemplateS3Location("responseMappingTemplateS3Location") .runtime(AppSyncRuntimeProperty.builder() .name("name") .runtimeVersion("runtimeVersion") .build()) .syncConfig(SyncConfigProperty.builder() .conflictDetection("conflictDetection") // the properties below are optional .conflictHandler("conflictHandler") .lambdaConflictHandlerConfig(LambdaConflictHandlerConfigProperty.builder() .lambdaConflictHandlerArn("lambdaConflictHandlerArn") .build()) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnResolverProps
static final class
An implementation forCfnResolverProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnResolverProps.Builder
builder()
getApiId()
The AWS AppSync GraphQL API to which you want to attach this resolver.default Object
The caching configuration for the resolver.default String
getCode()
Theresolver
code that contains the request and response functions.default String
The Amazon S3 endpoint.default String
The resolver data source name.The GraphQL field on a type that invokes the resolver.default String
getKind()
The resolver type.default Number
The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvoke
operation.default String
Enables or disables enhanced resolver metrics for specified resolvers.default Object
Functions linked with the pipeline resolver.default String
The request mapping template.default String
The location of a request mapping template in an Amazon S3 bucket.default String
The response mapping template.default String
The location of a response mapping template in an Amazon S3 bucket.default Object
Describes a runtime used by an AWS AppSync resolver or AWS AppSync function.default Object
TheSyncConfig
for a resolver attached to a versioned data source.The GraphQL type that invokes this resolver.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiId
The AWS AppSync GraphQL API to which you want to attach this resolver.- See Also:
-
getFieldName
The GraphQL field on a type that invokes the resolver.- See Also:
-
getTypeName
The GraphQL type that invokes this resolver.- See Also:
-
getCachingConfig
The caching configuration for the resolver.- See Also:
-
getCode
Theresolver
code that contains the request and response functions.When code is used, the
runtime
is required. The runtime value must beAPPSYNC_JS
.- See Also:
-
getCodeS3Location
The Amazon S3 endpoint.- See Also:
-
getDataSourceName
The resolver data source name.- See Also:
-
getKind
The resolver type.- UNIT : A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
- PIPELINE : A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
- See Also:
-
getMaxBatchSize
The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvoke
operation.- See Also:
-
getMetricsConfig
Enables or disables enhanced resolver metrics for specified resolvers.Note that
MetricsConfig
won't be used unless theresolverLevelMetricsBehavior
value is set toPER_RESOLVER_METRICS
. If theresolverLevelMetricsBehavior
is set toFULL_REQUEST_RESOLVER_METRICS
instead,MetricsConfig
will be ignored. However, you can still set its value.- See Also:
-
getPipelineConfig
Functions linked with the pipeline resolver.- See Also:
-
getRequestMappingTemplate
The request mapping template.Request mapping templates are optional when using a Lambda data source. For all other data sources, a request mapping template is required.
- See Also:
-
getRequestMappingTemplateS3Location
The location of a request mapping template in an Amazon S3 bucket.Use this if you want to provision with a template file in Amazon S3 rather than embedding it in your CloudFormation template.
- See Also:
-
getResponseMappingTemplate
The response mapping template.- See Also:
-
getResponseMappingTemplateS3Location
The location of a response mapping template in an Amazon S3 bucket.Use this if you want to provision with a template file in Amazon S3 rather than embedding it in your CloudFormation template.
- See Also:
-
getRuntime
Describes a runtime used by an AWS AppSync resolver or AWS AppSync function.Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
- See Also:
-
getSyncConfig
TheSyncConfig
for a resolver attached to a versioned data source.- See Also:
-
builder
- Returns:
- a
CfnResolverProps.Builder
ofCfnResolverProps
-