Class CfnFunctionConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionConfiguration>
- Enclosing class:
CfnFunctionConfiguration
CfnFunctionConfiguration
.-
Method Summary
Modifier and TypeMethodDescriptionThe AWS AppSync GraphQL API that you want to attach using this function.build()
Theresolver
code that contains the request and response functions.codeS3Location
(String codeS3Location) The Amazon S3 endpoint.dataSourceName
(String dataSourceName) The name of data source this function will attach.description
(String description) TheFunction
description.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 aBatchInvoke
operation.The name of the function.requestMappingTemplate
(String requestMappingTemplate) TheFunction
request mapping template.requestMappingTemplateS3Location
(String requestMappingTemplateS3Location) Describes a Sync configuration for a resolver.responseMappingTemplate
(String responseMappingTemplate) TheFunction
response mapping template.responseMappingTemplateS3Location
(String responseMappingTemplateS3Location) The location of a response mapping template in an Amazon S3 bucket.runtime
(IResolvable runtime) Describes a runtime used by an AWS AppSync resolver or AWS AppSync function.Describes a runtime used by an AWS AppSync resolver or AWS AppSync function.syncConfig
(IResolvable syncConfig) Describes a Sync configuration for a resolver.Describes a Sync configuration for a resolver.
-
Method Details
-
create
@Stability(Stable) public static CfnFunctionConfiguration.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnFunctionConfiguration.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:
-
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:
-
name
The name of the function.- Parameters:
name
- The name of the function. This parameter is required.- Returns:
this
- See Also:
-
code
Theresolver
code that contains the request and response functions.When code is used, the
runtime
is required. The runtime value must beAPPSYNC_JS
.- Parameters:
code
- Theresolver
code that contains the request and response functions. This parameter is required.- Returns:
this
- See Also:
-
codeS3Location
The Amazon S3 endpoint.- Parameters:
codeS3Location
- The Amazon S3 endpoint. This parameter is required.- Returns:
this
- See Also:
-
description
TheFunction
description.- Parameters:
description
- TheFunction
description. This parameter is required.- Returns:
this
- See Also:
-
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
The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvoke
operation.- Parameters:
maxBatchSize
- The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in aBatchInvoke
operation. This parameter is required.- Returns:
this
- See Also:
-
requestMappingTemplate
@Stability(Stable) public CfnFunctionConfiguration.Builder requestMappingTemplate(String requestMappingTemplate) TheFunction
request mapping template.Functions support only the 2018-05-29 version of the request mapping template.
- Parameters:
requestMappingTemplate
- TheFunction
request mapping template. This parameter is required.- Returns:
this
- See Also:
-
requestMappingTemplateS3Location
@Stability(Stable) public CfnFunctionConfiguration.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 CfnFunctionConfiguration.Builder responseMappingTemplate(String responseMappingTemplate) TheFunction
response mapping template.- Parameters:
responseMappingTemplate
- TheFunction
response mapping template. This parameter is required.- Returns:
this
- See Also:
-
responseMappingTemplateS3Location
@Stability(Stable) public CfnFunctionConfiguration.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 CfnFunctionConfiguration.Builder runtime(CfnFunctionConfiguration.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
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 CfnFunctionConfiguration.Builder syncConfig(CfnFunctionConfiguration.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunctionConfiguration>
- Returns:
- a newly built instance of
CfnFunctionConfiguration
.
-