@Stability(value=Stable) public static final class DatabaseClusterFromSnapshotProps.Builder extends Object implements software.amazon.jsii.Builder<DatabaseClusterFromSnapshotProps>
DatabaseClusterFromSnapshotProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder engine(IClusterEngine engine)
DatabaseClusterFromSnapshotProps.getEngine()engine - What kind of database to start. This parameter is required.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder instanceProps(InstanceProps instanceProps)
DatabaseClusterFromSnapshotProps.getInstanceProps()instanceProps - Settings for the individual instances that are launched. This parameter is required.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder snapshotIdentifier(String snapshotIdentifier)
DatabaseClusterFromSnapshotProps.getSnapshotIdentifier()snapshotIdentifier - The identifier for the DB instance snapshot or DB cluster snapshot to restore from. This parameter is required.
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.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder backtrackWindow(Duration backtrackWindow)
DatabaseClusterFromSnapshotProps.getBacktrackWindow()backtrackWindow - The number of seconds to set a cluster's target backtrack window to.
This feature is only supported by the Aurora MySQL database engine and
cannot be enabled on existing clusters.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder backup(BackupProps backup)
DatabaseClusterFromSnapshotProps.getBackup()backup - Backup settings.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder cloudwatchLogsExports(List<String> cloudwatchLogsExports)
DatabaseClusterFromSnapshotProps.getCloudwatchLogsExports()cloudwatchLogsExports - The list of log types that need to be enabled for exporting to CloudWatch Logs.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder cloudwatchLogsRetention(RetentionDays cloudwatchLogsRetention)
DatabaseClusterFromSnapshotProps.getCloudwatchLogsRetention()cloudwatchLogsRetention - The number of days log events are kept in CloudWatch Logs.
When updating
this property, unsetting it doesn't remove the log retention policy. To
remove the retention policy, set the value to Infinity.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder cloudwatchLogsRetentionRole(IRole cloudwatchLogsRetentionRole)
DatabaseClusterFromSnapshotProps.getCloudwatchLogsRetentionRole()cloudwatchLogsRetentionRole - The IAM role for the Lambda function associated with the custom resource that sets the retention policy.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder clusterIdentifier(String clusterIdentifier)
DatabaseClusterFromSnapshotProps.getClusterIdentifier()clusterIdentifier - An optional identifier for the cluster.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot)
DatabaseClusterFromSnapshotProps.getCopyTagsToSnapshot()copyTagsToSnapshot - Whether to copy tags to the snapshot when a snapshot is created.this@Stability(value=Deprecated) @Deprecated public DatabaseClusterFromSnapshotProps.Builder credentials(Credentials credentials)
DatabaseClusterFromSnapshotProps.getCredentials()credentials - Credentials for the administrative user.
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.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder defaultDatabaseName(String defaultDatabaseName)
DatabaseClusterFromSnapshotProps.getDefaultDatabaseName()defaultDatabaseName - Name of a database which is automatically created inside the cluster.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder deletionProtection(Boolean deletionProtection)
DatabaseClusterFromSnapshotProps.getDeletionProtection()deletionProtection - Indicates whether the DB cluster should have deletion protection enabled.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder iamAuthentication(Boolean iamAuthentication)
DatabaseClusterFromSnapshotProps.getIamAuthentication()iamAuthentication - Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder instanceIdentifierBase(String instanceIdentifierBase)
DatabaseClusterFromSnapshotProps.getInstanceIdentifierBase()instanceIdentifierBase - Base identifier for instances.
Every replica is named by appending the replica number to this string, 1-based.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder instances(Number instances)
DatabaseClusterFromSnapshotProps.getInstances()instances - How many replicas/instances to create.
Has to be at least 1.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder instanceUpdateBehaviour(InstanceUpdateBehaviour instanceUpdateBehaviour)
DatabaseClusterFromSnapshotProps.getInstanceUpdateBehaviour()instanceUpdateBehaviour - The ordering of updates for instances.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder monitoringInterval(Duration monitoringInterval)
DatabaseClusterFromSnapshotProps.getMonitoringInterval()monitoringInterval - The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder monitoringRole(IRole monitoringRole)
DatabaseClusterFromSnapshotProps.getMonitoringRole()monitoringRole - Role that will be used to manage DB instances monitoring.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder parameterGroup(IParameterGroup parameterGroup)
DatabaseClusterFromSnapshotProps.getParameterGroup()parameterGroup - Additional parameters to pass to the database engine.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder parameters(Map<String,String> parameters)
DatabaseClusterFromSnapshotProps.getParameters()parameters - The parameters in the DBClusterParameterGroup to create automatically.
You can only specify parameterGroup or parameters but not both.
You need to use a versioned engine to auto-generate a DBClusterParameterGroup.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder port(Number port)
DatabaseClusterFromSnapshotProps.getPort()port - What port to listen on.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
DatabaseClusterFromSnapshotProps.getPreferredMaintenanceWindow()preferredMaintenanceWindow - A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC).
Example: 'Sun:23:45-Mon:00:15'this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder removalPolicy(RemovalPolicy removalPolicy)
DatabaseClusterFromSnapshotProps.getRemovalPolicy()removalPolicy - The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder s3ExportBuckets(List<? extends IBucket> s3ExportBuckets)
DatabaseClusterFromSnapshotProps.getS3ExportBuckets()s3ExportBuckets - S3 buckets that you want to load data into. This feature is only supported by the Aurora database engine.
This property must not be used if s3ExportRole is used.
For MySQL:
this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder s3ExportRole(IRole s3ExportRole)
DatabaseClusterFromSnapshotProps.getS3ExportRole()s3ExportRole - Role that will be associated with this DB cluster to enable S3 export.
This feature is only supported by the Aurora database engine.
This property must not be used if s3ExportBuckets is used.
For MySQL:
this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder s3ImportBuckets(List<? extends IBucket> s3ImportBuckets)
DatabaseClusterFromSnapshotProps.getS3ImportBuckets()s3ImportBuckets - S3 buckets that you want to load data from. This feature is only supported by the Aurora database engine.
This property must not be used if s3ImportRole is used.
For MySQL:
this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder s3ImportRole(IRole s3ImportRole)
DatabaseClusterFromSnapshotProps.getS3ImportRole()s3ImportRole - Role that will be associated with this DB cluster to enable S3 import.
This feature is only supported by the Aurora database engine.
This property must not be used if s3ImportBuckets is used.
For MySQL:
this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder snapshotCredentials(SnapshotCredentials snapshotCredentials)
DatabaseClusterFromSnapshotProps.getSnapshotCredentials()snapshotCredentials - Master user credentials.
Note - It is not possible to change the master username for a snapshot;
however, it is possible to provide (or generate) a new password.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder storageEncrypted(Boolean storageEncrypted)
DatabaseClusterFromSnapshotProps.getStorageEncrypted()storageEncrypted - Whether to enable storage encryption.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder storageEncryptionKey(IKey storageEncryptionKey)
DatabaseClusterFromSnapshotProps.getStorageEncryptionKey()storageEncryptionKey - The KMS key for storage encryption.
If specified, {@link storageEncrypted} will be set to true.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps.Builder subnetGroup(ISubnetGroup subnetGroup)
DatabaseClusterFromSnapshotProps.getSubnetGroup()subnetGroup - Existing subnet group for the cluster.this@Stability(value=Stable) public DatabaseClusterFromSnapshotProps build()
build in interface software.amazon.jsii.Builder<DatabaseClusterFromSnapshotProps>DatabaseClusterFromSnapshotPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.