public static final class LambdaDataSourceProps.Builder
extends java.lang.Object
LambdaDataSourceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LambdaDataSourceProps.Builder |
api(IGraphqlApi api)
Sets the value of
BaseDataSourceProps.getApi() |
LambdaDataSourceProps |
build()
Builds the configured instance.
|
LambdaDataSourceProps.Builder |
description(java.lang.String description)
Sets the value of
BaseDataSourceProps.getDescription() |
LambdaDataSourceProps.Builder |
lambdaFunction(IFunction lambdaFunction)
Sets the value of
LambdaDataSourceProps.getLambdaFunction() |
LambdaDataSourceProps.Builder |
name(java.lang.String name)
Sets the value of
BaseDataSourceProps.getName() |
LambdaDataSourceProps.Builder |
serviceRole(IRole serviceRole)
Sets the value of
BackedDataSourceProps.getServiceRole() |
public LambdaDataSourceProps.Builder lambdaFunction(IFunction lambdaFunction)
LambdaDataSourceProps.getLambdaFunction()
lambdaFunction
- The Lambda function to call to interact with this data source. This parameter is required.this
public LambdaDataSourceProps.Builder serviceRole(IRole serviceRole)
BackedDataSourceProps.getServiceRole()
serviceRole
- The IAM service role to be assumed by AppSync to interact with the data source.this
public LambdaDataSourceProps.Builder api(IGraphqlApi api)
BaseDataSourceProps.getApi()
api
- The API to attach this data source to. This parameter is required.this
public LambdaDataSourceProps.Builder description(java.lang.String description)
BaseDataSourceProps.getDescription()
description
- the description of the data source.this
public LambdaDataSourceProps.Builder name(java.lang.String name)
BaseDataSourceProps.getName()
name
- The name of the data source.this
public LambdaDataSourceProps build()
LambdaDataSourceProps
java.lang.NullPointerException
- if any required attribute was not provided