Interface IRdsDataSourcePropsV2
Properties for an AppSync RDS datasource Aurora Serverless V2.
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IRdsDataSourcePropsV2 : IBackedDataSourceProps, IBaseDataSourceProps
Syntax (vb)
Public Interface IRdsDataSourcePropsV2 Inherits IBackedDataSourceProps, IBaseDataSourceProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.AWS.RDS;
using Amazon.CDK.AWS.SecretsManager;
using Amazon.CDK.Interfaces.AppSync;
DatabaseCluster databaseCluster;
IGraphQLApiRef graphQLApiRef;
Role role;
Secret secret;
var rdsDataSourcePropsV2 = new RdsDataSourcePropsV2 {
Api = graphQLApiRef,
SecretStore = secret,
ServerlessCluster = databaseCluster,
// the properties below are optional
DatabaseName = "databaseName",
Description = "description",
Name = "name",
ServiceRole = role
};
Synopsis
Properties
| DatabaseName | The name of the database to use within the cluster. |
| SecretStore | The secret containing the credentials for the database. |
| ServerlessCluster | The serverless cluster to call to interact with this data source. |
Properties
DatabaseName
The name of the database to use within the cluster.
string? DatabaseName { get; }
Property Value
Remarks
Default: - None
SecretStore
The secret containing the credentials for the database.
ISecret SecretStore { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
ServerlessCluster
The serverless cluster to call to interact with this data source.
IDatabaseCluster ServerlessCluster { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated