Class DbInstanceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.db_instance.DbInstanceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DbInstanceConfig>
- Enclosing interface:
- DbInstanceConfig
@Stability(Stable) public static final class DbInstanceConfig.Builder extends Object implements software.amazon.jsii.Builder<DbInstanceConfig>
A builder forDbInstanceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
instanceClass
@Stability(Stable) public DbInstanceConfig.Builder instanceClass(String instanceClass)
Sets the value ofDbInstanceConfig.getInstanceClass()- Parameters:
instanceClass- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#instance_class DbInstance#instance_class}. This parameter is required.- Returns:
this
-
allocatedStorage
@Stability(Stable) public DbInstanceConfig.Builder allocatedStorage(Number allocatedStorage)
Sets the value ofDbInstanceConfig.getAllocatedStorage()- Parameters:
allocatedStorage- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#allocated_storage DbInstance#allocated_storage}.- Returns:
this
-
allowMajorVersionUpgrade
@Stability(Stable) public DbInstanceConfig.Builder allowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade)
Sets the value ofDbInstanceConfig.getAllowMajorVersionUpgrade()- Parameters:
allowMajorVersionUpgrade- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#allow_major_version_upgrade DbInstance#allow_major_version_upgrade}.- Returns:
this
-
allowMajorVersionUpgrade
@Stability(Stable) public DbInstanceConfig.Builder allowMajorVersionUpgrade(com.hashicorp.cdktf.IResolvable allowMajorVersionUpgrade)
Sets the value ofDbInstanceConfig.getAllowMajorVersionUpgrade()- Parameters:
allowMajorVersionUpgrade- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#allow_major_version_upgrade DbInstance#allow_major_version_upgrade}.- Returns:
this
-
applyImmediately
@Stability(Stable) public DbInstanceConfig.Builder applyImmediately(Boolean applyImmediately)
Sets the value ofDbInstanceConfig.getApplyImmediately()- Parameters:
applyImmediately- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#apply_immediately DbInstance#apply_immediately}.- Returns:
this
-
applyImmediately
@Stability(Stable) public DbInstanceConfig.Builder applyImmediately(com.hashicorp.cdktf.IResolvable applyImmediately)
Sets the value ofDbInstanceConfig.getApplyImmediately()- Parameters:
applyImmediately- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#apply_immediately DbInstance#apply_immediately}.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public DbInstanceConfig.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Sets the value ofDbInstanceConfig.getAutoMinorVersionUpgrade()- Parameters:
autoMinorVersionUpgrade- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#auto_minor_version_upgrade DbInstance#auto_minor_version_upgrade}.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public DbInstanceConfig.Builder autoMinorVersionUpgrade(com.hashicorp.cdktf.IResolvable autoMinorVersionUpgrade)
Sets the value ofDbInstanceConfig.getAutoMinorVersionUpgrade()- Parameters:
autoMinorVersionUpgrade- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#auto_minor_version_upgrade DbInstance#auto_minor_version_upgrade}.- Returns:
this
-
availabilityZone
@Stability(Stable) public DbInstanceConfig.Builder availabilityZone(String availabilityZone)
Sets the value ofDbInstanceConfig.getAvailabilityZone()- Parameters:
availabilityZone- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#availability_zone DbInstance#availability_zone}.- Returns:
this
-
backupRetentionPeriod
@Stability(Stable) public DbInstanceConfig.Builder backupRetentionPeriod(Number backupRetentionPeriod)
Sets the value ofDbInstanceConfig.getBackupRetentionPeriod()- Parameters:
backupRetentionPeriod- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#backup_retention_period DbInstance#backup_retention_period}.- Returns:
this
-
backupWindow
@Stability(Stable) public DbInstanceConfig.Builder backupWindow(String backupWindow)
Sets the value ofDbInstanceConfig.getBackupWindow()- Parameters:
backupWindow- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#backup_window DbInstance#backup_window}.- Returns:
this
-
blueGreenUpdate
@Stability(Stable) public DbInstanceConfig.Builder blueGreenUpdate(DbInstanceBlueGreenUpdate blueGreenUpdate)
Sets the value ofDbInstanceConfig.getBlueGreenUpdate()- Parameters:
blueGreenUpdate- blue_green_update block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#blue_green_update DbInstance#blue_green_update}- Returns:
this
-
caCertIdentifier
@Stability(Stable) public DbInstanceConfig.Builder caCertIdentifier(String caCertIdentifier)
Sets the value ofDbInstanceConfig.getCaCertIdentifier()- Parameters:
caCertIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#ca_cert_identifier DbInstance#ca_cert_identifier}.- Returns:
this
-
characterSetName
@Stability(Stable) public DbInstanceConfig.Builder characterSetName(String characterSetName)
Sets the value ofDbInstanceConfig.getCharacterSetName()- Parameters:
characterSetName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#character_set_name DbInstance#character_set_name}.- Returns:
this
-
copyTagsToSnapshot
@Stability(Stable) public DbInstanceConfig.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot)
Sets the value ofDbInstanceConfig.getCopyTagsToSnapshot()- Parameters:
copyTagsToSnapshot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#copy_tags_to_snapshot DbInstance#copy_tags_to_snapshot}.- Returns:
this
-
copyTagsToSnapshot
@Stability(Stable) public DbInstanceConfig.Builder copyTagsToSnapshot(com.hashicorp.cdktf.IResolvable copyTagsToSnapshot)
Sets the value ofDbInstanceConfig.getCopyTagsToSnapshot()- Parameters:
copyTagsToSnapshot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#copy_tags_to_snapshot DbInstance#copy_tags_to_snapshot}.- Returns:
this
-
customerOwnedIpEnabled
@Stability(Stable) public DbInstanceConfig.Builder customerOwnedIpEnabled(Boolean customerOwnedIpEnabled)
Sets the value ofDbInstanceConfig.getCustomerOwnedIpEnabled()- Parameters:
customerOwnedIpEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#customer_owned_ip_enabled DbInstance#customer_owned_ip_enabled}.- Returns:
this
-
customerOwnedIpEnabled
@Stability(Stable) public DbInstanceConfig.Builder customerOwnedIpEnabled(com.hashicorp.cdktf.IResolvable customerOwnedIpEnabled)
Sets the value ofDbInstanceConfig.getCustomerOwnedIpEnabled()- Parameters:
customerOwnedIpEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#customer_owned_ip_enabled DbInstance#customer_owned_ip_enabled}.- Returns:
this
-
customIamInstanceProfile
@Stability(Stable) public DbInstanceConfig.Builder customIamInstanceProfile(String customIamInstanceProfile)
Sets the value ofDbInstanceConfig.getCustomIamInstanceProfile()- Parameters:
customIamInstanceProfile- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#custom_iam_instance_profile DbInstance#custom_iam_instance_profile}.- Returns:
this
-
dbName
@Stability(Stable) public DbInstanceConfig.Builder dbName(String dbName)
Sets the value ofDbInstanceConfig.getDbName()- Parameters:
dbName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#db_name DbInstance#db_name}.- Returns:
this
-
dbSubnetGroupName
@Stability(Stable) public DbInstanceConfig.Builder dbSubnetGroupName(String dbSubnetGroupName)
Sets the value ofDbInstanceConfig.getDbSubnetGroupName()- Parameters:
dbSubnetGroupName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#db_subnet_group_name DbInstance#db_subnet_group_name}.- Returns:
this
-
deleteAutomatedBackups
@Stability(Stable) public DbInstanceConfig.Builder deleteAutomatedBackups(Boolean deleteAutomatedBackups)
Sets the value ofDbInstanceConfig.getDeleteAutomatedBackups()- Parameters:
deleteAutomatedBackups- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#delete_automated_backups DbInstance#delete_automated_backups}.- Returns:
this
-
deleteAutomatedBackups
@Stability(Stable) public DbInstanceConfig.Builder deleteAutomatedBackups(com.hashicorp.cdktf.IResolvable deleteAutomatedBackups)
Sets the value ofDbInstanceConfig.getDeleteAutomatedBackups()- Parameters:
deleteAutomatedBackups- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#delete_automated_backups DbInstance#delete_automated_backups}.- Returns:
this
-
deletionProtection
@Stability(Stable) public DbInstanceConfig.Builder deletionProtection(Boolean deletionProtection)
Sets the value ofDbInstanceConfig.getDeletionProtection()- Parameters:
deletionProtection- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#deletion_protection DbInstance#deletion_protection}.- Returns:
this
-
deletionProtection
@Stability(Stable) public DbInstanceConfig.Builder deletionProtection(com.hashicorp.cdktf.IResolvable deletionProtection)
Sets the value ofDbInstanceConfig.getDeletionProtection()- Parameters:
deletionProtection- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#deletion_protection DbInstance#deletion_protection}.- Returns:
this
-
domain
@Stability(Stable) public DbInstanceConfig.Builder domain(String domain)
Sets the value ofDbInstanceConfig.getDomain()- Parameters:
domain- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#domain DbInstance#domain}.- Returns:
this
-
domainIamRoleName
@Stability(Stable) public DbInstanceConfig.Builder domainIamRoleName(String domainIamRoleName)
Sets the value ofDbInstanceConfig.getDomainIamRoleName()- Parameters:
domainIamRoleName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#domain_iam_role_name DbInstance#domain_iam_role_name}.- Returns:
this
-
enabledCloudwatchLogsExports
@Stability(Stable) public DbInstanceConfig.Builder enabledCloudwatchLogsExports(List<String> enabledCloudwatchLogsExports)
Sets the value ofDbInstanceConfig.getEnabledCloudwatchLogsExports()- Parameters:
enabledCloudwatchLogsExports- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#enabled_cloudwatch_logs_exports DbInstance#enabled_cloudwatch_logs_exports}.- Returns:
this
-
engine
@Stability(Stable) public DbInstanceConfig.Builder engine(String engine)
Sets the value ofDbInstanceConfig.getEngine()- Parameters:
engine- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#engine DbInstance#engine}.- Returns:
this
-
engineVersion
@Stability(Stable) public DbInstanceConfig.Builder engineVersion(String engineVersion)
Sets the value ofDbInstanceConfig.getEngineVersion()- Parameters:
engineVersion- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#engine_version DbInstance#engine_version}.- Returns:
this
-
finalSnapshotIdentifier
@Stability(Stable) public DbInstanceConfig.Builder finalSnapshotIdentifier(String finalSnapshotIdentifier)
Sets the value ofDbInstanceConfig.getFinalSnapshotIdentifier()- Parameters:
finalSnapshotIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#final_snapshot_identifier DbInstance#final_snapshot_identifier}.- Returns:
this
-
iamDatabaseAuthenticationEnabled
@Stability(Stable) public DbInstanceConfig.Builder iamDatabaseAuthenticationEnabled(Boolean iamDatabaseAuthenticationEnabled)
Sets the value ofDbInstanceConfig.getIamDatabaseAuthenticationEnabled()- Parameters:
iamDatabaseAuthenticationEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#iam_database_authentication_enabled DbInstance#iam_database_authentication_enabled}.- Returns:
this
-
iamDatabaseAuthenticationEnabled
@Stability(Stable) public DbInstanceConfig.Builder iamDatabaseAuthenticationEnabled(com.hashicorp.cdktf.IResolvable iamDatabaseAuthenticationEnabled)
Sets the value ofDbInstanceConfig.getIamDatabaseAuthenticationEnabled()- Parameters:
iamDatabaseAuthenticationEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#iam_database_authentication_enabled DbInstance#iam_database_authentication_enabled}.- Returns:
this
-
id
@Stability(Stable) public DbInstanceConfig.Builder id(String id)
Sets the value ofDbInstanceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#id DbInstance#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
identifier
@Stability(Stable) public DbInstanceConfig.Builder identifier(String identifier)
Sets the value ofDbInstanceConfig.getIdentifier()- Parameters:
identifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#identifier DbInstance#identifier}.- Returns:
this
-
identifierPrefix
@Stability(Stable) public DbInstanceConfig.Builder identifierPrefix(String identifierPrefix)
Sets the value ofDbInstanceConfig.getIdentifierPrefix()- Parameters:
identifierPrefix- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#identifier_prefix DbInstance#identifier_prefix}.- Returns:
this
-
iops
@Stability(Stable) public DbInstanceConfig.Builder iops(Number iops)
Sets the value ofDbInstanceConfig.getIops()- Parameters:
iops- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#iops DbInstance#iops}.- Returns:
this
-
kmsKeyId
@Stability(Stable) public DbInstanceConfig.Builder kmsKeyId(String kmsKeyId)
Sets the value ofDbInstanceConfig.getKmsKeyId()- Parameters:
kmsKeyId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#kms_key_id DbInstance#kms_key_id}.- Returns:
this
-
licenseModel
@Stability(Stable) public DbInstanceConfig.Builder licenseModel(String licenseModel)
Sets the value ofDbInstanceConfig.getLicenseModel()- Parameters:
licenseModel- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#license_model DbInstance#license_model}.- Returns:
this
-
maintenanceWindow
@Stability(Stable) public DbInstanceConfig.Builder maintenanceWindow(String maintenanceWindow)
Sets the value ofDbInstanceConfig.getMaintenanceWindow()- Parameters:
maintenanceWindow- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#maintenance_window DbInstance#maintenance_window}.- Returns:
this
-
manageMasterUserPassword
@Stability(Stable) public DbInstanceConfig.Builder manageMasterUserPassword(Boolean manageMasterUserPassword)
Sets the value ofDbInstanceConfig.getManageMasterUserPassword()- Parameters:
manageMasterUserPassword- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#manage_master_user_password DbInstance#manage_master_user_password}.- Returns:
this
-
manageMasterUserPassword
@Stability(Stable) public DbInstanceConfig.Builder manageMasterUserPassword(com.hashicorp.cdktf.IResolvable manageMasterUserPassword)
Sets the value ofDbInstanceConfig.getManageMasterUserPassword()- Parameters:
manageMasterUserPassword- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#manage_master_user_password DbInstance#manage_master_user_password}.- Returns:
this
-
masterUserSecretKmsKeyId
@Stability(Stable) public DbInstanceConfig.Builder masterUserSecretKmsKeyId(String masterUserSecretKmsKeyId)
Sets the value ofDbInstanceConfig.getMasterUserSecretKmsKeyId()- Parameters:
masterUserSecretKmsKeyId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#master_user_secret_kms_key_id DbInstance#master_user_secret_kms_key_id}.- Returns:
this
-
maxAllocatedStorage
@Stability(Stable) public DbInstanceConfig.Builder maxAllocatedStorage(Number maxAllocatedStorage)
Sets the value ofDbInstanceConfig.getMaxAllocatedStorage()- Parameters:
maxAllocatedStorage- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#max_allocated_storage DbInstance#max_allocated_storage}.- Returns:
this
-
monitoringInterval
@Stability(Stable) public DbInstanceConfig.Builder monitoringInterval(Number monitoringInterval)
Sets the value ofDbInstanceConfig.getMonitoringInterval()- Parameters:
monitoringInterval- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#monitoring_interval DbInstance#monitoring_interval}.- Returns:
this
-
monitoringRoleArn
@Stability(Stable) public DbInstanceConfig.Builder monitoringRoleArn(String monitoringRoleArn)
Sets the value ofDbInstanceConfig.getMonitoringRoleArn()- Parameters:
monitoringRoleArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#monitoring_role_arn DbInstance#monitoring_role_arn}.- Returns:
this
-
multiAz
@Stability(Stable) public DbInstanceConfig.Builder multiAz(Boolean multiAz)
Sets the value ofDbInstanceConfig.getMultiAz()- Parameters:
multiAz- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#multi_az DbInstance#multi_az}.- Returns:
this
-
multiAz
@Stability(Stable) public DbInstanceConfig.Builder multiAz(com.hashicorp.cdktf.IResolvable multiAz)
Sets the value ofDbInstanceConfig.getMultiAz()- Parameters:
multiAz- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#multi_az DbInstance#multi_az}.- Returns:
this
-
ncharCharacterSetName
@Stability(Stable) public DbInstanceConfig.Builder ncharCharacterSetName(String ncharCharacterSetName)
Sets the value ofDbInstanceConfig.getNcharCharacterSetName()- Parameters:
ncharCharacterSetName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#nchar_character_set_name DbInstance#nchar_character_set_name}.- Returns:
this
-
networkType
@Stability(Stable) public DbInstanceConfig.Builder networkType(String networkType)
Sets the value ofDbInstanceConfig.getNetworkType()- Parameters:
networkType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#network_type DbInstance#network_type}.- Returns:
this
-
optionGroupName
@Stability(Stable) public DbInstanceConfig.Builder optionGroupName(String optionGroupName)
Sets the value ofDbInstanceConfig.getOptionGroupName()- Parameters:
optionGroupName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#option_group_name DbInstance#option_group_name}.- Returns:
this
-
parameterGroupName
@Stability(Stable) public DbInstanceConfig.Builder parameterGroupName(String parameterGroupName)
Sets the value ofDbInstanceConfig.getParameterGroupName()- Parameters:
parameterGroupName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#parameter_group_name DbInstance#parameter_group_name}.- Returns:
this
-
password
@Stability(Stable) public DbInstanceConfig.Builder password(String password)
Sets the value ofDbInstanceConfig.getPassword()- Parameters:
password- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#password DbInstance#password}.- Returns:
this
-
performanceInsightsEnabled
@Stability(Stable) public DbInstanceConfig.Builder performanceInsightsEnabled(Boolean performanceInsightsEnabled)
Sets the value ofDbInstanceConfig.getPerformanceInsightsEnabled()- Parameters:
performanceInsightsEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#performance_insights_enabled DbInstance#performance_insights_enabled}.- Returns:
this
-
performanceInsightsEnabled
@Stability(Stable) public DbInstanceConfig.Builder performanceInsightsEnabled(com.hashicorp.cdktf.IResolvable performanceInsightsEnabled)
Sets the value ofDbInstanceConfig.getPerformanceInsightsEnabled()- Parameters:
performanceInsightsEnabled- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#performance_insights_enabled DbInstance#performance_insights_enabled}.- Returns:
this
-
performanceInsightsKmsKeyId
@Stability(Stable) public DbInstanceConfig.Builder performanceInsightsKmsKeyId(String performanceInsightsKmsKeyId)
Sets the value ofDbInstanceConfig.getPerformanceInsightsKmsKeyId()- Parameters:
performanceInsightsKmsKeyId- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#performance_insights_kms_key_id DbInstance#performance_insights_kms_key_id}.- Returns:
this
-
performanceInsightsRetentionPeriod
@Stability(Stable) public DbInstanceConfig.Builder performanceInsightsRetentionPeriod(Number performanceInsightsRetentionPeriod)
Sets the value ofDbInstanceConfig.getPerformanceInsightsRetentionPeriod()- Parameters:
performanceInsightsRetentionPeriod- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#performance_insights_retention_period DbInstance#performance_insights_retention_period}.- Returns:
this
-
port
@Stability(Stable) public DbInstanceConfig.Builder port(Number port)
Sets the value ofDbInstanceConfig.getPort()- Parameters:
port- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#port DbInstance#port}.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public DbInstanceConfig.Builder publiclyAccessible(Boolean publiclyAccessible)
Sets the value ofDbInstanceConfig.getPubliclyAccessible()- Parameters:
publiclyAccessible- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#publicly_accessible DbInstance#publicly_accessible}.- Returns:
this
-
publiclyAccessible
@Stability(Stable) public DbInstanceConfig.Builder publiclyAccessible(com.hashicorp.cdktf.IResolvable publiclyAccessible)
Sets the value ofDbInstanceConfig.getPubliclyAccessible()- Parameters:
publiclyAccessible- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#publicly_accessible DbInstance#publicly_accessible}.- Returns:
this
-
replicaMode
@Stability(Stable) public DbInstanceConfig.Builder replicaMode(String replicaMode)
Sets the value ofDbInstanceConfig.getReplicaMode()- Parameters:
replicaMode- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#replica_mode DbInstance#replica_mode}.- Returns:
this
-
replicateSourceDb
@Stability(Stable) public DbInstanceConfig.Builder replicateSourceDb(String replicateSourceDb)
Sets the value ofDbInstanceConfig.getReplicateSourceDb()- Parameters:
replicateSourceDb- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#replicate_source_db DbInstance#replicate_source_db}.- Returns:
this
-
restoreToPointInTime
@Stability(Stable) public DbInstanceConfig.Builder restoreToPointInTime(DbInstanceRestoreToPointInTime restoreToPointInTime)
Sets the value ofDbInstanceConfig.getRestoreToPointInTime()- Parameters:
restoreToPointInTime- restore_to_point_in_time block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#restore_to_point_in_time DbInstance#restore_to_point_in_time}- Returns:
this
-
s3Import
@Stability(Stable) public DbInstanceConfig.Builder s3Import(DbInstanceS3Import s3Import)
Sets the value ofDbInstanceConfig.getS3Import()- Parameters:
s3Import- s3_import block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#s3_import DbInstance#s3_import}- Returns:
this
-
skipFinalSnapshot
@Stability(Stable) public DbInstanceConfig.Builder skipFinalSnapshot(Boolean skipFinalSnapshot)
Sets the value ofDbInstanceConfig.getSkipFinalSnapshot()- Parameters:
skipFinalSnapshot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#skip_final_snapshot DbInstance#skip_final_snapshot}.- Returns:
this
-
skipFinalSnapshot
@Stability(Stable) public DbInstanceConfig.Builder skipFinalSnapshot(com.hashicorp.cdktf.IResolvable skipFinalSnapshot)
Sets the value ofDbInstanceConfig.getSkipFinalSnapshot()- Parameters:
skipFinalSnapshot- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#skip_final_snapshot DbInstance#skip_final_snapshot}.- Returns:
this
-
snapshotIdentifier
@Stability(Stable) public DbInstanceConfig.Builder snapshotIdentifier(String snapshotIdentifier)
Sets the value ofDbInstanceConfig.getSnapshotIdentifier()- Parameters:
snapshotIdentifier- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#snapshot_identifier DbInstance#snapshot_identifier}.- Returns:
this
-
storageEncrypted
@Stability(Stable) public DbInstanceConfig.Builder storageEncrypted(Boolean storageEncrypted)
Sets the value ofDbInstanceConfig.getStorageEncrypted()- Parameters:
storageEncrypted- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#storage_encrypted DbInstance#storage_encrypted}.- Returns:
this
-
storageEncrypted
@Stability(Stable) public DbInstanceConfig.Builder storageEncrypted(com.hashicorp.cdktf.IResolvable storageEncrypted)
Sets the value ofDbInstanceConfig.getStorageEncrypted()- Parameters:
storageEncrypted- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#storage_encrypted DbInstance#storage_encrypted}.- Returns:
this
-
storageThroughput
@Stability(Stable) public DbInstanceConfig.Builder storageThroughput(Number storageThroughput)
Sets the value ofDbInstanceConfig.getStorageThroughput()- Parameters:
storageThroughput- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#storage_throughput DbInstance#storage_throughput}.- Returns:
this
-
storageType
@Stability(Stable) public DbInstanceConfig.Builder storageType(String storageType)
Sets the value ofDbInstanceConfig.getStorageType()- Parameters:
storageType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#storage_type DbInstance#storage_type}.- Returns:
this
-
tags
@Stability(Stable) public DbInstanceConfig.Builder tags(Map<String,String> tags)
Sets the value ofDbInstanceConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#tags DbInstance#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public DbInstanceConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofDbInstanceConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#tags_all DbInstance#tags_all}.- Returns:
this
-
timeouts
@Stability(Stable) public DbInstanceConfig.Builder timeouts(DbInstanceTimeouts timeouts)
Sets the value ofDbInstanceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#timeouts DbInstance#timeouts}- Returns:
this
-
timezone
@Stability(Stable) public DbInstanceConfig.Builder timezone(String timezone)
Sets the value ofDbInstanceConfig.getTimezone()- Parameters:
timezone- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#timezone DbInstance#timezone}.- Returns:
this
-
username
@Stability(Stable) public DbInstanceConfig.Builder username(String username)
Sets the value ofDbInstanceConfig.getUsername()- Parameters:
username- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#username DbInstance#username}.- Returns:
this
-
vpcSecurityGroupIds
@Stability(Stable) public DbInstanceConfig.Builder vpcSecurityGroupIds(List<String> vpcSecurityGroupIds)
Sets the value ofDbInstanceConfig.getVpcSecurityGroupIds()- Parameters:
vpcSecurityGroupIds- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/db_instance#vpc_security_group_ids DbInstance#vpc_security_group_ids}.- Returns:
this
-
connection
@Stability(Experimental) public DbInstanceConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public DbInstanceConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DbInstanceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DbInstanceConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public DbInstanceConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public DbInstanceConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public DbInstanceConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public DbInstanceConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public DbInstanceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DbInstanceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DbInstanceConfig>- Returns:
- a new instance of
DbInstanceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-