@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-21T20:29:03.109Z") @Stability(value=Stable) public interface DatabaseClusterFromSnapshotProps extends software.amazon.jsii.JsiiSerializable
Example:
Vpc vpc; DatabaseClusterFromSnapshot.Builder.create(this, "Database") .engine(DatabaseClusterEngine.aurora(AuroraClusterEngineProps.builder().version(AuroraEngineVersion.VER_1_22_2).build())) .instanceProps(InstanceProps.builder() .vpc(vpc) .build()) .snapshotIdentifier("mySnapshot") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
DatabaseClusterFromSnapshotProps.Builder
A builder for
DatabaseClusterFromSnapshotProps |
static class |
DatabaseClusterFromSnapshotProps.Jsii$Proxy
An implementation for
DatabaseClusterFromSnapshotProps |
Modifier and Type | Method and Description |
---|---|
static DatabaseClusterFromSnapshotProps.Builder |
builder() |
default Duration |
getBacktrackWindow()
The number of seconds to set a cluster's target backtrack window to.
|
default BackupProps |
getBackup()
Backup settings.
|
default List<String> |
getCloudwatchLogsExports()
The list of log types that need to be enabled for exporting to CloudWatch Logs.
|
default RetentionDays |
getCloudwatchLogsRetention()
The number of days log events are kept in CloudWatch Logs.
|
default IRole |
getCloudwatchLogsRetentionRole()
The IAM role for the Lambda function associated with the custom resource that sets the retention policy.
|
default String |
getClusterIdentifier()
An optional identifier for the cluster.
|
default Boolean |
getCopyTagsToSnapshot()
Whether to copy tags to the snapshot when a snapshot is created.
|
default Credentials |
getCredentials()
Deprecated.
use `snapshotCredentials` which allows to generate a new password
|
default String |
getDefaultDatabaseName()
Name of a database which is automatically created inside the cluster.
|
default Boolean |
getDeletionProtection()
Indicates whether the DB cluster should have deletion protection enabled.
|
IClusterEngine |
getEngine()
What kind of database to start.
|
default Boolean |
getIamAuthentication()
Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.
|
default String |
getInstanceIdentifierBase()
Base identifier for instances.
|
InstanceProps |
getInstanceProps()
Settings for the individual instances that are launched.
|
default Number |
getInstances()
How many replicas/instances to create.
|
default InstanceUpdateBehaviour |
getInstanceUpdateBehaviour()
The ordering of updates for instances.
|
default Duration |
getMonitoringInterval()
The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.
|
default IRole |
getMonitoringRole()
Role that will be used to manage DB instances monitoring.
|
default NetworkType |
getNetworkType()
The network type of the DB instance.
|
default IParameterGroup |
getParameterGroup()
Additional parameters to pass to the database engine.
|
default Map<String,String> |
getParameters()
The parameters in the DBClusterParameterGroup to create automatically.
|
default Number |
getPort()
What port to listen on.
|
default String |
getPreferredMaintenanceWindow()
A preferred maintenance window day/time range.
|
default RemovalPolicy |
getRemovalPolicy()
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()
S3 buckets that you want to load data into.
|
default IRole |
getS3ExportRole()
Role that will be associated with this DB cluster to enable S3 export.
|
default List<IBucket> |
getS3ImportBuckets()
S3 buckets that you want to load data from.
|
default IRole |
getS3ImportRole()
Role that will be associated with this DB cluster to enable S3 import.
|
default SnapshotCredentials |
getSnapshotCredentials()
Master user credentials.
|
String |
getSnapshotIdentifier()
The identifier for the DB instance snapshot or DB cluster snapshot to restore from.
|
default Boolean |
getStorageEncrypted()
Whether to enable storage encryption.
|
default IKey |
getStorageEncryptionKey()
The KMS key for storage encryption.
|
default ISubnetGroup |
getSubnetGroup()
Existing subnet group for the cluster.
|
@Stability(value=Stable) @NotNull IClusterEngine getEngine()
@Stability(value=Stable) @NotNull InstanceProps getInstanceProps()
@Stability(value=Stable) @NotNull String getSnapshotIdentifier()
You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB instance snapshot.
@Stability(value=Stable) @Nullable default Duration getBacktrackWindow()
This feature is only supported by the Aurora MySQL database engine and cannot be enabled on existing clusters.
Default: 0 seconds (no backtrack)
@Stability(value=Stable) @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.
@Stability(value=Stable) @Nullable default List<String> getCloudwatchLogsExports()
Default: - no log exports
@Stability(value=Stable) @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=Stable) @Nullable default IRole getCloudwatchLogsRetentionRole()
Default: - a new role is created.
@Stability(value=Stable) @Nullable default String getClusterIdentifier()
Default: - A name is automatically generated.
@Stability(value=Stable) @Nullable default Boolean getCopyTagsToSnapshot()
Default: - true
@Stability(value=Deprecated) @Deprecated @Nullable default Credentials getCredentials()
Note - using this prop only works with Credentials.fromPassword()
with the
username of the snapshot, Credentials.fromUsername()
with the username and
password of the snapshot or Credentials.fromSecret()
with a secret containing
the username and password of the snapshot.
Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password that **will not be applied** to the cluster, use `snapshotCredentials` for the correct behavior.
@Stability(value=Stable) @Nullable default String getDefaultDatabaseName()
Default: - Database is not created in cluster.
@Stability(value=Stable) @Nullable default Boolean getDeletionProtection()
Default: - true if ``removalPolicy`` is RETAIN, false otherwise
@Stability(value=Stable) @Nullable default Boolean getIamAuthentication()
Default: false
@Stability(value=Stable) @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=Stable) @Nullable default Number getInstances()
Has to be at least 1.
Default: 2
@Stability(value=Stable) @Nullable default InstanceUpdateBehaviour getInstanceUpdateBehaviour()
Default: InstanceUpdateBehaviour.BULK
@Stability(value=Stable) @Nullable default Duration getMonitoringInterval()
Default: no enhanced monitoring
@Stability(value=Stable) @Nullable default IRole getMonitoringRole()
Default: - A role is automatically created for you
@Stability(value=Stable) @Nullable default NetworkType getNetworkType()
Default: - IPV4
@Stability(value=Stable) @Nullable default IParameterGroup getParameterGroup()
Default: - No parameter group.
@Stability(value=Stable) @Nullable default Map<String,String> getParameters()
You can only specify parameterGroup or parameters but not both. You need to use a versioned engine to auto-generate a DBClusterParameterGroup.
Default: - None
@Stability(value=Stable) @Nullable default Number getPort()
Default: - The default for the engine is used.
@Stability(value=Stable) @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.
@Stability(value=Stable) @Nullable default RemovalPolicy getRemovalPolicy()
Default: - RemovalPolicy.SNAPSHOT (remove the cluster and instances, but retain a snapshot of the data)
@Stability(value=Stable) @Nullable default List<IBucket> getS3ExportBuckets()
This property must not be used if s3ExportRole
is used.
For MySQL:
Default: - None
@Stability(value=Stable) @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
@Stability(value=Stable) @Nullable default List<IBucket> getS3ImportBuckets()
This property must not be used if s3ImportRole
is used.
For MySQL:
Default: - None
@Stability(value=Stable) @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
@Stability(value=Stable) @Nullable default SnapshotCredentials getSnapshotCredentials()
Note - It is not possible to change the master username for a snapshot; however, it is possible to provide (or generate) a new password.
Default: - The existing username and password from the snapshot will be used.
@Stability(value=Stable) @Nullable default Boolean getStorageEncrypted()
Default: - true if storageEncryptionKey is provided, false otherwise
@Stability(value=Stable) @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=Stable) @Nullable default ISubnetGroup getSubnetGroup()
Default: - a new subnet group will be created.
@Stability(value=Stable) static DatabaseClusterFromSnapshotProps.Builder builder()
Copyright © 2022. All rights reserved.