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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.842Z")
@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.*; 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
-