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();
 
  • Method Details

    • getApiId

      @Stability(Stable) @NotNull String getApiId()
      The AWS AppSync GraphQL API to which you want to attach this resolver.
    • getFieldName

      @Stability(Stable) @NotNull String getFieldName()
      The GraphQL field on a type that invokes the resolver.
    • getTypeName

      @Stability(Stable) @NotNull String getTypeName()
      The GraphQL type that invokes this resolver.
    • getCachingConfig

      @Stability(Stable) @Nullable default Object getCachingConfig()
      The caching configuration for the resolver.
    • getCode

      @Stability(Stable) @Nullable default String getCode()
      The resolver code that contains the request and response functions.

      When code is used, the runtime is required. The runtime value must be APPSYNC_JS .

    • getCodeS3Location

      @Stability(Stable) @Nullable default String getCodeS3Location()
      The Amazon S3 endpoint.
    • getDataSourceName

      @Stability(Stable) @Nullable default String getDataSourceName()
      The resolver data source name.
    • getKind

      @Stability(Stable) @Nullable default String 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.
    • getMaxBatchSize

      @Stability(Stable) @Nullable default Number getMaxBatchSize()
      The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation.
    • getPipelineConfig

      @Stability(Stable) @Nullable default Object getPipelineConfig()
      Functions linked with the pipeline resolver.
    • getRequestMappingTemplate

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default String getResponseMappingTemplate()
      The response mapping template.
    • getResponseMappingTemplateS3Location

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default Object 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

      @Stability(Stable) @Nullable default Object getSyncConfig()
      The SyncConfig for a resolver attached to a versioned data source.
    • builder

      @Stability(Stable) static CfnResolverProps.Builder builder()
      Returns:
      a CfnResolverProps.Builder of CfnResolverProps