@Stability(value=Stable) public static final class DatabaseClusterProps.Builder extends Object implements software.amazon.jsii.Builder<DatabaseClusterProps>
DatabaseClusterProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public DatabaseClusterProps.Builder engine(IClusterEngine engine)
DatabaseClusterProps.getEngine()engine - What kind of database to start. This parameter is required.this@Stability(value=Stable) public DatabaseClusterProps.Builder instanceProps(InstanceProps instanceProps)
DatabaseClusterProps.getInstanceProps()instanceProps - Settings for the individual instances that are launched. This parameter is required.this@Stability(value=Stable) public DatabaseClusterProps.Builder backtrackWindow(Duration backtrackWindow)
DatabaseClusterProps.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 DatabaseClusterProps.Builder backup(BackupProps backup)
DatabaseClusterProps.getBackup()backup - Backup settings.this@Stability(value=Stable) public DatabaseClusterProps.Builder cloudwatchLogsExports(List<String> cloudwatchLogsExports)
DatabaseClusterProps.getCloudwatchLogsExports()cloudwatchLogsExports - The list of log types that need to be enabled for exporting to CloudWatch Logs.this@Stability(value=Stable) public DatabaseClusterProps.Builder cloudwatchLogsRetention(RetentionDays cloudwatchLogsRetention)
DatabaseClusterProps.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 DatabaseClusterProps.Builder cloudwatchLogsRetentionRole(IRole cloudwatchLogsRetentionRole)
DatabaseClusterProps.getCloudwatchLogsRetentionRole()cloudwatchLogsRetentionRole - The IAM role for the Lambda function associated with the custom resource that sets the retention policy.this@Stability(value=Stable) public DatabaseClusterProps.Builder clusterIdentifier(String clusterIdentifier)
DatabaseClusterProps.getClusterIdentifier()clusterIdentifier - An optional identifier for the cluster.this@Stability(value=Stable) public DatabaseClusterProps.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot)
DatabaseClusterProps.getCopyTagsToSnapshot()copyTagsToSnapshot - Whether to copy tags to the snapshot when a snapshot is created.this@Stability(value=Stable) public DatabaseClusterProps.Builder credentials(Credentials credentials)
DatabaseClusterProps.getCredentials()credentials - Credentials for the administrative user.this@Stability(value=Stable) public DatabaseClusterProps.Builder defaultDatabaseName(String defaultDatabaseName)
DatabaseClusterProps.getDefaultDatabaseName()defaultDatabaseName - Name of a database which is automatically created inside the cluster.this@Stability(value=Stable) public DatabaseClusterProps.Builder deletionProtection(Boolean deletionProtection)
DatabaseClusterProps.getDeletionProtection()deletionProtection - Indicates whether the DB cluster should have deletion protection enabled.this@Stability(value=Stable) public DatabaseClusterProps.Builder iamAuthentication(Boolean iamAuthentication)
DatabaseClusterProps.getIamAuthentication()iamAuthentication - Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.this@Stability(value=Stable) public DatabaseClusterProps.Builder instanceIdentifierBase(String instanceIdentifierBase)
DatabaseClusterProps.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 DatabaseClusterProps.Builder instances(Number instances)
DatabaseClusterProps.getInstances()instances - How many replicas/instances to create.
Has to be at least 1.this@Stability(value=Stable) public DatabaseClusterProps.Builder instanceUpdateBehaviour(InstanceUpdateBehaviour instanceUpdateBehaviour)
DatabaseClusterProps.getInstanceUpdateBehaviour()instanceUpdateBehaviour - The ordering of updates for instances.this@Stability(value=Stable) public DatabaseClusterProps.Builder monitoringInterval(Duration monitoringInterval)
DatabaseClusterProps.getMonitoringInterval()monitoringInterval - The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.this@Stability(value=Stable) public DatabaseClusterProps.Builder monitoringRole(IRole monitoringRole)
DatabaseClusterProps.getMonitoringRole()monitoringRole - Role that will be used to manage DB instances monitoring.this@Stability(value=Stable) public DatabaseClusterProps.Builder parameterGroup(IParameterGroup parameterGroup)
DatabaseClusterProps.getParameterGroup()parameterGroup - Additional parameters to pass to the database engine.this@Stability(value=Stable) public DatabaseClusterProps.Builder parameters(Map<String,String> parameters)
DatabaseClusterProps.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 DatabaseClusterProps.Builder port(Number port)
DatabaseClusterProps.getPort()port - What port to listen on.this@Stability(value=Stable) public DatabaseClusterProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
DatabaseClusterProps.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 DatabaseClusterProps.Builder removalPolicy(RemovalPolicy removalPolicy)
DatabaseClusterProps.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 DatabaseClusterProps.Builder s3ExportBuckets(List<? extends IBucket> s3ExportBuckets)
DatabaseClusterProps.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 DatabaseClusterProps.Builder s3ExportRole(IRole s3ExportRole)
DatabaseClusterProps.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 DatabaseClusterProps.Builder s3ImportBuckets(List<? extends IBucket> s3ImportBuckets)
DatabaseClusterProps.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 DatabaseClusterProps.Builder s3ImportRole(IRole s3ImportRole)
DatabaseClusterProps.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 DatabaseClusterProps.Builder storageEncrypted(Boolean storageEncrypted)
DatabaseClusterProps.getStorageEncrypted()storageEncrypted - Whether to enable storage encryption.this@Stability(value=Stable) public DatabaseClusterProps.Builder storageEncryptionKey(IKey storageEncryptionKey)
DatabaseClusterProps.getStorageEncryptionKey()storageEncryptionKey - The KMS key for storage encryption.
If specified, {@link storageEncrypted} will be set to true.this@Stability(value=Stable) public DatabaseClusterProps.Builder subnetGroup(ISubnetGroup subnetGroup)
DatabaseClusterProps.getSubnetGroup()subnetGroup - Existing subnet group for the cluster.this@Stability(value=Stable) public DatabaseClusterProps build()
build in interface software.amazon.jsii.Builder<DatabaseClusterProps>DatabaseClusterPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.