Class CfnFunctionConfigurationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appsync.CfnFunctionConfigurationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionConfigurationMixinProps>
- Enclosing interface:
CfnFunctionConfigurationMixinProps
@Stability(Stable)
public static final class CfnFunctionConfigurationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionConfigurationMixinProps>
A builder for
CfnFunctionConfigurationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFunctionConfigurationMixinProps.getApiId()build()Builds the configured instance.Sets the value ofCfnFunctionConfigurationMixinProps.getCode()codeS3Location(String codeS3Location) Sets the value ofCfnFunctionConfigurationMixinProps.getCodeS3Location()dataSourceName(String dataSourceName) Sets the value ofCfnFunctionConfigurationMixinProps.getDataSourceName()description(String description) Sets the value ofCfnFunctionConfigurationMixinProps.getDescription()functionVersion(String functionVersion) Sets the value ofCfnFunctionConfigurationMixinProps.getFunctionVersion()maxBatchSize(Number maxBatchSize) Sets the value ofCfnFunctionConfigurationMixinProps.getMaxBatchSize()Sets the value ofCfnFunctionConfigurationMixinProps.getName()requestMappingTemplate(String requestMappingTemplate) Sets the value ofCfnFunctionConfigurationMixinProps.getRequestMappingTemplate()requestMappingTemplateS3Location(String requestMappingTemplateS3Location) Sets the value ofCfnFunctionConfigurationMixinProps.getRequestMappingTemplateS3Location()responseMappingTemplate(String responseMappingTemplate) Sets the value ofCfnFunctionConfigurationMixinProps.getResponseMappingTemplate()responseMappingTemplateS3Location(String responseMappingTemplateS3Location) Sets the value ofCfnFunctionConfigurationMixinProps.getRuntime()runtime(IResolvable runtime) Sets the value ofCfnFunctionConfigurationMixinProps.getRuntime()Sets the value ofCfnFunctionConfigurationMixinProps.getSyncConfig()syncConfig(IResolvable syncConfig) Sets the value ofCfnFunctionConfigurationMixinProps.getSyncConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofCfnFunctionConfigurationMixinProps.getApiId()- Parameters:
apiId- The AWS AppSync GraphQL API that you want to attach using this function.- Returns:
this
-
code
Sets the value ofCfnFunctionConfigurationMixinProps.getCode()- Parameters:
code- Theresolvercode that contains the request and response functions. When code is used, theruntimeis required. The runtime value must beAPPSYNC_JS.- Returns:
this
-
codeS3Location
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder codeS3Location(String codeS3Location) Sets the value ofCfnFunctionConfigurationMixinProps.getCodeS3Location()- Parameters:
codeS3Location- The Amazon S3 endpoint.- Returns:
this
-
dataSourceName
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder dataSourceName(String dataSourceName) Sets the value ofCfnFunctionConfigurationMixinProps.getDataSourceName()- Parameters:
dataSourceName- The name of data source this function will attach.- Returns:
this
-
description
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder description(String description) Sets the value ofCfnFunctionConfigurationMixinProps.getDescription()- Parameters:
description- TheFunctiondescription.- Returns:
this
-
functionVersion
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder functionVersion(String functionVersion) Sets the value ofCfnFunctionConfigurationMixinProps.getFunctionVersion()- Parameters:
functionVersion- The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.- Returns:
this
-
maxBatchSize
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder maxBatchSize(Number maxBatchSize) Sets the value ofCfnFunctionConfigurationMixinProps.getMaxBatchSize()- Parameters:
maxBatchSize- The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvokeoperation.- Returns:
this
-
name
Sets the value ofCfnFunctionConfigurationMixinProps.getName()- Parameters:
name- The name of the function.- Returns:
this
-
requestMappingTemplate
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder requestMappingTemplate(String requestMappingTemplate) Sets the value ofCfnFunctionConfigurationMixinProps.getRequestMappingTemplate()- Parameters:
requestMappingTemplate- TheFunctionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template.- Returns:
this
-
requestMappingTemplateS3Location
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder requestMappingTemplateS3Location(String requestMappingTemplateS3Location) Sets the value ofCfnFunctionConfigurationMixinProps.getRequestMappingTemplateS3Location()- Parameters:
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.- Returns:
this
-
responseMappingTemplate
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder responseMappingTemplate(String responseMappingTemplate) Sets the value ofCfnFunctionConfigurationMixinProps.getResponseMappingTemplate()- Parameters:
responseMappingTemplate- TheFunctionresponse mapping template.- Returns:
this
-
responseMappingTemplateS3Location
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder responseMappingTemplateS3Location(String responseMappingTemplateS3Location) - Parameters:
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.- Returns:
this
-
runtime
Sets the value ofCfnFunctionConfigurationMixinProps.getRuntime()- Parameters:
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.- Returns:
this
-
runtime
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder runtime(CfnFunctionConfigurationPropsMixin.AppSyncRuntimeProperty runtime) Sets the value ofCfnFunctionConfigurationMixinProps.getRuntime()- Parameters:
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.- Returns:
this
-
syncConfig
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder syncConfig(IResolvable syncConfig) Sets the value ofCfnFunctionConfigurationMixinProps.getSyncConfig()- Parameters:
syncConfig- Describes a Sync configuration for a resolver. Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.- Returns:
this
-
syncConfig
@Stability(Stable) public CfnFunctionConfigurationMixinProps.Builder syncConfig(CfnFunctionConfigurationPropsMixin.SyncConfigProperty syncConfig) Sets the value ofCfnFunctionConfigurationMixinProps.getSyncConfig()- Parameters:
syncConfig- Describes a Sync configuration for a resolver. Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionConfigurationMixinProps>- Returns:
- a new instance of
CfnFunctionConfigurationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-