@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:48.822Z") @Stability(value=Stable) public interface DatabaseInstanceProps extends software.amazon.jsii.JsiiSerializable, DatabaseInstanceSourceProps
Example:
Vpc vpc;
IInstanceEngine engine = DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder().version(PostgresEngineVersion.VER_12_3).build());
DatabaseInstance.Builder.create(this, "InstanceWithUsername")
.engine(engine)
.vpc(vpc)
.credentials(Credentials.fromGeneratedSecret("postgres"))
.build();
DatabaseInstance.Builder.create(this, "InstanceWithUsernameAndPassword")
.engine(engine)
.vpc(vpc)
.credentials(Credentials.fromPassword("postgres", SecretValue.ssmSecure("/dbPassword", "1")))
.build();
ISecret mySecret = Secret.fromSecretName(this, "DBSecret", "myDBLoginInfo");
DatabaseInstance.Builder.create(this, "InstanceWithSecretLogin")
.engine(engine)
.vpc(vpc)
.credentials(Credentials.fromSecret(mySecret))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DatabaseInstanceProps.Builder
A builder for
DatabaseInstanceProps |
static class |
DatabaseInstanceProps.Jsii$Proxy
An implementation for
DatabaseInstanceProps |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseInstanceProps.Builder |
builder() |
default String |
getCharacterSetName()
For supported engines, specifies the character set to associate with the DB instance.
|
default Credentials |
getCredentials()
Credentials for the administrative user.
|
default Boolean |
getStorageEncrypted()
Indicates whether the DB instance is encrypted.
|
default IKey |
getStorageEncryptionKey()
The KMS key that's used to encrypt the DB instance.
|
getAllocatedStorage, getAllowMajorVersionUpgrade, getDatabaseName, getEngine, getInstanceType, getLicenseModel, getParameters, getTimezonegetAutoMinorVersionUpgrade, getAvailabilityZone, getBackupRetention, getCloudwatchLogsExports, getCloudwatchLogsRetention, getCloudwatchLogsRetentionRole, getCopyTagsToSnapshot, getDeleteAutomatedBackups, getDeletionProtection, getDomain, getDomainRole, getEnablePerformanceInsights, getIamAuthentication, getInstanceIdentifier, getIops, getMaxAllocatedStorage, getMonitoringInterval, getMonitoringRole, getMultiAz, getOptionGroup, getParameterGroup, getPerformanceInsightEncryptionKey, getPerformanceInsightRetention, getPort, getPreferredBackupWindow, getPreferredMaintenanceWindow, getProcessorFeatures, getPubliclyAccessible, getRemovalPolicy, getS3ExportBuckets, getS3ExportRole, getS3ImportBuckets, getS3ImportRole, getSecurityGroups, getStorageType, getSubnetGroup, getVpc, getVpcPlacement, getVpcSubnets@Stability(value=Stable) @Nullable default String getCharacterSetName()
Default: - RDS default character set name
@Stability(value=Stable) @Nullable default Credentials getCredentials()
Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password
@Stability(value=Stable) @Nullable default Boolean getStorageEncrypted()
Default: - true if storageEncryptionKey has been provided, false otherwise
@Stability(value=Stable) @Nullable default IKey getStorageEncryptionKey()
Default: - default master key if storageEncrypted is true, no key otherwise
@Stability(value=Stable) static DatabaseInstanceProps.Builder builder()
builder in interface DatabaseInstanceNewPropsbuilder in interface DatabaseInstanceSourcePropsDatabaseInstanceProps.Builder of DatabaseInstancePropsCopyright © 2022. All rights reserved.