Interface RdsDataSourceProps
- All Superinterfaces:
BackedDataSourceProps,BaseDataSourceProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RdsDataSourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:45.538Z")
@Stability(Stable)
public interface RdsDataSourceProps
extends software.amazon.jsii.JsiiSerializable, BackedDataSourceProps
Properties for an AppSync RDS datasource Aurora Serverless V1.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.rds.*;
import software.amazon.awscdk.services.secretsmanager.*;
GraphqlApi graphqlApi;
Role role;
Secret secret;
ServerlessCluster serverlessCluster;
RdsDataSourceProps rdsDataSourceProps = RdsDataSourceProps.builder()
.api(graphqlApi)
.secretStore(secret)
.serverlessCluster(serverlessCluster)
// the properties below are optional
.databaseName("databaseName")
.description("description")
.name("name")
.serviceRole(role)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRdsDataSourcePropsstatic final classAn implementation forRdsDataSourceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic RdsDataSourceProps.Builderbuilder()default StringThe name of the database to use within the cluster.The secret containing the credentials for the database.The serverless cluster to call to interact with this data source.Methods inherited from interface software.amazon.awscdk.services.appsync.BackedDataSourceProps
getServiceRoleMethods inherited from interface software.amazon.awscdk.services.appsync.BaseDataSourceProps
getApi, getDescription, getNameMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSecretStore
The secret containing the credentials for the database. -
getServerlessCluster
The serverless cluster to call to interact with this data source. -
getDatabaseName
The name of the database to use within the cluster.Default: - None
-
builder
- Returns:
- a
RdsDataSourceProps.BuilderofRdsDataSourceProps
-