Interface RdsDataSourcePropsV2
- All Superinterfaces:
BackedDataSourceProps,BaseDataSourceProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RdsDataSourcePropsV2.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:05.330Z")
@Stability(Stable)
public interface RdsDataSourcePropsV2
extends software.amazon.jsii.JsiiSerializable, BackedDataSourceProps
Properties for an AppSync RDS datasource Aurora Serverless V2.
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.*;
DatabaseCluster databaseCluster;
GraphqlApi graphqlApi;
Role role;
Secret secret;
RdsDataSourcePropsV2 rdsDataSourcePropsV2 = RdsDataSourcePropsV2.builder()
.api(graphqlApi)
.secretStore(secret)
.serverlessCluster(databaseCluster)
// the properties below are optional
.databaseName("databaseName")
.description("description")
.name("name")
.serviceRole(role)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRdsDataSourcePropsV2static final classAn implementation forRdsDataSourcePropsV2 -
Method Summary
Modifier and TypeMethodDescriptionstatic RdsDataSourcePropsV2.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
RdsDataSourcePropsV2.BuilderofRdsDataSourcePropsV2
-