Class AppSyncLambdaDataSourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.AppSyncLambdaDataSourceProps.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<AppSyncLambdaDataSourceProps>
- Enclosing interface:
- AppSyncLambdaDataSourceProps
@Stability(Stable)
public static final class AppSyncLambdaDataSourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<AppSyncLambdaDataSourceProps>
A builder for 
AppSyncLambdaDataSourceProps- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionSets the value ofAppSyncBaseDataSourceProps.getApi()build()Builds the configured instance.description(String description) Sets the value ofAppSyncBaseDataSourceProps.getDescription()lambdaFunction(IFunction lambdaFunction) Sets the value ofAppSyncLambdaDataSourceProps.getLambdaFunction()Sets the value ofAppSyncBaseDataSourceProps.getName()serviceRole(IRole serviceRole) Sets the value ofAppSyncBackedDataSourceProps.getServiceRole()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
lambdaFunction@Stability(Stable) public AppSyncLambdaDataSourceProps.Builder lambdaFunction(IFunction lambdaFunction) Sets the value ofAppSyncLambdaDataSourceProps.getLambdaFunction()- Parameters:
- lambdaFunction- The Lambda function to call to interact with this data source. This parameter is required.
- Returns:
- this
 
- 
serviceRoleSets the value ofAppSyncBackedDataSourceProps.getServiceRole()- Parameters:
- serviceRole- The IAM service role to be assumed by AppSync to interact with the data source.
- Returns:
- this
 
- 
apiSets the value ofAppSyncBaseDataSourceProps.getApi()- Parameters:
- api- The API to attach this data source to. This parameter is required.
- Returns:
- this
 
- 
descriptionSets the value ofAppSyncBaseDataSourceProps.getDescription()- Parameters:
- description- The description of the data source.
- Returns:
- this
 
- 
nameSets the value ofAppSyncBaseDataSourceProps.getName()- Parameters:
- name- The name of the data source. The only allowed pattern is: {[_A-Za-z][_0-9A-Za-z]*}. Any invalid characters will be automatically removed.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<AppSyncLambdaDataSourceProps>
- Returns:
- a new instance of AppSyncLambdaDataSourceProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-