Class LambdaDataSource.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.LambdaDataSource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaDataSource>
- Enclosing class:
LambdaDataSource
@Stability(Stable)
public static final class LambdaDataSource.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaDataSource>
A fluent builder for
LambdaDataSource
.-
Method Summary
Modifier and TypeMethodDescriptionapi
(IGraphqlApi api) The API to attach this data source to.build()
static LambdaDataSource.Builder
description
(String description) the description of the data source.lambdaFunction
(IFunction lambdaFunction) The Lambda function to call to interact with this data source.The name of the data source.serviceRole
(IRole serviceRole) The IAM service role to be assumed by AppSync to interact with the data source.
-
Method Details
-
create
@Stability(Stable) public static LambdaDataSource.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
LambdaDataSource.Builder
.
-
api
The API to attach this data source to.- Parameters:
api
- The API to attach this data source to. This parameter is required.- Returns:
this
-
description
the description of the data source.Default: - None
- Parameters:
description
- the description of the data source. This parameter is required.- Returns:
this
-
name
The name of the data source.Default: - id of data source
- Parameters:
name
- The name of the data source. This parameter is required.- Returns:
this
-
serviceRole
The IAM service role to be assumed by AppSync to interact with the data source.Default: - Create a new role
- Parameters:
serviceRole
- The IAM service role to be assumed by AppSync to interact with the data source. This parameter is required.- Returns:
this
-
lambdaFunction
The Lambda function to call to interact with this data source.- Parameters:
lambdaFunction
- The Lambda function to call to interact with this data source. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LambdaDataSource>
- Returns:
- a newly built instance of
LambdaDataSource
.
-