Interface CfnResolverProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResolverProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.461Z")
@Stability(Stable)
public interface CfnResolverProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
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)
.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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResolverPropsstatic final classAn implementation forCfnResolverProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnResolverProps.Builderbuilder()getApiId()The AWS AppSync GraphQL API to which you want to attach this resolver.default ObjectThe caching configuration for the resolver.default StringgetCode()Theresolvercode that contains the request and response functions.default StringThe Amazon S3 endpoint.default StringThe resolver data source name.The GraphQL field on a type that invokes the resolver.default StringgetKind()The resolver type.default NumberThe maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvokeoperation.default ObjectFunctions linked with the pipeline resolver.default StringThe request mapping template.default StringThe location of a request mapping template in an Amazon S3 bucket.default StringThe response mapping template.default StringThe location of a response mapping template in an Amazon S3 bucket.default ObjectDescribes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function.default ObjectTheSyncConfigfor 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. -
getFieldName
The GraphQL field on a type that invokes the resolver. -
getTypeName
The GraphQL type that invokes this resolver. -
getCachingConfig
The caching configuration for the resolver. -
getCode
Theresolvercode that contains the request and response functions.When code is used, the
runtimeis required. The runtime value must beAPPSYNC_JS. -
getCodeS3Location
The Amazon S3 endpoint. -
getDataSourceName
The resolver data source name. -
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
Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
-
getMaxBatchSize
The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvokeoperation. -
getPipelineConfig
Functions linked with the pipeline resolver. -
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.
-
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.
-
getResponseMappingTemplate
The response mapping template. -
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.
-
getRuntime
Describes a runtime used by an AWS AppSync pipeline 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.
-
getSyncConfig
TheSyncConfigfor a resolver attached to a versioned data source. -
builder
- Returns:
- a
CfnResolverProps.BuilderofCfnResolverProps
-