Class AppSyncExtendedDataSourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.AppSyncExtendedDataSourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AppSyncExtendedDataSourceProps>
- Enclosing interface:
AppSyncExtendedDataSourceProps
@Stability(Stable)
public static final class AppSyncExtendedDataSourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<AppSyncExtendedDataSourceProps>
A builder for
AppSyncExtendedDataSourceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dynamoDbConfig(IResolvable dynamoDbConfig) Sets the value ofAppSyncExtendedDataSourceProps.getDynamoDbConfig()dynamoDbConfig(CfnDataSource.DynamoDBConfigProperty dynamoDbConfig) Sets the value ofAppSyncExtendedDataSourceProps.getDynamoDbConfig()eventBridgeConfig(IResolvable eventBridgeConfig) Sets the value ofAppSyncExtendedDataSourceProps.getEventBridgeConfig()eventBridgeConfig(CfnDataSource.EventBridgeConfigProperty eventBridgeConfig) Sets the value ofAppSyncExtendedDataSourceProps.getEventBridgeConfig()httpConfig(IResolvable httpConfig) Sets the value ofAppSyncExtendedDataSourceProps.getHttpConfig()httpConfig(CfnDataSource.HttpConfigProperty httpConfig) Sets the value ofAppSyncExtendedDataSourceProps.getHttpConfig()lambdaConfig(IResolvable lambdaConfig) Sets the value ofAppSyncExtendedDataSourceProps.getLambdaConfig()lambdaConfig(CfnDataSource.LambdaConfigProperty lambdaConfig) Sets the value ofAppSyncExtendedDataSourceProps.getLambdaConfig()openSearchServiceConfig(IResolvable openSearchServiceConfig) Sets the value ofAppSyncExtendedDataSourceProps.getOpenSearchServiceConfig()openSearchServiceConfig(CfnDataSource.OpenSearchServiceConfigProperty openSearchServiceConfig) Sets the value ofAppSyncExtendedDataSourceProps.getOpenSearchServiceConfig()relationalDatabaseConfig(IResolvable relationalDatabaseConfig) Sets the value ofAppSyncExtendedDataSourceProps.getRelationalDatabaseConfig()relationalDatabaseConfig(CfnDataSource.RelationalDatabaseConfigProperty relationalDatabaseConfig) Sets the value ofAppSyncExtendedDataSourceProps.getRelationalDatabaseConfig()type(AppSyncDataSourceType type) Sets the value ofAppSyncExtendedDataSourceProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofAppSyncExtendedDataSourceProps.getType()- Parameters:
type- The type of the AppSync datasource. This parameter is required.- Returns:
this
-
dynamoDbConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder dynamoDbConfig(IResolvable dynamoDbConfig) Sets the value ofAppSyncExtendedDataSourceProps.getDynamoDbConfig()- Parameters:
dynamoDbConfig- Configuration for DynamoDB Datasource.- Returns:
this
-
dynamoDbConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder dynamoDbConfig(CfnDataSource.DynamoDBConfigProperty dynamoDbConfig) Sets the value ofAppSyncExtendedDataSourceProps.getDynamoDbConfig()- Parameters:
dynamoDbConfig- Configuration for DynamoDB Datasource.- Returns:
this
-
eventBridgeConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder eventBridgeConfig(IResolvable eventBridgeConfig) Sets the value ofAppSyncExtendedDataSourceProps.getEventBridgeConfig()- Parameters:
eventBridgeConfig- Configuration for EventBridge Datasource.- Returns:
this
-
eventBridgeConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder eventBridgeConfig(CfnDataSource.EventBridgeConfigProperty eventBridgeConfig) Sets the value ofAppSyncExtendedDataSourceProps.getEventBridgeConfig()- Parameters:
eventBridgeConfig- Configuration for EventBridge Datasource.- Returns:
this
-
httpConfig
Sets the value ofAppSyncExtendedDataSourceProps.getHttpConfig()- Parameters:
httpConfig- Configuration for HTTP Datasource.- Returns:
this
-
httpConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder httpConfig(CfnDataSource.HttpConfigProperty httpConfig) Sets the value ofAppSyncExtendedDataSourceProps.getHttpConfig()- Parameters:
httpConfig- Configuration for HTTP Datasource.- Returns:
this
-
lambdaConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder lambdaConfig(IResolvable lambdaConfig) Sets the value ofAppSyncExtendedDataSourceProps.getLambdaConfig()- Parameters:
lambdaConfig- Configuration for Lambda Datasource.- Returns:
this
-
lambdaConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder lambdaConfig(CfnDataSource.LambdaConfigProperty lambdaConfig) Sets the value ofAppSyncExtendedDataSourceProps.getLambdaConfig()- Parameters:
lambdaConfig- Configuration for Lambda Datasource.- Returns:
this
-
openSearchServiceConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder openSearchServiceConfig(IResolvable openSearchServiceConfig) Sets the value ofAppSyncExtendedDataSourceProps.getOpenSearchServiceConfig()- Parameters:
openSearchServiceConfig- Configuration for OpenSearch data source.- Returns:
this
-
openSearchServiceConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder openSearchServiceConfig(CfnDataSource.OpenSearchServiceConfigProperty openSearchServiceConfig) Sets the value ofAppSyncExtendedDataSourceProps.getOpenSearchServiceConfig()- Parameters:
openSearchServiceConfig- Configuration for OpenSearch data source.- Returns:
this
-
relationalDatabaseConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder relationalDatabaseConfig(IResolvable relationalDatabaseConfig) Sets the value ofAppSyncExtendedDataSourceProps.getRelationalDatabaseConfig()- Parameters:
relationalDatabaseConfig- Configuration for RDS Datasource.- Returns:
this
-
relationalDatabaseConfig
@Stability(Stable) public AppSyncExtendedDataSourceProps.Builder relationalDatabaseConfig(CfnDataSource.RelationalDatabaseConfigProperty relationalDatabaseConfig) Sets the value ofAppSyncExtendedDataSourceProps.getRelationalDatabaseConfig()- Parameters:
relationalDatabaseConfig- Configuration for RDS Datasource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AppSyncExtendedDataSourceProps>- Returns:
- a new instance of
AppSyncExtendedDataSourceProps - Throws:
NullPointerException- if any required attribute was not provided
-