Class DatabaseClusterFromSnapshotProps.Builder
java.lang.Object
software.amazon.awscdk.services.rds.DatabaseClusterFromSnapshotProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseClusterFromSnapshotProps>
- Enclosing interface:
DatabaseClusterFromSnapshotProps
@Stability(Stable)
public static final class DatabaseClusterFromSnapshotProps.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseClusterFromSnapshotProps>
A builder for
DatabaseClusterFromSnapshotProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoMinorVersionUpgrade
(Boolean autoMinorVersionUpgrade) Sets the value ofDatabaseClusterFromSnapshotProps.getAutoMinorVersionUpgrade()
backtrackWindow
(Duration backtrackWindow) Sets the value ofDatabaseClusterFromSnapshotProps.getBacktrackWindow()
backup
(BackupProps backup) Sets the value ofDatabaseClusterFromSnapshotProps.getBackup()
build()
Builds the configured instance.cloudwatchLogsExports
(List<String> cloudwatchLogsExports) Sets the value ofDatabaseClusterFromSnapshotProps.getCloudwatchLogsExports()
cloudwatchLogsRetention
(RetentionDays cloudwatchLogsRetention) Sets the value ofDatabaseClusterFromSnapshotProps.getCloudwatchLogsRetention()
cloudwatchLogsRetentionRole
(IRole cloudwatchLogsRetentionRole) Sets the value ofDatabaseClusterFromSnapshotProps.getCloudwatchLogsRetentionRole()
clusterIdentifier
(String clusterIdentifier) Sets the value ofDatabaseClusterFromSnapshotProps.getClusterIdentifier()
copyTagsToSnapshot
(Boolean copyTagsToSnapshot) Sets the value ofDatabaseClusterFromSnapshotProps.getCopyTagsToSnapshot()
credentials
(Credentials credentials) Deprecated.use `snapshotCredentials` which allows to generate a new passworddefaultDatabaseName
(String defaultDatabaseName) Sets the value ofDatabaseClusterFromSnapshotProps.getDefaultDatabaseName()
deletionProtection
(Boolean deletionProtection) Sets the value ofDatabaseClusterFromSnapshotProps.getDeletionProtection()
Sets the value ofDatabaseClusterFromSnapshotProps.getDomain()
domainRole
(IRole domainRole) Sets the value ofDatabaseClusterFromSnapshotProps.getDomainRole()
enableDataApi
(Boolean enableDataApi) Sets the value ofDatabaseClusterFromSnapshotProps.getEnableDataApi()
enableLocalWriteForwarding
(Boolean enableLocalWriteForwarding) Sets the value ofDatabaseClusterFromSnapshotProps.getEnableLocalWriteForwarding()
enablePerformanceInsights
(Boolean enablePerformanceInsights) Sets the value ofDatabaseClusterFromSnapshotProps.getEnablePerformanceInsights()
engine
(IClusterEngine engine) Sets the value ofDatabaseClusterFromSnapshotProps.getEngine()
iamAuthentication
(Boolean iamAuthentication) Sets the value ofDatabaseClusterFromSnapshotProps.getIamAuthentication()
instanceIdentifierBase
(String instanceIdentifierBase) Sets the value ofDatabaseClusterFromSnapshotProps.getInstanceIdentifierBase()
instanceProps
(InstanceProps instanceProps) Deprecated.- use writer and readers insteadDeprecated.- use writer and readers insteadinstanceUpdateBehaviour
(InstanceUpdateBehaviour instanceUpdateBehaviour) Sets the value ofDatabaseClusterFromSnapshotProps.getInstanceUpdateBehaviour()
monitoringInterval
(Duration monitoringInterval) Sets the value ofDatabaseClusterFromSnapshotProps.getMonitoringInterval()
monitoringRole
(IRole monitoringRole) Sets the value ofDatabaseClusterFromSnapshotProps.getMonitoringRole()
networkType
(NetworkType networkType) Sets the value ofDatabaseClusterFromSnapshotProps.getNetworkType()
parameterGroup
(IParameterGroup parameterGroup) Sets the value ofDatabaseClusterFromSnapshotProps.getParameterGroup()
parameters
(Map<String, String> parameters) Sets the value ofDatabaseClusterFromSnapshotProps.getParameters()
performanceInsightEncryptionKey
(IKey performanceInsightEncryptionKey) Sets the value ofDatabaseClusterFromSnapshotProps.getPerformanceInsightEncryptionKey()
performanceInsightRetention
(PerformanceInsightRetention performanceInsightRetention) Sets the value ofDatabaseClusterFromSnapshotProps.getPerformanceInsightRetention()
Sets the value ofDatabaseClusterFromSnapshotProps.getPort()
preferredMaintenanceWindow
(String preferredMaintenanceWindow) Sets the value ofDatabaseClusterFromSnapshotProps.getPreferredMaintenanceWindow()
readers
(List<? extends IClusterInstance> readers) Sets the value ofDatabaseClusterFromSnapshotProps.getReaders()
removalPolicy
(RemovalPolicy removalPolicy) Sets the value ofDatabaseClusterFromSnapshotProps.getRemovalPolicy()
s3ExportBuckets
(List<? extends IBucket> s3ExportBuckets) Sets the value ofDatabaseClusterFromSnapshotProps.getS3ExportBuckets()
s3ExportRole
(IRole s3ExportRole) Sets the value ofDatabaseClusterFromSnapshotProps.getS3ExportRole()
s3ImportBuckets
(List<? extends IBucket> s3ImportBuckets) Sets the value ofDatabaseClusterFromSnapshotProps.getS3ImportBuckets()
s3ImportRole
(IRole s3ImportRole) Sets the value ofDatabaseClusterFromSnapshotProps.getS3ImportRole()
securityGroups
(List<? extends ISecurityGroup> securityGroups) Sets the value ofDatabaseClusterFromSnapshotProps.getSecurityGroups()
serverlessV2MaxCapacity
(Number serverlessV2MaxCapacity) Sets the value ofDatabaseClusterFromSnapshotProps.getServerlessV2MaxCapacity()
serverlessV2MinCapacity
(Number serverlessV2MinCapacity) Sets the value ofDatabaseClusterFromSnapshotProps.getServerlessV2MinCapacity()
snapshotCredentials
(SnapshotCredentials snapshotCredentials) Sets the value ofDatabaseClusterFromSnapshotProps.getSnapshotCredentials()
snapshotIdentifier
(String snapshotIdentifier) Sets the value ofDatabaseClusterFromSnapshotProps.getSnapshotIdentifier()
storageEncrypted
(Boolean storageEncrypted) Sets the value ofDatabaseClusterFromSnapshotProps.getStorageEncrypted()
storageEncryptionKey
(IKey storageEncryptionKey) Sets the value ofDatabaseClusterFromSnapshotProps.getStorageEncryptionKey()
storageType
(DBClusterStorageType storageType) Sets the value ofDatabaseClusterFromSnapshotProps.getStorageType()
subnetGroup
(ISubnetGroup subnetGroup) Sets the value ofDatabaseClusterFromSnapshotProps.getSubnetGroup()
Sets the value ofDatabaseClusterFromSnapshotProps.getVpc()
vpcSubnets
(SubnetSelection vpcSubnets) Sets the value ofDatabaseClusterFromSnapshotProps.getVpcSubnets()
writer
(IClusterInstance writer) Sets the value ofDatabaseClusterFromSnapshotProps.getWriter()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engine
Sets the value ofDatabaseClusterFromSnapshotProps.getEngine()
- Parameters:
engine
- What kind of database to start. This parameter is required.- Returns:
this
-
snapshotIdentifier
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder snapshotIdentifier(String snapshotIdentifier) Sets the value ofDatabaseClusterFromSnapshotProps.getSnapshotIdentifier()
- Parameters:
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.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofDatabaseClusterFromSnapshotProps.getAutoMinorVersionUpgrade()
- Parameters:
autoMinorVersionUpgrade
- Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window.- Returns:
this
-
backtrackWindow
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder backtrackWindow(Duration backtrackWindow) Sets the value ofDatabaseClusterFromSnapshotProps.getBacktrackWindow()
- Parameters:
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.- Returns:
this
-
backup
Sets the value ofDatabaseClusterFromSnapshotProps.getBackup()
- Parameters:
backup
- Backup settings.- Returns:
this
-
cloudwatchLogsExports
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder cloudwatchLogsExports(List<String> cloudwatchLogsExports) Sets the value ofDatabaseClusterFromSnapshotProps.getCloudwatchLogsExports()
- Parameters:
cloudwatchLogsExports
- The list of log types that need to be enabled for exporting to CloudWatch Logs.- Returns:
this
-
cloudwatchLogsRetention
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder cloudwatchLogsRetention(RetentionDays cloudwatchLogsRetention) Sets the value ofDatabaseClusterFromSnapshotProps.getCloudwatchLogsRetention()
- Parameters:
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 toInfinity
.- Returns:
this
-
cloudwatchLogsRetentionRole
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder cloudwatchLogsRetentionRole(IRole cloudwatchLogsRetentionRole) Sets the value ofDatabaseClusterFromSnapshotProps.getCloudwatchLogsRetentionRole()
- Parameters:
cloudwatchLogsRetentionRole
- The IAM role for the Lambda function associated with the custom resource that sets the retention policy.- Returns:
this
-
clusterIdentifier
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder clusterIdentifier(String clusterIdentifier) Sets the value ofDatabaseClusterFromSnapshotProps.getClusterIdentifier()
- Parameters:
clusterIdentifier
- An optional identifier for the cluster.- Returns:
this
-
copyTagsToSnapshot
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot) Sets the value ofDatabaseClusterFromSnapshotProps.getCopyTagsToSnapshot()
- Parameters:
copyTagsToSnapshot
- Whether to copy tags to the snapshot when a snapshot is created.- Returns:
this
-
credentials
@Stability(Deprecated) @Deprecated public DatabaseClusterFromSnapshotProps.Builder credentials(Credentials credentials) Deprecated.use `snapshotCredentials` which allows to generate a new passwordSets the value ofDatabaseClusterFromSnapshotProps.getCredentials()
- Parameters:
credentials
- Credentials for the administrative user. Note - using this prop only works withCredentials.fromPassword()
with the username of the snapshot,Credentials.fromUsername()
with the username and password of the snapshot orCredentials.fromSecret()
with a secret containing the username and password of the snapshot.- Returns:
this
-
defaultDatabaseName
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder defaultDatabaseName(String defaultDatabaseName) Sets the value ofDatabaseClusterFromSnapshotProps.getDefaultDatabaseName()
- Parameters:
defaultDatabaseName
- Name of a database which is automatically created inside the cluster.- Returns:
this
-
deletionProtection
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder deletionProtection(Boolean deletionProtection) Sets the value ofDatabaseClusterFromSnapshotProps.getDeletionProtection()
- Parameters:
deletionProtection
- Indicates whether the DB cluster should have deletion protection enabled.- Returns:
this
-
domain
Sets the value ofDatabaseClusterFromSnapshotProps.getDomain()
- Parameters:
domain
- Directory ID for associating the DB cluster with a specific Active Directory. Necessary for enabling Kerberos authentication. If specified, the DB cluster joins the given Active Directory, enabling Kerberos authentication. If not specified, the DB cluster will not be associated with any Active Directory, and Kerberos authentication will not be enabled.- Returns:
this
-
domainRole
Sets the value ofDatabaseClusterFromSnapshotProps.getDomainRole()
- Parameters:
domainRole
- The IAM role to be used when making API calls to the Directory Service. The role needs the AWS-managed policyAmazonRDSDirectoryServiceAccess
or equivalent.- Returns:
this
-
enableDataApi
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder enableDataApi(Boolean enableDataApi) Sets the value ofDatabaseClusterFromSnapshotProps.getEnableDataApi()
- Parameters:
enableDataApi
- Whether to enable the Data API for the cluster.- Returns:
this
-
enableLocalWriteForwarding
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder enableLocalWriteForwarding(Boolean enableLocalWriteForwarding) Sets the value ofDatabaseClusterFromSnapshotProps.getEnableLocalWriteForwarding()
- Parameters:
enableLocalWriteForwarding
- Whether read replicas can forward write operations to the writer DB instance in the DB cluster. This setting can only be enabled for Aurora MySQL 3.04 or higher, and for Aurora PostgreSQL 16.4 or higher (for version 16), 15.8 or higher (for version 15), and 14.13 or higher (for version 14).- Returns:
this
-
enablePerformanceInsights
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder enablePerformanceInsights(Boolean enablePerformanceInsights) Sets the value ofDatabaseClusterFromSnapshotProps.getEnablePerformanceInsights()
- Parameters:
enablePerformanceInsights
- Whether to enable Performance Insights for the DB cluster.- Returns:
this
-
iamAuthentication
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder iamAuthentication(Boolean iamAuthentication) Sets the value ofDatabaseClusterFromSnapshotProps.getIamAuthentication()
- Parameters:
iamAuthentication
- Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.- Returns:
this
-
instanceIdentifierBase
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder instanceIdentifierBase(String instanceIdentifierBase) Sets the value ofDatabaseClusterFromSnapshotProps.getInstanceIdentifierBase()
- Parameters:
instanceIdentifierBase
- Base identifier for instances. Every replica is named by appending the replica number to this string, 1-based.- Returns:
this
-
instanceProps
@Stability(Deprecated) @Deprecated public DatabaseClusterFromSnapshotProps.Builder instanceProps(InstanceProps instanceProps) Deprecated.- use writer and readers insteadSets the value ofDatabaseClusterFromSnapshotProps.getInstanceProps()
- Parameters:
instanceProps
- Settings for the individual instances that are launched.- Returns:
this
-
instances
@Stability(Deprecated) @Deprecated public DatabaseClusterFromSnapshotProps.Builder instances(Number instances) Deprecated.- use writer and readers insteadSets the value ofDatabaseClusterFromSnapshotProps.getInstances()
- Parameters:
instances
- How many replicas/instances to create. Has to be at least 1.- Returns:
this
-
instanceUpdateBehaviour
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder instanceUpdateBehaviour(InstanceUpdateBehaviour instanceUpdateBehaviour) Sets the value ofDatabaseClusterFromSnapshotProps.getInstanceUpdateBehaviour()
- Parameters:
instanceUpdateBehaviour
- The ordering of updates for instances.- Returns:
this
-
monitoringInterval
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder monitoringInterval(Duration monitoringInterval) Sets the value ofDatabaseClusterFromSnapshotProps.getMonitoringInterval()
- Parameters:
monitoringInterval
- The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.- Returns:
this
-
monitoringRole
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder monitoringRole(IRole monitoringRole) Sets the value ofDatabaseClusterFromSnapshotProps.getMonitoringRole()
- Parameters:
monitoringRole
- Role that will be used to manage DB instances monitoring.- Returns:
this
-
networkType
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder networkType(NetworkType networkType) Sets the value ofDatabaseClusterFromSnapshotProps.getNetworkType()
- Parameters:
networkType
- The network type of the DB instance.- Returns:
this
-
parameterGroup
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder parameterGroup(IParameterGroup parameterGroup) Sets the value ofDatabaseClusterFromSnapshotProps.getParameterGroup()
- Parameters:
parameterGroup
- Additional parameters to pass to the database engine.- Returns:
this
-
parameters
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder parameters(Map<String, String> parameters) Sets the value ofDatabaseClusterFromSnapshotProps.getParameters()
- Parameters:
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.- Returns:
this
-
performanceInsightEncryptionKey
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder performanceInsightEncryptionKey(IKey performanceInsightEncryptionKey) Sets the value ofDatabaseClusterFromSnapshotProps.getPerformanceInsightEncryptionKey()
- Parameters:
performanceInsightEncryptionKey
- The AWS KMS key for encryption of Performance Insights data.- Returns:
this
-
performanceInsightRetention
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder performanceInsightRetention(PerformanceInsightRetention performanceInsightRetention) Sets the value ofDatabaseClusterFromSnapshotProps.getPerformanceInsightRetention()
- Parameters:
performanceInsightRetention
- The amount of time, in days, to retain Performance Insights data.- Returns:
this
-
port
Sets the value ofDatabaseClusterFromSnapshotProps.getPort()
- Parameters:
port
- What port to listen on.- Returns:
this
-
preferredMaintenanceWindow
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofDatabaseClusterFromSnapshotProps.getPreferredMaintenanceWindow()
- Parameters:
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'- Returns:
this
-
readers
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder readers(List<? extends IClusterInstance> readers) Sets the value ofDatabaseClusterFromSnapshotProps.getReaders()
- Parameters:
readers
- A list of instances to create as cluster reader instances.- Returns:
this
-
removalPolicy
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder removalPolicy(RemovalPolicy removalPolicy) Sets the value ofDatabaseClusterFromSnapshotProps.getRemovalPolicy()
- Parameters:
removalPolicy
- The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.- Returns:
this
-
s3ExportBuckets
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder s3ExportBuckets(List<? extends IBucket> s3ExportBuckets) Sets the value ofDatabaseClusterFromSnapshotProps.getS3ExportBuckets()
- Parameters:
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 ifs3ExportRole
is used.For MySQL:
- Returns:
this
-
s3ExportRole
Sets the value ofDatabaseClusterFromSnapshotProps.getS3ExportRole()
- Parameters:
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. To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature enabled when creating the DatabaseClusterEngine For MySQL:- Returns:
this
-
s3ImportBuckets
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder s3ImportBuckets(List<? extends IBucket> s3ImportBuckets) Sets the value ofDatabaseClusterFromSnapshotProps.getS3ImportBuckets()
- Parameters:
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 ifs3ImportRole
is used.For MySQL:
- Returns:
this
-
s3ImportRole
Sets the value ofDatabaseClusterFromSnapshotProps.getS3ImportRole()
- Parameters:
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. To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature enabled when creating the DatabaseClusterEngine For MySQL:- Returns:
this
-
securityGroups
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) Sets the value ofDatabaseClusterFromSnapshotProps.getSecurityGroups()
- Parameters:
securityGroups
- Security group.- Returns:
this
-
serverlessV2MaxCapacity
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder serverlessV2MaxCapacity(Number serverlessV2MaxCapacity) Sets the value ofDatabaseClusterFromSnapshotProps.getServerlessV2MaxCapacity()
- Parameters:
serverlessV2MaxCapacity
- The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value that you can use is 256.The maximum capacity must be higher than 0.5 ACUs.
- Returns:
this
-
serverlessV2MinCapacity
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder serverlessV2MinCapacity(Number serverlessV2MinCapacity) Sets the value ofDatabaseClusterFromSnapshotProps.getServerlessV2MinCapacity()
- Parameters:
serverlessV2MinCapacity
- The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is 0.5.- Returns:
this
-
snapshotCredentials
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder snapshotCredentials(SnapshotCredentials snapshotCredentials) Sets the value ofDatabaseClusterFromSnapshotProps.getSnapshotCredentials()
- Parameters:
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.- Returns:
this
-
storageEncrypted
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder storageEncrypted(Boolean storageEncrypted) Sets the value ofDatabaseClusterFromSnapshotProps.getStorageEncrypted()
- Parameters:
storageEncrypted
- Whether to enable storage encryption.- Returns:
this
-
storageEncryptionKey
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder storageEncryptionKey(IKey storageEncryptionKey) Sets the value ofDatabaseClusterFromSnapshotProps.getStorageEncryptionKey()
- Parameters:
storageEncryptionKey
- The KMS key for storage encryption. If specified,storageEncrypted
will be set totrue
.- Returns:
this
-
storageType
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder storageType(DBClusterStorageType storageType) Sets the value ofDatabaseClusterFromSnapshotProps.getStorageType()
- Parameters:
storageType
- The storage type to be associated with the DB cluster.- Returns:
this
-
subnetGroup
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder subnetGroup(ISubnetGroup subnetGroup) Sets the value ofDatabaseClusterFromSnapshotProps.getSubnetGroup()
- Parameters:
subnetGroup
- Existing subnet group for the cluster.- Returns:
this
-
vpc
Sets the value ofDatabaseClusterFromSnapshotProps.getVpc()
- Parameters:
vpc
- What subnets to run the RDS instances in. Must be at least 2 subnets in two different AZs.- Returns:
this
-
vpcSubnets
@Stability(Stable) public DatabaseClusterFromSnapshotProps.Builder vpcSubnets(SubnetSelection vpcSubnets) Sets the value ofDatabaseClusterFromSnapshotProps.getVpcSubnets()
- Parameters:
vpcSubnets
- Where to place the instances within the VPC.- Returns:
this
-
writer
Sets the value ofDatabaseClusterFromSnapshotProps.getWriter()
- Parameters:
writer
- The instance to use for the cluster writer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DatabaseClusterFromSnapshotProps>
- Returns:
- a new instance of
DatabaseClusterFromSnapshotProps
- Throws:
NullPointerException
- if any required attribute was not provided
-