@Stability(value=Experimental) public static final class RdsDataSource.Builder extends Object implements software.amazon.jsii.Builder<RdsDataSource>
RdsDataSource.| Modifier and Type | Method and Description |
|---|---|
RdsDataSource.Builder |
api(IGraphqlApi api)
(experimental) The API to attach this data source to.
|
RdsDataSource |
build() |
static RdsDataSource.Builder |
create(software.constructs.Construct scope,
String id) |
RdsDataSource.Builder |
databaseName(String databaseName)
(experimental) The name of the database to use within the cluster.
|
RdsDataSource.Builder |
description(String description)
(experimental) the description of the data source.
|
RdsDataSource.Builder |
name(String name)
(experimental) The name of the data source.
|
RdsDataSource.Builder |
secretStore(ISecret secretStore)
(experimental) The secret containing the credentials for the database.
|
RdsDataSource.Builder |
serverlessCluster(IServerlessCluster serverlessCluster)
(experimental) The serverless cluster to call to interact with this data source.
|
RdsDataSource.Builder |
serviceRole(IRole serviceRole)
(experimental) The IAM service role to be assumed by AppSync to interact with the data source.
|
@Stability(value=Experimental) public static RdsDataSource.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.RdsDataSource.Builder.@Stability(value=Experimental) public RdsDataSource.Builder api(IGraphqlApi api)
api - The API to attach this data source to. This parameter is required.this@Stability(value=Experimental) public RdsDataSource.Builder description(String description)
Default: - None
description - the description of the data source. This parameter is required.this@Stability(value=Experimental) public RdsDataSource.Builder name(String name)
Default: - id of data source
name - The name of the data source. This parameter is required.this@Stability(value=Experimental) public RdsDataSource.Builder serviceRole(IRole serviceRole)
Default: - Create a new role
serviceRole - The IAM service role to be assumed by AppSync to interact with the data source. This parameter is required.this@Stability(value=Experimental) public RdsDataSource.Builder secretStore(ISecret secretStore)
secretStore - The secret containing the credentials for the database. This parameter is required.this@Stability(value=Experimental) public RdsDataSource.Builder serverlessCluster(IServerlessCluster serverlessCluster)
serverlessCluster - The serverless cluster to call to interact with this data source. This parameter is required.this@Stability(value=Experimental) public RdsDataSource.Builder databaseName(String databaseName)
Default: - None
databaseName - The name of the database to use within the cluster. This parameter is required.this@Stability(value=Experimental) public RdsDataSource build()
build in interface software.amazon.jsii.Builder<RdsDataSource>Copyright © 2022. All rights reserved.