public static interface DBInstance.Builder extends CopyableBuilder<DBInstance.Builder,DBInstance>
Modifier and Type | Method and Description |
---|---|
DBInstance.Builder |
allocatedStorage(Integer allocatedStorage)
Specifies the allocated storage size specified in gigabytes.
|
DBInstance.Builder |
autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor version patches are applied automatically.
|
DBInstance.Builder |
availabilityZone(String availabilityZone)
Specifies the name of the Availability Zone the DB instance is located in.
|
DBInstance.Builder |
backupRetentionPeriod(Integer backupRetentionPeriod)
Specifies the number of days for which automatic DB snapshots are retained.
|
DBInstance.Builder |
caCertificateIdentifier(String caCertificateIdentifier)
The identifier of the CA certificate for this DB instance.
|
DBInstance.Builder |
characterSetName(String characterSetName)
If present, specifies the name of the character set that this instance is associated with.
|
DBInstance.Builder |
copyTagsToSnapshot(Boolean copyTagsToSnapshot)
Specifies whether tags are copied from the DB instance to snapshots of the DB instance.
|
DBInstance.Builder |
dbClusterIdentifier(String dbClusterIdentifier)
If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a
member of.
|
DBInstance.Builder |
dbInstanceArn(String dbInstanceArn)
The Amazon Resource Name (ARN) for the DB instance.
|
DBInstance.Builder |
dbInstanceClass(String dbInstanceClass)
Contains the name of the compute and memory capacity class of the DB instance.
|
DBInstance.Builder |
dbInstanceIdentifier(String dbInstanceIdentifier)
Contains a user-supplied database identifier.
|
DBInstance.Builder |
dbInstancePort(Integer dbInstancePort)
Specifies the port that the DB instance listens on.
|
DBInstance.Builder |
dbInstanceStatus(String dbInstanceStatus)
Specifies the current state of this database.
|
DBInstance.Builder |
dbiResourceId(String dbiResourceId)
The AWS Region-unique, immutable identifier for the DB instance.
|
DBInstance.Builder |
dbName(String dbName)
The meaning of this parameter differs according to the database engine you use.
|
DBInstance.Builder |
dbParameterGroups(Collection<DBParameterGroupStatus> dbParameterGroups)
Provides the list of DB parameter groups applied to this DB instance.
|
DBInstance.Builder |
dbParameterGroups(Consumer<DBParameterGroupStatus.Builder>... dbParameterGroups)
Provides the list of DB parameter groups applied to this DB instance.
|
DBInstance.Builder |
dbParameterGroups(DBParameterGroupStatus... dbParameterGroups)
Provides the list of DB parameter groups applied to this DB instance.
|
DBInstance.Builder |
dbSecurityGroups(Collection<DBSecurityGroupMembership> dbSecurityGroups)
Provides List of DB security group elements containing only
DBSecurityGroup.Name and
DBSecurityGroup.Status subelements. |
DBInstance.Builder |
dbSecurityGroups(Consumer<DBSecurityGroupMembership.Builder>... dbSecurityGroups)
Provides List of DB security group elements containing only
DBSecurityGroup.Name and
DBSecurityGroup.Status subelements. |
DBInstance.Builder |
dbSecurityGroups(DBSecurityGroupMembership... dbSecurityGroups)
Provides List of DB security group elements containing only
DBSecurityGroup.Name and
DBSecurityGroup.Status subelements. |
default DBInstance.Builder |
dbSubnetGroup(Consumer<DBSubnetGroup.Builder> dbSubnetGroup)
Specifies information on the subnet group associated with the DB instance, including the name, description,
and subnets in the subnet group.
|
DBInstance.Builder |
dbSubnetGroup(DBSubnetGroup dbSubnetGroup)
Specifies information on the subnet group associated with the DB instance, including the name, description,
and subnets in the subnet group.
|
DBInstance.Builder |
domainMemberships(Collection<DomainMembership> domainMemberships)
The Active Directory Domain membership records associated with the DB instance.
|
DBInstance.Builder |
domainMemberships(Consumer<DomainMembership.Builder>... domainMemberships)
The Active Directory Domain membership records associated with the DB instance.
|
DBInstance.Builder |
domainMemberships(DomainMembership... domainMemberships)
The Active Directory Domain membership records associated with the DB instance.
|
default DBInstance.Builder |
endpoint(Consumer<Endpoint.Builder> endpoint)
Specifies the connection endpoint.
|
DBInstance.Builder |
endpoint(Endpoint endpoint)
Specifies the connection endpoint.
|
DBInstance.Builder |
engine(String engine)
Provides the name of the database engine to be used for this DB instance.
|
DBInstance.Builder |
engineVersion(String engineVersion)
Indicates the database engine version.
|
DBInstance.Builder |
enhancedMonitoringResourceArn(String enhancedMonitoringResourceArn)
The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring
metrics data for the DB instance.
|
DBInstance.Builder |
iamDatabaseAuthenticationEnabled(Boolean iamDatabaseAuthenticationEnabled)
True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
otherwise false.
|
DBInstance.Builder |
instanceCreateTime(Instant instanceCreateTime)
Provides the date and time the DB instance was created.
|
DBInstance.Builder |
iops(Integer iops)
Specifies the Provisioned IOPS (I/O operations per second) value.
|
DBInstance.Builder |
kmsKeyId(String kmsKeyId)
If
StorageEncrypted is true, the AWS KMS key identifier for the encrypted DB instance. |
DBInstance.Builder |
latestRestorableTime(Instant latestRestorableTime)
Specifies the latest time to which a database can be restored with point-in-time restore.
|
DBInstance.Builder |
licenseModel(String licenseModel)
License model information for this DB instance.
|
DBInstance.Builder |
masterUsername(String masterUsername)
Contains the master username for the DB instance.
|
DBInstance.Builder |
monitoringInterval(Integer monitoringInterval)
The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.
|
DBInstance.Builder |
monitoringRoleArn(String monitoringRoleArn)
The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.
|
DBInstance.Builder |
multiAZ(Boolean multiAZ)
Specifies if the DB instance is a Multi-AZ deployment.
|
DBInstance.Builder |
optionGroupMemberships(Collection<OptionGroupMembership> optionGroupMemberships)
Provides the list of option group memberships for this DB instance.
|
DBInstance.Builder |
optionGroupMemberships(Consumer<OptionGroupMembership.Builder>... optionGroupMemberships)
Provides the list of option group memberships for this DB instance.
|
DBInstance.Builder |
optionGroupMemberships(OptionGroupMembership... optionGroupMemberships)
Provides the list of option group memberships for this DB instance.
|
default DBInstance.Builder |
pendingModifiedValues(Consumer<PendingModifiedValues.Builder> pendingModifiedValues)
Specifies that changes to the DB instance are pending.
|
DBInstance.Builder |
pendingModifiedValues(PendingModifiedValues pendingModifiedValues)
Specifies that changes to the DB instance are pending.
|
DBInstance.Builder |
performanceInsightsEnabled(Boolean performanceInsightsEnabled)
True if Performance Insights is enabled for the DB instance, and otherwise false.
|
DBInstance.Builder |
performanceInsightsKMSKeyId(String performanceInsightsKMSKeyId)
The AWS KMS key identifier for encryption of Performance Insights data.
|
DBInstance.Builder |
preferredBackupWindow(String preferredBackupWindow)
Specifies the daily time range during which automated backups are created if automated backups are enabled,
as determined by the
BackupRetentionPeriod . |
DBInstance.Builder |
preferredMaintenanceWindow(String preferredMaintenanceWindow)
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time
(UTC).
|
DBInstance.Builder |
promotionTier(Integer promotionTier)
A value that specifies the order in which an Aurora Replica is promoted to the primary instance after a
failure of the existing primary instance.
|
DBInstance.Builder |
publiclyAccessible(Boolean publiclyAccessible)
Specifies the accessibility options for the DB instance.
|
DBInstance.Builder |
readReplicaDBClusterIdentifiers(Collection<String> readReplicaDBClusterIdentifiers)
Contains one or more identifiers of Aurora DB clusters that are Read Replicas of this DB instance.
|
DBInstance.Builder |
readReplicaDBClusterIdentifiers(String... readReplicaDBClusterIdentifiers)
Contains one or more identifiers of Aurora DB clusters that are Read Replicas of this DB instance.
|
DBInstance.Builder |
readReplicaDBInstanceIdentifiers(Collection<String> readReplicaDBInstanceIdentifiers)
Contains one or more identifiers of the Read Replicas associated with this DB instance.
|
DBInstance.Builder |
readReplicaDBInstanceIdentifiers(String... readReplicaDBInstanceIdentifiers)
Contains one or more identifiers of the Read Replicas associated with this DB instance.
|
DBInstance.Builder |
readReplicaSourceDBInstanceIdentifier(String readReplicaSourceDBInstanceIdentifier)
Contains the identifier of the source DB instance if this DB instance is a Read Replica.
|
DBInstance.Builder |
secondaryAvailabilityZone(String secondaryAvailabilityZone)
If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
|
DBInstance.Builder |
statusInfos(Collection<DBInstanceStatusInfo> statusInfos)
The status of a Read Replica.
|
DBInstance.Builder |
statusInfos(Consumer<DBInstanceStatusInfo.Builder>... statusInfos)
The status of a Read Replica.
|
DBInstance.Builder |
statusInfos(DBInstanceStatusInfo... statusInfos)
The status of a Read Replica.
|
DBInstance.Builder |
storageEncrypted(Boolean storageEncrypted)
Specifies whether the DB instance is encrypted.
|
DBInstance.Builder |
storageType(String storageType)
Specifies the storage type associated with DB instance.
|
DBInstance.Builder |
tdeCredentialArn(String tdeCredentialArn)
The ARN from the key store with which the instance is associated for TDE encryption.
|
DBInstance.Builder |
timezone(String timezone)
The time zone of the DB instance.
|
DBInstance.Builder |
vpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups)
Provides a list of VPC security group elements that the DB instance belongs to.
|
DBInstance.Builder |
vpcSecurityGroups(Consumer<VpcSecurityGroupMembership.Builder>... vpcSecurityGroups)
Provides a list of VPC security group elements that the DB instance belongs to.
|
DBInstance.Builder |
vpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups)
Provides a list of VPC security group elements that the DB instance belongs to.
|
copy
applyMutation, build
DBInstance.Builder dbInstanceIdentifier(String dbInstanceIdentifier)
Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.
dbInstanceIdentifier
- Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB
instance.DBInstance.Builder dbInstanceClass(String dbInstanceClass)
Contains the name of the compute and memory capacity class of the DB instance.
dbInstanceClass
- Contains the name of the compute and memory capacity class of the DB instance.DBInstance.Builder engine(String engine)
Provides the name of the database engine to be used for this DB instance.
engine
- Provides the name of the database engine to be used for this DB instance.DBInstance.Builder dbInstanceStatus(String dbInstanceStatus)
Specifies the current state of this database.
dbInstanceStatus
- Specifies the current state of this database.DBInstance.Builder masterUsername(String masterUsername)
Contains the master username for the DB instance.
masterUsername
- Contains the master username for the DB instance.DBInstance.Builder dbName(String dbName)
The meaning of this parameter differs according to the database engine you use. For example, this value returns MySQL, MariaDB, or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for these engines.
MySQL, MariaDB, SQL Server, PostgreSQL
Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB instance was created. This same name is returned for the life of the DB instance.
Type: String
Oracle
Contains the Oracle System ID (SID) of the created DB instance. Not shown when the returned parameters do not apply to an Oracle DB instance.
dbName
- The meaning of this parameter differs according to the database engine you use. For example, this
value returns MySQL, MariaDB, or PostgreSQL information when returning values from
CreateDBInstanceReadReplica since Read Replicas are only supported for these engines.
MySQL, MariaDB, SQL Server, PostgreSQL
Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB instance was created. This same name is returned for the life of the DB instance.
Type: String
Oracle
Contains the Oracle System ID (SID) of the created DB instance. Not shown when the returned parameters do not apply to an Oracle DB instance.
DBInstance.Builder endpoint(Endpoint endpoint)
Specifies the connection endpoint.
endpoint
- Specifies the connection endpoint.default DBInstance.Builder endpoint(Consumer<Endpoint.Builder> endpoint)
Specifies the connection endpoint.
This is a convenience that creates an instance of theEndpoint.Builder
avoiding the need to create
one manually via Endpoint.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to endpoint(Endpoint)
.endpoint
- a consumer that will call methods on Endpoint.Builder
endpoint(Endpoint)
DBInstance.Builder allocatedStorage(Integer allocatedStorage)
Specifies the allocated storage size specified in gigabytes.
allocatedStorage
- Specifies the allocated storage size specified in gigabytes.DBInstance.Builder instanceCreateTime(Instant instanceCreateTime)
Provides the date and time the DB instance was created.
instanceCreateTime
- Provides the date and time the DB instance was created.DBInstance.Builder preferredBackupWindow(String preferredBackupWindow)
Specifies the daily time range during which automated backups are created if automated backups are enabled,
as determined by the BackupRetentionPeriod
.
preferredBackupWindow
- Specifies the daily time range during which automated backups are created if automated backups are
enabled, as determined by the BackupRetentionPeriod
.DBInstance.Builder backupRetentionPeriod(Integer backupRetentionPeriod)
Specifies the number of days for which automatic DB snapshots are retained.
backupRetentionPeriod
- Specifies the number of days for which automatic DB snapshots are retained.DBInstance.Builder dbSecurityGroups(Collection<DBSecurityGroupMembership> dbSecurityGroups)
Provides List of DB security group elements containing only DBSecurityGroup.Name
and
DBSecurityGroup.Status
subelements.
dbSecurityGroups
- Provides List of DB security group elements containing only DBSecurityGroup.Name
and
DBSecurityGroup.Status
subelements.DBInstance.Builder dbSecurityGroups(DBSecurityGroupMembership... dbSecurityGroups)
Provides List of DB security group elements containing only DBSecurityGroup.Name
and
DBSecurityGroup.Status
subelements.
dbSecurityGroups
- Provides List of DB security group elements containing only DBSecurityGroup.Name
and
DBSecurityGroup.Status
subelements.DBInstance.Builder dbSecurityGroups(Consumer<DBSecurityGroupMembership.Builder>... dbSecurityGroups)
Provides List of DB security group elements containing only DBSecurityGroup.Name
and
DBSecurityGroup.Status
subelements.
List.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #dbSecurityGroups(List)
.dbSecurityGroups
- a consumer that will call methods on List.Builder
#dbSecurityGroups(List)
DBInstance.Builder vpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups)
Provides a list of VPC security group elements that the DB instance belongs to.
vpcSecurityGroups
- Provides a list of VPC security group elements that the DB instance belongs to.DBInstance.Builder vpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups)
Provides a list of VPC security group elements that the DB instance belongs to.
vpcSecurityGroups
- Provides a list of VPC security group elements that the DB instance belongs to.DBInstance.Builder vpcSecurityGroups(Consumer<VpcSecurityGroupMembership.Builder>... vpcSecurityGroups)
Provides a list of VPC security group elements that the DB instance belongs to.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #vpcSecurityGroups(List)
.vpcSecurityGroups
- a consumer that will call methods on List.Builder
#vpcSecurityGroups(List)
DBInstance.Builder dbParameterGroups(Collection<DBParameterGroupStatus> dbParameterGroups)
Provides the list of DB parameter groups applied to this DB instance.
dbParameterGroups
- Provides the list of DB parameter groups applied to this DB instance.DBInstance.Builder dbParameterGroups(DBParameterGroupStatus... dbParameterGroups)
Provides the list of DB parameter groups applied to this DB instance.
dbParameterGroups
- Provides the list of DB parameter groups applied to this DB instance.DBInstance.Builder dbParameterGroups(Consumer<DBParameterGroupStatus.Builder>... dbParameterGroups)
Provides the list of DB parameter groups applied to this DB instance.
This is a convenience that creates an instance of theList.Builder
avoiding
the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #dbParameterGroups(List)
.dbParameterGroups
- a consumer that will call methods on List.Builder
#dbParameterGroups(List)
DBInstance.Builder availabilityZone(String availabilityZone)
Specifies the name of the Availability Zone the DB instance is located in.
availabilityZone
- Specifies the name of the Availability Zone the DB instance is located in.DBInstance.Builder dbSubnetGroup(DBSubnetGroup dbSubnetGroup)
Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.
dbSubnetGroup
- Specifies information on the subnet group associated with the DB instance, including the name,
description, and subnets in the subnet group.default DBInstance.Builder dbSubnetGroup(Consumer<DBSubnetGroup.Builder> dbSubnetGroup)
Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.
This is a convenience that creates an instance of theDBSubnetGroup.Builder
avoiding the need to
create one manually via DBSubnetGroup.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to dbSubnetGroup(DBSubnetGroup)
.dbSubnetGroup
- a consumer that will call methods on DBSubnetGroup.Builder
dbSubnetGroup(DBSubnetGroup)
DBInstance.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow)
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
preferredMaintenanceWindow
- Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated
Time (UTC).DBInstance.Builder pendingModifiedValues(PendingModifiedValues pendingModifiedValues)
Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.
pendingModifiedValues
- Specifies that changes to the DB instance are pending. This element is only included when changes are
pending. Specific changes are identified by subelements.default DBInstance.Builder pendingModifiedValues(Consumer<PendingModifiedValues.Builder> pendingModifiedValues)
Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.
This is a convenience that creates an instance of thePendingModifiedValues.Builder
avoiding the need
to create one manually via PendingModifiedValues.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to pendingModifiedValues(PendingModifiedValues)
.pendingModifiedValues
- a consumer that will call methods on PendingModifiedValues.Builder
pendingModifiedValues(PendingModifiedValues)
DBInstance.Builder latestRestorableTime(Instant latestRestorableTime)
Specifies the latest time to which a database can be restored with point-in-time restore.
latestRestorableTime
- Specifies the latest time to which a database can be restored with point-in-time restore.DBInstance.Builder multiAZ(Boolean multiAZ)
Specifies if the DB instance is a Multi-AZ deployment.
multiAZ
- Specifies if the DB instance is a Multi-AZ deployment.DBInstance.Builder engineVersion(String engineVersion)
Indicates the database engine version.
engineVersion
- Indicates the database engine version.DBInstance.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
Indicates that minor version patches are applied automatically.
autoMinorVersionUpgrade
- Indicates that minor version patches are applied automatically.DBInstance.Builder readReplicaSourceDBInstanceIdentifier(String readReplicaSourceDBInstanceIdentifier)
Contains the identifier of the source DB instance if this DB instance is a Read Replica.
readReplicaSourceDBInstanceIdentifier
- Contains the identifier of the source DB instance if this DB instance is a Read Replica.DBInstance.Builder readReplicaDBInstanceIdentifiers(Collection<String> readReplicaDBInstanceIdentifiers)
Contains one or more identifiers of the Read Replicas associated with this DB instance.
readReplicaDBInstanceIdentifiers
- Contains one or more identifiers of the Read Replicas associated with this DB instance.DBInstance.Builder readReplicaDBInstanceIdentifiers(String... readReplicaDBInstanceIdentifiers)
Contains one or more identifiers of the Read Replicas associated with this DB instance.
readReplicaDBInstanceIdentifiers
- Contains one or more identifiers of the Read Replicas associated with this DB instance.DBInstance.Builder readReplicaDBClusterIdentifiers(Collection<String> readReplicaDBClusterIdentifiers)
Contains one or more identifiers of Aurora DB clusters that are Read Replicas of this DB instance.
readReplicaDBClusterIdentifiers
- Contains one or more identifiers of Aurora DB clusters that are Read Replicas of this DB instance.DBInstance.Builder readReplicaDBClusterIdentifiers(String... readReplicaDBClusterIdentifiers)
Contains one or more identifiers of Aurora DB clusters that are Read Replicas of this DB instance.
readReplicaDBClusterIdentifiers
- Contains one or more identifiers of Aurora DB clusters that are Read Replicas of this DB instance.DBInstance.Builder licenseModel(String licenseModel)
License model information for this DB instance.
licenseModel
- License model information for this DB instance.DBInstance.Builder iops(Integer iops)
Specifies the Provisioned IOPS (I/O operations per second) value.
iops
- Specifies the Provisioned IOPS (I/O operations per second) value.DBInstance.Builder optionGroupMemberships(Collection<OptionGroupMembership> optionGroupMemberships)
Provides the list of option group memberships for this DB instance.
optionGroupMemberships
- Provides the list of option group memberships for this DB instance.DBInstance.Builder optionGroupMemberships(OptionGroupMembership... optionGroupMemberships)
Provides the list of option group memberships for this DB instance.
optionGroupMemberships
- Provides the list of option group memberships for this DB instance.DBInstance.Builder optionGroupMemberships(Consumer<OptionGroupMembership.Builder>... optionGroupMemberships)
Provides the list of option group memberships for this DB instance.
This is a convenience that creates an instance of theList.Builder
avoiding
the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #optionGroupMemberships(List)
.optionGroupMemberships
- a consumer that will call methods on List.Builder
#optionGroupMemberships(List)
DBInstance.Builder characterSetName(String characterSetName)
If present, specifies the name of the character set that this instance is associated with.
characterSetName
- If present, specifies the name of the character set that this instance is associated with.DBInstance.Builder secondaryAvailabilityZone(String secondaryAvailabilityZone)
If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
secondaryAvailabilityZone
- If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ
support.DBInstance.Builder publiclyAccessible(Boolean publiclyAccessible)
Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.
Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.
Default VPC:true
VPC:false
If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance is publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance is private.
publiclyAccessible
- Specifies the accessibility options for the DB instance. A value of true specifies an Internet-facing
instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false
specifies an internal instance with a DNS name that resolves to a private IP address.
Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.
Default VPC:true
VPC:false
If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance is publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance is private.
DBInstance.Builder statusInfos(Collection<DBInstanceStatusInfo> statusInfos)
The status of a Read Replica. If the instance is not a Read Replica, this is blank.
statusInfos
- The status of a Read Replica. If the instance is not a Read Replica, this is blank.DBInstance.Builder statusInfos(DBInstanceStatusInfo... statusInfos)
The status of a Read Replica. If the instance is not a Read Replica, this is blank.
statusInfos
- The status of a Read Replica. If the instance is not a Read Replica, this is blank.DBInstance.Builder statusInfos(Consumer<DBInstanceStatusInfo.Builder>... statusInfos)
The status of a Read Replica. If the instance is not a Read Replica, this is blank.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #statusInfos(List)
.statusInfos
- a consumer that will call methods on List.Builder
#statusInfos(List)
DBInstance.Builder storageType(String storageType)
Specifies the storage type associated with DB instance.
storageType
- Specifies the storage type associated with DB instance.DBInstance.Builder tdeCredentialArn(String tdeCredentialArn)
The ARN from the key store with which the instance is associated for TDE encryption.
tdeCredentialArn
- The ARN from the key store with which the instance is associated for TDE encryption.DBInstance.Builder dbInstancePort(Integer dbInstancePort)
Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.
dbInstancePort
- Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this
can be a different port than the DB cluster port.DBInstance.Builder dbClusterIdentifier(String dbClusterIdentifier)
If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB instance is a member of.
dbClusterIdentifier
- If the DB instance is a member of a DB cluster, contains the name of the DB cluster that the DB
instance is a member of.DBInstance.Builder storageEncrypted(Boolean storageEncrypted)
Specifies whether the DB instance is encrypted.
storageEncrypted
- Specifies whether the DB instance is encrypted.DBInstance.Builder kmsKeyId(String kmsKeyId)
If StorageEncrypted
is true, the AWS KMS key identifier for the encrypted DB instance.
kmsKeyId
- If StorageEncrypted
is true, the AWS KMS key identifier for the encrypted DB instance.DBInstance.Builder dbiResourceId(String dbiResourceId)
The AWS Region-unique, immutable identifier for the DB instance. This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB instance is accessed.
dbiResourceId
- The AWS Region-unique, immutable identifier for the DB instance. This identifier is found in AWS
CloudTrail log entries whenever the AWS KMS key for the DB instance is accessed.DBInstance.Builder caCertificateIdentifier(String caCertificateIdentifier)
The identifier of the CA certificate for this DB instance.
caCertificateIdentifier
- The identifier of the CA certificate for this DB instance.DBInstance.Builder domainMemberships(Collection<DomainMembership> domainMemberships)
The Active Directory Domain membership records associated with the DB instance.
domainMemberships
- The Active Directory Domain membership records associated with the DB instance.DBInstance.Builder domainMemberships(DomainMembership... domainMemberships)
The Active Directory Domain membership records associated with the DB instance.
domainMemberships
- The Active Directory Domain membership records associated with the DB instance.DBInstance.Builder domainMemberships(Consumer<DomainMembership.Builder>... domainMemberships)
The Active Directory Domain membership records associated with the DB instance.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #domainMemberships(List)
.domainMemberships
- a consumer that will call methods on List.Builder
#domainMemberships(List)
DBInstance.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot)
Specifies whether tags are copied from the DB instance to snapshots of the DB instance.
copyTagsToSnapshot
- Specifies whether tags are copied from the DB instance to snapshots of the DB instance.DBInstance.Builder monitoringInterval(Integer monitoringInterval)
The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.
monitoringInterval
- The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB
instance.DBInstance.Builder enhancedMonitoringResourceArn(String enhancedMonitoringResourceArn)
The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.
enhancedMonitoringResourceArn
- The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced
Monitoring metrics data for the DB instance.DBInstance.Builder monitoringRoleArn(String monitoringRoleArn)
The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.
monitoringRoleArn
- The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch
Logs.DBInstance.Builder promotionTier(Integer promotionTier)
A value that specifies the order in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster.
promotionTier
- A value that specifies the order in which an Aurora Replica is promoted to the primary instance after
a failure of the existing primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster.DBInstance.Builder dbInstanceArn(String dbInstanceArn)
The Amazon Resource Name (ARN) for the DB instance.
dbInstanceArn
- The Amazon Resource Name (ARN) for the DB instance.DBInstance.Builder timezone(String timezone)
The time zone of the DB instance. In most cases, the Timezone
element is empty.
Timezone
content appears only for Microsoft SQL Server DB instances that were created with a
time zone specified.
timezone
- The time zone of the DB instance. In most cases, the Timezone
element is empty.
Timezone
content appears only for Microsoft SQL Server DB instances that were created
with a time zone specified.DBInstance.Builder iamDatabaseAuthenticationEnabled(Boolean iamDatabaseAuthenticationEnabled)
True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
IAM database authentication can be enabled for the following database engines
For MySQL 5.6, minor version 5.6.34 or higher
For MySQL 5.7, minor version 5.7.16 or higher
Aurora 5.6 or higher. To enable IAM database authentication for Aurora, see DBCluster Type.
iamDatabaseAuthenticationEnabled
- True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled,
and otherwise false.
IAM database authentication can be enabled for the following database engines
For MySQL 5.6, minor version 5.6.34 or higher
For MySQL 5.7, minor version 5.7.16 or higher
Aurora 5.6 or higher. To enable IAM database authentication for Aurora, see DBCluster Type.
DBInstance.Builder performanceInsightsEnabled(Boolean performanceInsightsEnabled)
True if Performance Insights is enabled for the DB instance, and otherwise false.
performanceInsightsEnabled
- True if Performance Insights is enabled for the DB instance, and otherwise false.DBInstance.Builder performanceInsightsKMSKeyId(String performanceInsightsKMSKeyId)
The AWS KMS key identifier for encryption of Performance Insights data. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.
performanceInsightsKMSKeyId
- The AWS KMS key identifier for encryption of Performance Insights data. The KMS key ID is the Amazon
Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.