@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-09T19:25:26.074Z") @Stability(value=Experimental) public interface DatabaseOptions extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DatabaseOptions.Builder
A builder for
DatabaseOptions |
static class |
DatabaseOptions.Jsii$Proxy
An implementation for
DatabaseOptions |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseOptions.Builder |
builder() |
default ISecret |
getAdminUser()
(experimental) The secret containing credentials to a Redshift user with administrator privileges.
|
ICluster |
getCluster()
(experimental) The cluster containing the database.
|
String |
getDatabaseName()
(experimental) The name of the database.
|
@Stability(value=Experimental) @NotNull ICluster getCluster()
@Stability(value=Experimental) @NotNull String getDatabaseName()
@Stability(value=Experimental) @Nullable default ISecret getAdminUser()
Secret JSON schema: { username: string; password: string }.
Default: - the admin secret is taken from the cluster
@Stability(value=Experimental) static DatabaseOptions.Builder builder()
DatabaseOptions.Builder of DatabaseOptionsCopyright © 2022. All rights reserved.