Class CreateDbInstanceRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateDbInstanceRequest.Builder,CreateDbInstanceRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal IntegerNot supported by Neptune.final BooleanIndicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.final StringThe EC2 Availability Zone that the DB instance is created infinal IntegerThe number of days for which automated backups are retained.builder()final String(Not supported by Neptune)final BooleanTrue to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false.final StringThe identifier of the DB cluster that the instance will belong to.final StringThe compute and memory capacity of the DB instance, for example,db.m4.large.final StringThe DB instance identifier.final StringdbName()Not supported.final StringThe name of the DB parameter group to associate with this DB instance.A list of DB security groups to associate with this DB instance.final StringA DB subnet group to associate with this DB instance.final BooleanA value that indicates whether the DB instance has deletion protection enabled.final Stringdomain()Specify the Active Directory Domain to create the instance in.final StringSpecify the name of the IAM role to be used when making API calls to the Directory Service.The list of log types that need to be enabled for exporting to CloudWatch Logs.final BooleanNot supported by Neptune (ignored).final Boolean(Not supported by Neptune)final Stringengine()The name of the database engine to be used for this instance.final StringThe version number of the database engine to use.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final booleanFor responses, this returns true if the service returned a value for the DBSecurityGroups property.final booleanFor responses, this returns true if the service returned a value for the EnableCloudwatchLogsExports property.final inthashCode()final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final booleanFor responses, this returns true if the service returned a value for the VpcSecurityGroupIds property.final Integeriops()The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.final StringkmsKeyId()The Amazon KMS key identifier for an encrypted DB instance.final StringLicense model information for this DB instance.final StringNot supported by Neptune.final StringNot supported by Neptune.final IntegerThe interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.final StringThe ARN for the IAM role that permits Neptune to send enhanced monitoring metrics to Amazon CloudWatch Logs.final BooleanmultiAZ()Specifies if the DB instance is a Multi-AZ deployment.final String(Not supported by Neptune)final String(Not supported by Neptune)final Integerport()The port number on which the database accepts connections.final StringThe daily time range during which automated backups are created.final StringThe time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).final IntegerA value that specifies the order in which an Read Replica is promoted to the primary instance after a failure of the existing primary instance.final BooleanDeprecated.static Class<? extends CreateDbInstanceRequest.Builder> final BooleanSpecifies whether the DB instance is encrypted.final StringSpecifies the storage type to be associated with the DB instance.tags()The tags to assign to the new instance.final StringThe ARN from the key store with which to associate the instance for TDE encryption.final StringThe password for the given ARN from the key store in order to access the device.final Stringtimezone()The time zone of the DB instance.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.A list of EC2 VPC security groups to associate with this DB instance.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
dbName
-
dbInstanceIdentifier
The DB instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
mydbinstance- Returns:
- The DB instance identifier. This parameter is stored as a lowercase string.
Constraints:
-
Must contain from 1 to 63 letters, numbers, or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
mydbinstance -
-
-
allocatedStorage
Not supported by Neptune.
- Returns:
- Not supported by Neptune.
-
dbInstanceClass
The compute and memory capacity of the DB instance, for example,
db.m4.large. Not all DB instance classes are available in all Amazon Regions.- Returns:
- The compute and memory capacity of the DB instance, for example,
db.m4.large. Not all DB instance classes are available in all Amazon Regions.
-
engine
The name of the database engine to be used for this instance.
Valid Values:
neptune- Returns:
- The name of the database engine to be used for this instance.
Valid Values:
neptune
-
masterUsername
-
masterUserPassword
Not supported by Neptune.
- Returns:
- Not supported by Neptune.
-
hasDbSecurityGroups
public final boolean hasDbSecurityGroups()For responses, this returns true if the service returned a value for the DBSecurityGroups property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
dbSecurityGroups
A list of DB security groups to associate with this DB instance.
Default: The default DB security group for the database engine.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasDbSecurityGroups()method.- Returns:
- A list of DB security groups to associate with this DB instance.
Default: The default DB security group for the database engine.
-
hasVpcSecurityGroupIds
public final boolean hasVpcSecurityGroupIds()For responses, this returns true if the service returned a value for the VpcSecurityGroupIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
vpcSecurityGroupIds
A list of EC2 VPC security groups to associate with this DB instance.
Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see CreateDBCluster.
Default: The default EC2 VPC security group for the DB subnet group's VPC.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasVpcSecurityGroupIds()method.- Returns:
- A list of EC2 VPC security groups to associate with this DB instance.
Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see CreateDBCluster.
Default: The default EC2 VPC security group for the DB subnet group's VPC.
-
availabilityZone
The EC2 Availability Zone that the DB instance is created in
Default: A random, system-chosen Availability Zone in the endpoint's Amazon Region.
Example:
us-east-1dConstraint: The AvailabilityZone parameter can't be specified if the MultiAZ parameter is set to
true. The specified Availability Zone must be in the same Amazon Region as the current endpoint.- Returns:
- The EC2 Availability Zone that the DB instance is created in
Default: A random, system-chosen Availability Zone in the endpoint's Amazon Region.
Example:
us-east-1dConstraint: The AvailabilityZone parameter can't be specified if the MultiAZ parameter is set to
true. The specified Availability Zone must be in the same Amazon Region as the current endpoint.
-
dbSubnetGroupName
A DB subnet group to associate with this DB instance.
If there is no DB subnet group, then it is a non-VPC DB instance.
- Returns:
- A DB subnet group to associate with this DB instance.
If there is no DB subnet group, then it is a non-VPC DB instance.
-
preferredMaintenanceWindow
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format:
ddd:hh24:mi-ddd:hh24:miThe default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region, occurring on a random day of the week.
Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
Constraints: Minimum 30-minute window.
- Returns:
- The time range each week during which system maintenance can occur, in Universal Coordinated Time
(UTC).
Format:
ddd:hh24:mi-ddd:hh24:miThe default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Region, occurring on a random day of the week.
Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
Constraints: Minimum 30-minute window.
-
dbParameterGroupName
The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the default DBParameterGroup for the specified engine is used.
Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Cannot end with a hyphen or contain two consecutive hyphens
- Returns:
- The name of the DB parameter group to associate with this DB instance. If this argument is omitted, the
default DBParameterGroup for the specified engine is used.
Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Cannot end with a hyphen or contain two consecutive hyphens
-
-
-
backupRetentionPeriod
The number of days for which automated backups are retained.
Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see CreateDBCluster.
Default: 1
Constraints:
-
Must be a value from 0 to 35
-
Cannot be set to 0 if the DB instance is a source to Read Replicas
- Returns:
- The number of days for which automated backups are retained.
Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see CreateDBCluster.
Default: 1
Constraints:
-
Must be a value from 0 to 35
-
Cannot be set to 0 if the DB instance is a source to Read Replicas
-
-
-
preferredBackupWindow
The daily time range during which automated backups are created.
Not applicable. The daily time range for creating automated backups is managed by the DB cluster. For more information, see CreateDBCluster.
- Returns:
- The daily time range during which automated backups are created.
Not applicable. The daily time range for creating automated backups is managed by the DB cluster. For more information, see CreateDBCluster.
-
port
The port number on which the database accepts connections.
Not applicable. The port is managed by the DB cluster. For more information, see CreateDBCluster.
Default:
8182Type: Integer
- Returns:
- The port number on which the database accepts connections.
Not applicable. The port is managed by the DB cluster. For more information, see CreateDBCluster.
Default:
8182Type: Integer
-
multiAZ
Specifies if the DB instance is a Multi-AZ deployment. You can't set the AvailabilityZone parameter if the MultiAZ parameter is set to true.
- Returns:
- Specifies if the DB instance is a Multi-AZ deployment. You can't set the AvailabilityZone parameter if the MultiAZ parameter is set to true.
-
engineVersion
The version number of the database engine to use. Currently, setting this parameter has no effect.
- Returns:
- The version number of the database engine to use. Currently, setting this parameter has no effect.
-
autoMinorVersionUpgrade
Indicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.
Default:
true- Returns:
- Indicates that minor engine upgrades are applied automatically to the DB instance during the maintenance
window.
Default:
true
-
licenseModel
License model information for this DB instance.
Valid values:
license-included|bring-your-own-license|general-public-license- Returns:
- License model information for this DB instance.
Valid values:
license-included|bring-your-own-license|general-public-license
-
iops
The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.
- Returns:
- The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance.
-
optionGroupName
(Not supported by Neptune)
- Returns:
- (Not supported by Neptune)
-
characterSetName
(Not supported by Neptune)
- Returns:
- (Not supported by Neptune)
-
publiclyAccessible
Deprecated.This flag should no longer be used.
- Returns:
- This flag should no longer be used.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
The tags to assign to the new instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- The tags to assign to the new instance.
-
dbClusterIdentifier
The identifier of the DB cluster that the instance will belong to.
For information on creating a DB cluster, see CreateDBCluster.
Type: String
- Returns:
- The identifier of the DB cluster that the instance will belong to.
For information on creating a DB cluster, see CreateDBCluster.
Type: String
-
storageType
Specifies the storage type to be associated with the DB instance.
Not applicable. Storage is managed by the DB Cluster.
- Returns:
- Specifies the storage type to be associated with the DB instance.
Not applicable. Storage is managed by the DB Cluster.
-
tdeCredentialArn
The ARN from the key store with which to associate the instance for TDE encryption.
- Returns:
- The ARN from the key store with which to associate the instance for TDE encryption.
-
tdeCredentialPassword
The password for the given ARN from the key store in order to access the device.
- Returns:
- The password for the given ARN from the key store in order to access the device.
-
storageEncrypted
Specifies whether the DB instance is encrypted.
Not applicable. The encryption for DB instances is managed by the DB cluster. For more information, see CreateDBCluster.
Default: false
- Returns:
- Specifies whether the DB instance is encrypted.
Not applicable. The encryption for DB instances is managed by the DB cluster. For more information, see CreateDBCluster.
Default: false
-
kmsKeyId
The Amazon KMS key identifier for an encrypted DB instance.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a DB instance with the same Amazon account that owns the KMS encryption key used to encrypt the new DB instance, then you can use the KMS key alias instead of the ARN for the KM encryption key.
Not applicable. The KMS key identifier is managed by the DB cluster. For more information, see CreateDBCluster.
If the
StorageEncryptedparameter is true, and you do not specify a value for theKmsKeyIdparameter, then Amazon Neptune will use your default encryption key. Amazon KMS creates the default encryption key for your Amazon account. Your Amazon account has a different default encryption key for each Amazon Region.- Returns:
- The Amazon KMS key identifier for an encrypted DB instance.
The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a DB instance with the same Amazon account that owns the KMS encryption key used to encrypt the new DB instance, then you can use the KMS key alias instead of the ARN for the KM encryption key.
Not applicable. The KMS key identifier is managed by the DB cluster. For more information, see CreateDBCluster.
If the
StorageEncryptedparameter is true, and you do not specify a value for theKmsKeyIdparameter, then Amazon Neptune will use your default encryption key. Amazon KMS creates the default encryption key for your Amazon account. Your Amazon account has a different default encryption key for each Amazon Region.
-
domain
Specify the Active Directory Domain to create the instance in.
- Returns:
- Specify the Active Directory Domain to create the instance in.
-
copyTagsToSnapshot
True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false. The default is false.
- Returns:
- True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false. The default is false.
-
monitoringInterval
The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.
If
MonitoringRoleArnis specified, then you must also setMonitoringIntervalto a value other than 0.Valid Values:
0, 1, 5, 10, 15, 30, 60- Returns:
- The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB
instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.
If
MonitoringRoleArnis specified, then you must also setMonitoringIntervalto a value other than 0.Valid Values:
0, 1, 5, 10, 15, 30, 60
-
monitoringRoleArn
The ARN for the IAM role that permits Neptune to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example,
arn:aws:iam:123456789012:role/emaccess.If
MonitoringIntervalis set to a value other than 0, then you must supply aMonitoringRoleArnvalue.- Returns:
- The ARN for the IAM role that permits Neptune to send enhanced monitoring metrics to Amazon CloudWatch
Logs. For example,
arn:aws:iam:123456789012:role/emaccess.If
MonitoringIntervalis set to a value other than 0, then you must supply aMonitoringRoleArnvalue.
-
domainIAMRoleName
Specify the name of the IAM role to be used when making API calls to the Directory Service.
- Returns:
- Specify the name of the IAM role to be used when making API calls to the Directory Service.
-
promotionTier
A value that specifies the order in which an Read Replica is promoted to the primary instance after a failure of the existing primary instance.
Default: 1
Valid Values: 0 - 15
- Returns:
- A value that specifies the order in which an Read Replica is promoted to the primary instance after a
failure of the existing primary instance.
Default: 1
Valid Values: 0 - 15
-
timezone
The time zone of the DB instance.
- Returns:
- The time zone of the DB instance.
-
enableIAMDatabaseAuthentication
Not supported by Neptune (ignored).
- Returns:
- Not supported by Neptune (ignored).
-
enablePerformanceInsights
(Not supported by Neptune)
- Returns:
- (Not supported by Neptune)
-
performanceInsightsKMSKeyId
(Not supported by Neptune)
- Returns:
- (Not supported by Neptune)
-
hasEnableCloudwatchLogsExports
public final boolean hasEnableCloudwatchLogsExports()For responses, this returns true if the service returned a value for the EnableCloudwatchLogsExports property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
enableCloudwatchLogsExports
The list of log types that need to be enabled for exporting to CloudWatch Logs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEnableCloudwatchLogsExports()method.- Returns:
- The list of log types that need to be enabled for exporting to CloudWatch Logs.
-
deletionProtection
A value that indicates whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. See Deleting a DB Instance.
DB instances in a DB cluster can be deleted even when deletion protection is enabled in their parent DB cluster.
- Returns:
- A value that indicates whether the DB instance has deletion protection enabled. The database can't be
deleted when deletion protection is enabled. By default, deletion protection is disabled. See Deleting
a DB Instance.
DB instances in a DB cluster can be deleted even when deletion protection is enabled in their parent DB cluster.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateDbInstanceRequest.Builder,CreateDbInstanceRequest> - Specified by:
toBuilderin classNeptuneRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-