CfnResolverProps

class aws_cdk.aws_appsync.CfnResolverProps(*, api_id, caching_config=None, data_source_name=None, field_name, kind=None, pipeline_config=None, request_mapping_template=None, request_mapping_template_s3_location=None, response_mapping_template=None, response_mapping_template_s3_location=None, sync_config=None, type_name)

Bases: object

Properties for defining a AWS::AppSync::Resolver.

Parameters
  • api_id (str) – AWS::AppSync::Resolver.ApiId.

  • caching_config (Union[IResolvable, CachingConfigProperty, None]) – AWS::AppSync::Resolver.CachingConfig.

  • data_source_name (Optional[str]) – AWS::AppSync::Resolver.DataSourceName.

  • field_name (str) – AWS::AppSync::Resolver.FieldName.

  • kind (Optional[str]) – AWS::AppSync::Resolver.Kind.

  • pipeline_config (Union[IResolvable, PipelineConfigProperty, None]) – AWS::AppSync::Resolver.PipelineConfig.

  • request_mapping_template (Optional[str]) – AWS::AppSync::Resolver.RequestMappingTemplate.

  • request_mapping_template_s3_location (Optional[str]) – AWS::AppSync::Resolver.RequestMappingTemplateS3Location.

  • response_mapping_template (Optional[str]) – AWS::AppSync::Resolver.ResponseMappingTemplate.

  • response_mapping_template_s3_location (Optional[str]) – AWS::AppSync::Resolver.ResponseMappingTemplateS3Location.

  • sync_config (Union[IResolvable, SyncConfigProperty, None]) – AWS::AppSync::Resolver.SyncConfig.

  • type_name (str) – AWS::AppSync::Resolver.TypeName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_appsync as appsync

cfn_resolver_props = appsync.CfnResolverProps(
    api_id="apiId",
    field_name="fieldName",
    type_name="typeName",

    # the properties below are optional
    caching_config=appsync.CfnResolver.CachingConfigProperty(
        caching_keys=["cachingKeys"],
        ttl=123
    ),
    data_source_name="dataSourceName",
    kind="kind",
    pipeline_config=appsync.CfnResolver.PipelineConfigProperty(
        functions=["functions"]
    ),
    request_mapping_template="requestMappingTemplate",
    request_mapping_template_s3_location="requestMappingTemplateS3Location",
    response_mapping_template="responseMappingTemplate",
    response_mapping_template_s3_location="responseMappingTemplateS3Location",
    sync_config=appsync.CfnResolver.SyncConfigProperty(
        conflict_detection="conflictDetection",

        # the properties below are optional
        conflict_handler="conflictHandler",
        lambda_conflict_handler_config=appsync.CfnResolver.LambdaConflictHandlerConfigProperty(
            lambda_conflict_handler_arn="lambdaConflictHandlerArn"
        )
    )
)

Attributes

api_id

AWS::AppSync::Resolver.ApiId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-apiid

Return type

str

caching_config

AWS::AppSync::Resolver.CachingConfig.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-cachingconfig

Return type

Union[IResolvable, CachingConfigProperty, None]

data_source_name

AWS::AppSync::Resolver.DataSourceName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-datasourcename

Return type

Optional[str]

field_name

AWS::AppSync::Resolver.FieldName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-fieldname

Return type

str

kind

AWS::AppSync::Resolver.Kind.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-kind

Return type

Optional[str]

pipeline_config

AWS::AppSync::Resolver.PipelineConfig.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-pipelineconfig

Return type

Union[IResolvable, PipelineConfigProperty, None]

request_mapping_template

AWS::AppSync::Resolver.RequestMappingTemplate.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-requestmappingtemplate

Return type

Optional[str]

request_mapping_template_s3_location

AWS::AppSync::Resolver.RequestMappingTemplateS3Location.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-requestmappingtemplates3location

Return type

Optional[str]

response_mapping_template

AWS::AppSync::Resolver.ResponseMappingTemplate.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-responsemappingtemplate

Return type

Optional[str]

response_mapping_template_s3_location

AWS::AppSync::Resolver.ResponseMappingTemplateS3Location.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-responsemappingtemplates3location

Return type

Optional[str]

sync_config

AWS::AppSync::Resolver.SyncConfig.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-syncconfig

Return type

Union[IResolvable, SyncConfigProperty, None]

type_name

AWS::AppSync::Resolver.TypeName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-resolver.html#cfn-appsync-resolver-typename

Return type

str