Class CfnResolverPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.appsync.CfnResolverPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:56.003Z")
@Stability(Stable)
public class CfnResolverPropsMixin
extends Mixin
implements software.constructs.IMixin
The
AWS::AppSync::Resolver resource defines the logical GraphQL resolver that you attach to fields in a schema.
Request and response templates for resolvers are written in Apache Velocity Template Language (VTL) format. For more information about resolvers, see Resolver Mapping Template Reference .
When you submit an update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template. To cause this resource to be updated you must change a property value for this resource in the CloudFormation template. Changing the Amazon S3 file content without changing a property value will not result in an update operation.
See Update Behaviors of Stack Resources in the AWS CloudFormation User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.appsync.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnResolverPropsMixin cfnResolverPropsMixin = CfnResolverPropsMixin.Builder.create(CfnResolverMixinProps.builder()
.apiId("apiId")
.cachingConfig(CachingConfigProperty.builder()
.cachingKeys(List.of("cachingKeys"))
.ttl(123)
.build())
.code("code")
.codeS3Location("codeS3Location")
.dataSourceName("dataSourceName")
.fieldName("fieldName")
.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")
.conflictHandler("conflictHandler")
.lambdaConflictHandlerConfig(LambdaConflictHandlerConfigProperty.builder()
.lambdaConflictHandlerArn("lambdaConflictHandlerArn")
.build())
.build())
.typeName("typeName")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDescribes a runtime used by an AWS AppSync resolver or AWS AppSync function.static final classA fluent builder forCfnResolverPropsMixin.static interfaceThe caching configuration for a resolver that has caching activated.static interfaceTheLambdaConflictHandlerConfigwhen configuring LAMBDA as the Conflict Handler.static interfaceUse thePipelineConfigproperty type to specifyPipelineConfigfor an AWS AppSync resolver.static interfaceDescribes a Sync configuration for a resolver.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::AppSync::Resolver.CfnResolverPropsMixin(CfnResolverMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::AppSync::Resolver.protectedCfnResolverPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnResolverPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnResolverMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnResolverPropsMixin
protected CfnResolverPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnResolverPropsMixin
protected CfnResolverPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnResolverPropsMixin
@Stability(Stable) public CfnResolverPropsMixin(@NotNull CfnResolverMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::AppSync::Resolver.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnResolverPropsMixin
Create a mixin to apply properties toAWS::AppSync::Resolver.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-