Interface AppSyncRdsDataSourceProps
- All Superinterfaces:
AppSyncBackedDataSourceProps,AppSyncBaseDataSourceProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AppSyncRdsDataSourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:58.878Z")
@Stability(Stable)
public interface AppSyncRdsDataSourceProps
extends software.amazon.jsii.JsiiSerializable, AppSyncBackedDataSourceProps
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.*;
IApi api;
Role role;
Secret secret;
ServerlessCluster serverlessCluster;
AppSyncRdsDataSourceProps appSyncRdsDataSourceProps = AppSyncRdsDataSourceProps.builder()
.api(api)
.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 forAppSyncRdsDataSourcePropsstatic final classAn implementation forAppSyncRdsDataSourceProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.appsync.AppSyncBackedDataSourceProps
getServiceRoleMethods inherited from interface software.amazon.awscdk.services.appsync.AppSyncBaseDataSourceProps
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
AppSyncRdsDataSourceProps.BuilderofAppSyncRdsDataSourceProps
-