@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:21.850Z") @Stability(value=Experimental) public interface DatabaseClusterProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
DatabaseClusterProps.Builder
A builder for
DatabaseClusterProps |
static class |
DatabaseClusterProps.Jsii$Proxy
An implementation for
DatabaseClusterProps |
| Modifier and Type | Method and Description |
|---|---|
static DatabaseClusterProps.Builder |
builder() |
default BackupProps |
getBackup()
(experimental) Backup settings.
|
default List<String> |
getCloudwatchLogsExports()
(experimental) The list of log types that need to be enabled for exporting to CloudWatch Logs.
|
default RetentionDays |
getCloudwatchLogsRetention()
(experimental) The number of days log events are kept in CloudWatch Logs.
|
default IRole |
getCloudwatchLogsRetentionRole()
(experimental) The IAM role for the Lambda function associated with the custom resource that sets the retention policy.
|
default String |
getClusterIdentifier()
(experimental) An optional identifier for the cluster.
|
default Credentials |
getCredentials()
(experimental) Credentials for the administrative user.
|
default String |
getDefaultDatabaseName()
(experimental) Name of a database which is automatically created inside the cluster.
|
default Boolean |
getDeletionProtection()
(experimental) Indicates whether the DB cluster should have deletion protection enabled.
|
IClusterEngine |
getEngine()
(experimental) What kind of database to start.
|
default Boolean |
getIamAuthentication()
(experimental) Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.
|
default String |
getInstanceIdentifierBase()
(experimental) Base identifier for instances.
|
InstanceProps |
getInstanceProps()
(experimental) Settings for the individual instances that are launched.
|
default Number |
getInstances()
(experimental) How many replicas/instances to create.
|
default Duration |
getMonitoringInterval()
(experimental) The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.
|
default IRole |
getMonitoringRole()
(experimental) Role that will be used to manage DB instances monitoring.
|
default IParameterGroup |
getParameterGroup()
(experimental) Additional parameters to pass to the database engine.
|
default Number |
getPort()
(experimental) What port to listen on.
|
default String |
getPreferredMaintenanceWindow()
(experimental) A preferred maintenance window day/time range.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
|
default List<IBucket> |
getS3ExportBuckets()
(experimental) S3 buckets that you want to load data into.
|
default IRole |
getS3ExportRole()
(experimental) Role that will be associated with this DB cluster to enable S3 export.
|
default List<IBucket> |
getS3ImportBuckets()
(experimental) S3 buckets that you want to load data from.
|
default IRole |
getS3ImportRole()
(experimental) Role that will be associated with this DB cluster to enable S3 import.
|
default Boolean |
getStorageEncrypted()
(experimental) Whether to enable storage encryption.
|
default IKey |
getStorageEncryptionKey()
(experimental) The KMS key for storage encryption.
|
default ISubnetGroup |
getSubnetGroup()
(experimental) Existing subnet group for the cluster.
|
@Stability(value=Experimental) @NotNull IClusterEngine getEngine()
@Stability(value=Experimental) @NotNull InstanceProps getInstanceProps()
@Stability(value=Experimental) @Nullable default BackupProps getBackup()
Default: - Backup retention period for automated backups is 1 day. Backup preferred window is set to a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow@Stability(value=Experimental) @Nullable default List<String> getCloudwatchLogsExports()
Default: - no log exports
@Stability(value=Experimental) @Nullable default RetentionDays getCloudwatchLogsRetention()
When updating
this property, unsetting it doesn't remove the log retention policy. To
remove the retention policy, set the value to Infinity.
Default: - logs never expire
@Stability(value=Experimental) @Nullable default IRole getCloudwatchLogsRetentionRole()
Default: - a new role is created.
@Stability(value=Experimental) @Nullable default String getClusterIdentifier()
Default: - A name is automatically generated.
@Stability(value=Experimental) @Nullable default Credentials getCredentials()
Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password
@Stability(value=Experimental) @Nullable default String getDefaultDatabaseName()
Default: - Database is not created in cluster.
@Stability(value=Experimental) @Nullable default Boolean getDeletionProtection()
Default: - true if ``removalPolicy`` is RETAIN, false otherwise
@Stability(value=Experimental) @Nullable default Boolean getIamAuthentication()
Default: false
@Stability(value=Experimental) @Nullable default String getInstanceIdentifierBase()
Every replica is named by appending the replica number to this string, 1-based.
Default: - clusterIdentifier is used with the word "Instance" appended. If clusterIdentifier is not provided, the identifier is automatically generated.
@Stability(value=Experimental) @Nullable default Number getInstances()
Has to be at least 1.
Default: 2
@Stability(value=Experimental) @Nullable default Duration getMonitoringInterval()
Default: no enhanced monitoring
@Stability(value=Experimental) @Nullable default IRole getMonitoringRole()
Default: - A role is automatically created for you
@Stability(value=Experimental) @Nullable default IParameterGroup getParameterGroup()
Default: - No parameter group.
@Stability(value=Experimental) @Nullable default Number getPort()
Default: - The default for the engine is used.
@Stability(value=Experimental) @Nullable default String getPreferredMaintenanceWindow()
Example: 'Sun:23:45-Mon:00:15'
Default: - 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
Default: - RemovalPolicy.SNAPSHOT (remove the cluster and instances, but retain a snapshot of the data)
@Stability(value=Experimental) @Nullable default List<IBucket> getS3ExportBuckets()
This property must not be used if s3ExportRole is used.
For MySQL:
Default: - None
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/postgresql-s3-export.html@Stability(value=Experimental) @Nullable default IRole getS3ExportRole()
This feature is only supported by the Aurora database engine.
This property must not be used if s3ExportBuckets is used.
For MySQL:
Default: - New role is created if `s3ExportBuckets` is set, no role is defined otherwise
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/postgresql-s3-export.html@Stability(value=Experimental) @Nullable default List<IBucket> getS3ImportBuckets()
This property must not be used if s3ImportRole is used.
For MySQL:
Default: - None
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Migrating.html@Stability(value=Experimental) @Nullable default IRole getS3ImportRole()
This feature is only supported by the Aurora database engine.
This property must not be used if s3ImportBuckets is used.
For MySQL:
Default: - New role is created if `s3ImportBuckets` is set, no role is defined otherwise
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Migrating.html@Stability(value=Experimental) @Nullable default Boolean getStorageEncrypted()
Default: - true if storageEncryptionKey is provided, false otherwise
@Stability(value=Experimental) @Nullable default IKey getStorageEncryptionKey()
If specified, {@link storageEncrypted} will be set to true.
Default: - if storageEncrypted is true then the default master key, no key otherwise
@Stability(value=Experimental) @Nullable default ISubnetGroup getSubnetGroup()
Default: - a new subnet group will be created.
@Stability(value=Experimental) static DatabaseClusterProps.Builder builder()
DatabaseClusterProps.Builder of DatabaseClusterPropsCopyright © 2021. All rights reserved.