Class CfnFunctionConfigurationPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionConfigurationPropsMixin>
- Enclosing class:
CfnFunctionConfigurationPropsMixin
CfnFunctionConfigurationPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionThe AWS AppSync GraphQL API that you want to attach using this function.build()Theresolvercode that contains the request and response functions.codeS3Location(String codeS3Location) The Amazon S3 endpoint.create()create(CfnPropertyMixinOptions options) dataSourceName(String dataSourceName) The name of data source this function will attach.description(String description) TheFunctiondescription.functionVersion(String functionVersion) The version of the request mapping template.maxBatchSize(Number maxBatchSize) The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvokeoperation.The name of the function.requestMappingTemplate(String requestMappingTemplate) TheFunctionrequest mapping template.requestMappingTemplateS3Location(String requestMappingTemplateS3Location) Describes a Sync configuration for a resolver.responseMappingTemplate(String responseMappingTemplate) TheFunctionresponse mapping template.responseMappingTemplateS3Location(String responseMappingTemplateS3Location) The location of a response mapping template in an Amazon S3 bucket.Describes a runtime used by an AWS AppSync resolver or AWS AppSync function.runtime(IResolvable runtime) Describes a runtime used by an AWS AppSync resolver or AWS AppSync function.Describes a Sync configuration for a resolver.syncConfig(IResolvable syncConfig) Describes a Sync configuration for a resolver.
-
Method Details
-
create
@Stability(Stable) public static CfnFunctionConfigurationPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnFunctionConfigurationPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnFunctionConfigurationPropsMixin.Builder.
-
apiId
The AWS AppSync GraphQL API that you want to attach using this function.- Parameters:
apiId- The AWS AppSync GraphQL API that you want to attach using this function. This parameter is required.- Returns:
this- See Also:
-
code
Theresolvercode that contains the request and response functions.When code is used, the
runtimeis required. The runtime value must beAPPSYNC_JS.- Parameters:
code- Theresolvercode that contains the request and response functions. This parameter is required.- Returns:
this- See Also:
-
codeS3Location
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder codeS3Location(String codeS3Location) The Amazon S3 endpoint.- Parameters:
codeS3Location- The Amazon S3 endpoint. This parameter is required.- Returns:
this- See Also:
-
dataSourceName
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder dataSourceName(String dataSourceName) The name of data source this function will attach.- Parameters:
dataSourceName- The name of data source this function will attach. This parameter is required.- Returns:
this- See Also:
-
description
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder description(String description) TheFunctiondescription.- Parameters:
description- TheFunctiondescription. This parameter is required.- Returns:
this- See Also:
-
functionVersion
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder functionVersion(String functionVersion) The version of the request mapping template.Currently, only the 2018-05-29 version of the template is supported.
- Parameters:
functionVersion- The version of the request mapping template. This parameter is required.- Returns:
this- See Also:
-
maxBatchSize
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder maxBatchSize(Number maxBatchSize) The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvokeoperation.- Parameters:
maxBatchSize- The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvokeoperation. This parameter is required.- Returns:
this- See Also:
-
name
The name of the function.- Parameters:
name- The name of the function. This parameter is required.- Returns:
this- See Also:
-
requestMappingTemplate
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder requestMappingTemplate(String requestMappingTemplate) TheFunctionrequest mapping template.Functions support only the 2018-05-29 version of the request mapping template.
- Parameters:
requestMappingTemplate- TheFunctionrequest mapping template. This parameter is required.- Returns:
this- See Also:
-
requestMappingTemplateS3Location
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder requestMappingTemplateS3Location(String requestMappingTemplateS3Location) Describes a Sync configuration for a resolver.Contains information on which Conflict Detection, as well as Resolution strategy, should be performed when the resolver is invoked.
- Parameters:
requestMappingTemplateS3Location- Describes a Sync configuration for a resolver. This parameter is required.- Returns:
this- See Also:
-
responseMappingTemplate
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder responseMappingTemplate(String responseMappingTemplate) TheFunctionresponse mapping template.- Parameters:
responseMappingTemplate- TheFunctionresponse mapping template. This parameter is required.- Returns:
this- See Also:
-
responseMappingTemplateS3Location
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder responseMappingTemplateS3Location(String responseMappingTemplateS3Location) 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.
- Parameters:
responseMappingTemplateS3Location- The location of a response mapping template in an Amazon S3 bucket. This parameter is required.- Returns:
this- See Also:
-
runtime
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.
- Parameters:
runtime- Describes a runtime used by an AWS AppSync resolver or AWS AppSync function. This parameter is required.- Returns:
this- See Also:
-
runtime
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder runtime(CfnFunctionConfigurationPropsMixin.AppSyncRuntimeProperty runtime) 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.
- Parameters:
runtime- Describes a runtime used by an AWS AppSync resolver or AWS AppSync function. This parameter is required.- Returns:
this- See Also:
-
syncConfig
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder syncConfig(IResolvable syncConfig) Describes a Sync configuration for a resolver.Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
- Parameters:
syncConfig- Describes a Sync configuration for a resolver. This parameter is required.- Returns:
this- See Also:
-
syncConfig
@Stability(Stable) public CfnFunctionConfigurationPropsMixin.Builder syncConfig(CfnFunctionConfigurationPropsMixin.SyncConfigProperty syncConfig) Describes a Sync configuration for a resolver.Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
- Parameters:
syncConfig- Describes a Sync configuration for a resolver. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionConfigurationPropsMixin>- Returns:
- a newly built instance of
CfnFunctionConfigurationPropsMixin.
-