Interface DatabaseOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
TableProps
,UserAttributes
,UserProps
- All Known Implementing Classes:
DatabaseOptions.Jsii$Proxy
,TableProps.Jsii$Proxy
,UserAttributes.Jsii$Proxy
,UserProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:11.819Z")
@Stability(Experimental)
public interface DatabaseOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for accessing a Redshift database.
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.redshift.alpha.*; import software.amazon.awscdk.services.secretsmanager.*; Cluster cluster; Secret secret; DatabaseOptions databaseOptions = DatabaseOptions.builder() .cluster(cluster) .databaseName("databaseName") // the properties below are optional .adminUser(secret) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDatabaseOptions
static final class
An implementation forDatabaseOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseOptions.Builder
builder()
default ISecret
(experimental) The secret containing credentials to a Redshift user with administrator privileges.(experimental) The cluster containing the database.(experimental) The name of the database.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCluster
(experimental) The cluster containing the database. -
getDatabaseName
(experimental) The name of the database. -
getAdminUser
(experimental) The secret containing credentials to a Redshift user with administrator privileges.Secret JSON schema:
{ username: string; password: string }
.Default: - the admin secret is taken from the cluster
-
builder
- Returns:
- a
DatabaseOptions.Builder
ofDatabaseOptions
-