You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::RDS::DBInstance
- Inherits:
-
Aws::Resources::Resource
- Object
- Aws::Resources::Resource
- Aws::RDS::DBInstance
- Defined in:
- (unknown)
Instance Attribute Summary collapse
-
#allocated_storage ⇒ Integer
readonly
Specifies the allocated storage size specified in gibibytes.
-
#associated_roles ⇒ Array<Types::DBInstanceRole>
readonly
The AWS Identity and Access Management (IAM) roles associated with the DB instance.
-
#auto_minor_version_upgrade ⇒ Boolean
readonly
Indicates that minor version patches are applied automatically.
-
#availability_zone ⇒ String
readonly
Specifies the name of the Availability Zone the DB instance is located in.
-
#backup_retention_period ⇒ Integer
readonly
Specifies the number of days for which automatic DB snapshots are retained.
-
#ca_certificate_identifier ⇒ String
readonly
The identifier of the CA certificate for this DB instance.
-
#character_set_name ⇒ String
readonly
If present, specifies the name of the character set that this instance is associated with.
-
#copy_tags_to_snapshot ⇒ Boolean
readonly
Specifies whether tags are copied from the DB instance to snapshots of the DB instance.
-
#db_cluster_identifier ⇒ String
readonly
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.
-
#db_instance_arn ⇒ String
readonly
The Amazon Resource Name (ARN) for the DB instance.
-
#db_instance_class ⇒ String
readonly
Contains the name of the compute and memory capacity class of the DB instance.
-
#db_instance_identifier ⇒ String
readonly
Contains a user-supplied database identifier.
-
#db_instance_port ⇒ Integer
readonly
Specifies the port that the DB instance listens on.
-
#db_instance_status ⇒ String
readonly
Specifies the current state of this database.
-
#db_name ⇒ String
readonly
The meaning of this parameter differs according to the database engine you use.
-
#db_parameter_groups ⇒ Array<Types::DBParameterGroupStatus>
readonly
Provides the list of DB parameter groups applied to this DB instance.
-
#db_security_groups ⇒ Array<Types::DBSecurityGroupMembership>
readonly
A list of DB security group elements containing
DBSecurityGroup.Name
andDBSecurityGroup.Status
subelements. -
#db_subnet_group ⇒ Types::DBSubnetGroup
readonly
Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.
-
#dbi_resource_id ⇒ String
readonly
The AWS Region-unique, immutable identifier for the DB instance.
-
#deletion_protection ⇒ Boolean
readonly
Indicates if the DB instance has deletion protection enabled.
-
#domain_memberships ⇒ Array<Types::DomainMembership>
readonly
The Active Directory Domain membership records associated with the DB instance.
-
#enabled_cloudwatch_logs_exports ⇒ Array<String>
readonly
A list of log types that this DB instance is configured to export to CloudWatch Logs.
-
#endpoint ⇒ Types::Endpoint
readonly
Specifies the connection endpoint.
-
#engine ⇒ String
readonly
The name of the database engine to be used for this DB instance.
-
#engine_version ⇒ String
readonly
Indicates the database engine version.
-
#enhanced_monitoring_resource_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.
-
#iam_database_authentication_enabled ⇒ Boolean
readonly
True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.
-
#id ⇒ String
readonly
-
#instance_create_time ⇒ Time
readonly
Provides the date and time the DB instance was created.
-
#iops ⇒ Integer
readonly
Specifies the Provisioned IOPS (I/O operations per second) value.
-
#kms_key_id ⇒ String
readonly
If
StorageEncrypted
is true, the AWS KMS key identifier for the encrypted DB instance. -
#latest_restorable_time ⇒ Time
readonly
Specifies the latest time to which a database can be restored with point-in-time restore.
-
#license_model ⇒ String
readonly
License model information for this DB instance.
-
#listener_endpoint ⇒ Types::Endpoint
readonly
Specifies the listener connection endpoint for SQL Server Always On.
-
#master_username ⇒ String
readonly
Contains the master username for the DB instance.
-
#max_allocated_storage ⇒ Integer
readonly
The upper limit to which Amazon RDS can automatically scale the storage of the DB instance.
-
#monitoring_interval ⇒ Integer
readonly
The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.
-
#monitoring_role_arn ⇒ String
readonly
The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.
-
#multi_az ⇒ Boolean
readonly
Specifies if the DB instance is a Multi-AZ deployment.
-
#nchar_character_set_name ⇒ String
readonly
The name of the NCHAR character set for the Oracle DB instance.
-
#option_group_memberships ⇒ Array<Types::OptionGroupMembership>
readonly
Provides the list of option group memberships for this DB instance.
-
#pending_modified_values ⇒ Types::PendingModifiedValues
readonly
Specifies that changes to the DB instance are pending.
-
#performance_insights_enabled ⇒ Boolean
readonly
True if Performance Insights is enabled for the DB instance, and otherwise false.
-
#performance_insights_kms_key_id ⇒ String
readonly
The AWS KMS key identifier for encryption of Performance Insights data.
-
#performance_insights_retention_period ⇒ Integer
readonly
The amount of time, in days, to retain Performance Insights data.
-
#preferred_backup_window ⇒ String
readonly
Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the
BackupRetentionPeriod
. -
#preferred_maintenance_window ⇒ String
readonly
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
-
#processor_features ⇒ Array<Types::ProcessorFeature>
readonly
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
-
#promotion_tier ⇒ Integer
readonly
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.
-
#publicly_accessible ⇒ Boolean
readonly
Specifies the accessibility options for the DB instance.
-
#read_replica_db_cluster_identifiers ⇒ Array<String>
readonly
Contains one or more identifiers of Aurora DB clusters to which the RDS DB instance is replicated as a read replica.
-
#read_replica_db_instance_identifiers ⇒ Array<String>
readonly
Contains one or more identifiers of the read replicas associated with this DB instance.
-
#read_replica_source_db_instance_identifier ⇒ String
readonly
Contains the identifier of the source DB instance if this DB instance is a read replica.
-
#replica_mode ⇒ String
readonly
The open mode of an Oracle read replica.
-
#secondary_availability_zone ⇒ String
readonly
If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
-
#status_infos ⇒ Array<Types::DBInstanceStatusInfo>
readonly
The status of a read replica.
-
#storage_encrypted ⇒ Boolean
readonly
Specifies whether the DB instance is encrypted.
-
#storage_type ⇒ String
readonly
Specifies the storage type associated with DB instance.
-
#tag_list ⇒ Array<Types::Tag>
readonly
A list of tags.
-
#tde_credential_arn ⇒ String
readonly
The ARN from the key store with which the instance is associated for TDE encryption.
-
#timezone ⇒ String
readonly
The time zone of the DB instance.
-
#vpc_security_groups ⇒ Array<Types::VpcSecurityGroupMembership>
readonly
Provides a list of VPC security group elements that the DB instance belongs to.
Attributes inherited from Aws::Resources::Resource
Instance Method Summary collapse
-
#certificate ⇒ Certificate?
-
#cluster ⇒ DBCluster?
-
#create(options = {}) ⇒ DBInstance
-
#create_read_replica(options = {}) ⇒ DBInstance
-
#create_snapshot(options = {}) ⇒ DBSnapshot
-
#delete(options = {}) ⇒ DBInstance
-
#events(options = {}) ⇒ Collection<Event>
Returns a Collection of Event resources.
-
#initialize ⇒ Object
constructor
-
#log_files(options = {}) ⇒ Collection<DBLogFile>
Returns a Collection of DBLogFile resources.
-
#modify(options = {}) ⇒ DBInstance
-
#option_groups ⇒ Array<OptionGroup>?
-
#parameter_groups ⇒ Array<DBParameterGroup>?
-
#pending_maintenance_actions(options = {}) ⇒ Collection<PendingMaintenanceAction>
Returns a Collection of PendingMaintenanceAction resources.
-
#promote(options = {}) ⇒ DBInstance
-
#read_replicas ⇒ Array<DBInstance>?
-
#reboot(options = {}) ⇒ DBInstance
-
#restore(options = {}) ⇒ DBInstance
-
#security_groups ⇒ Array<DBSecurityGroup>?
-
#snapshots(options = {}) ⇒ Collection<DBSnapshot>
Returns a Collection of DBSnapshot resources.
-
#source ⇒ DBInstance?
-
#subnet_group ⇒ DBSubnetGroup?
-
#subscribe_to(options = {}) ⇒ EventSubscription
-
#unsubscribe_from(options = {}) ⇒ EventSubscription
Methods inherited from Aws::Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Aws::Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(id, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Attribute Details
#allocated_storage ⇒ Integer (readonly)
Specifies the allocated storage size specified in gibibytes.
#associated_roles ⇒ Array<Types::DBInstanceRole> (readonly)
The AWS Identity and Access Management (IAM) roles associated with the DB instance.
#auto_minor_version_upgrade ⇒ Boolean (readonly)
Indicates that minor version patches are applied automatically.
#availability_zone ⇒ String (readonly)
Specifies the name of the Availability Zone the DB instance is located in.
#backup_retention_period ⇒ Integer (readonly)
Specifies the number of days for which automatic DB snapshots are retained.
#ca_certificate_identifier ⇒ String (readonly)
The identifier of the CA certificate for this DB instance.
#character_set_name ⇒ String (readonly)
If present, specifies the name of the character set that this instance is associated with.
#copy_tags_to_snapshot ⇒ Boolean (readonly)
Specifies whether tags are copied from the DB instance to snapshots of the DB instance.
Amazon Aurora
Not applicable. Copying tags to snapshots is managed by the DB cluster.
Setting this value for an Aurora DB instance has no effect on the DB
cluster setting. For more information, see DBCluster
.
#db_cluster_identifier ⇒ String (readonly)
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.
#db_instance_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) for the DB instance.
#db_instance_class ⇒ String (readonly)
Contains the name of the compute and memory capacity class of the DB instance.
#db_instance_identifier ⇒ String (readonly)
Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.
#db_instance_port ⇒ Integer (readonly)
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.
#db_instance_status ⇒ String (readonly)
Specifies the current state of this database.
For information about DB instance statuses, see DB Instance Status in the Amazon RDS User Guide.
#db_name ⇒ String (readonly)
The meaning of this parameter differs according to the database engine you use.
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.
#db_parameter_groups ⇒ Array<Types::DBParameterGroupStatus> (readonly)
Provides the list of DB parameter groups applied to this DB instance.
#db_security_groups ⇒ Array<Types::DBSecurityGroupMembership> (readonly)
A list of DB security group elements containing DBSecurityGroup.Name
and DBSecurityGroup.Status
subelements.
#db_subnet_group ⇒ Types::DBSubnetGroup (readonly)
Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.
#dbi_resource_id ⇒ String (readonly)
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.
#deletion_protection ⇒ Boolean (readonly)
Indicates if the DB instance has deletion protection enabled. The database can\'t be deleted when deletion protection is enabled. For more information, see Deleting a DB Instance.
#domain_memberships ⇒ Array<Types::DomainMembership> (readonly)
The Active Directory Domain membership records associated with the DB instance.
#enabled_cloudwatch_logs_exports ⇒ Array<String> (readonly)
A list of log types that this DB instance is configured to export to CloudWatch Logs.
Log types vary by DB engine. For information about the log types for each DB engine, see Amazon RDS Database Log Files in the Amazon RDS User Guide.
#endpoint ⇒ Types::Endpoint (readonly)
Specifies the connection endpoint.
#engine ⇒ String (readonly)
The name of the database engine to be used for this DB instance.
#engine_version ⇒ String (readonly)
Indicates the database engine version.
#enhanced_monitoring_resource_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.
#iam_database_authentication_enabled ⇒ Boolean (readonly)
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.
#id ⇒ String (readonly)
#instance_create_time ⇒ Time (readonly)
Provides the date and time the DB instance was created.
#iops ⇒ Integer (readonly)
Specifies the Provisioned IOPS (I/O operations per second) value.
#kms_key_id ⇒ String (readonly)
If StorageEncrypted
is true, the AWS KMS key identifier for the
encrypted DB instance.
#latest_restorable_time ⇒ Time (readonly)
Specifies the latest time to which a database can be restored with point-in-time restore.
#license_model ⇒ String (readonly)
License model information for this DB instance.
#listener_endpoint ⇒ Types::Endpoint (readonly)
Specifies the listener connection endpoint for SQL Server Always On.
#master_username ⇒ String (readonly)
Contains the master username for the DB instance.
#max_allocated_storage ⇒ Integer (readonly)
The upper limit to which Amazon RDS can automatically scale the storage of the DB instance.
#monitoring_interval ⇒ Integer (readonly)
The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.
#monitoring_role_arn ⇒ String (readonly)
The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.
#multi_az ⇒ Boolean (readonly)
Specifies if the DB instance is a Multi-AZ deployment.
#nchar_character_set_name ⇒ String (readonly)
The name of the NCHAR character set for the Oracle DB instance. This character set specifies the Unicode encoding for data stored in table columns of type NCHAR, NCLOB, or NVARCHAR2.
#option_group_memberships ⇒ Array<Types::OptionGroupMembership> (readonly)
Provides the list of option group memberships for this DB instance.
#pending_modified_values ⇒ Types::PendingModifiedValues (readonly)
Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.
#performance_insights_enabled ⇒ Boolean (readonly)
True if Performance Insights is enabled for the DB instance, and otherwise false.
#performance_insights_kms_key_id ⇒ String (readonly)
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.
#performance_insights_retention_period ⇒ Integer (readonly)
The amount of time, in days, to retain Performance Insights data. Valid values are 7 or 731 (2 years).
#preferred_backup_window ⇒ String (readonly)
Specifies the daily time range during which automated backups are
created if automated backups are enabled, as determined by the
BackupRetentionPeriod
.
#preferred_maintenance_window ⇒ String (readonly)
Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
#processor_features ⇒ Array<Types::ProcessorFeature> (readonly)
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
#promotion_tier ⇒ Integer (readonly)
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 in the Amazon Aurora User Guide.
#publicly_accessible ⇒ Boolean (readonly)
Specifies the accessibility options for the DB instance.
When the DB instance is publicly accessible, its DNS endpoint resolves to the private IP address from within the DB instance\'s VPC, and to the public IP address from outside of the DB instance\'s VPC. Access to the DB instance is ultimately controlled by the security group it uses, and that public access is not permitted if the security group assigned to the DB instance doesn\'t permit it.
When the DB instance isn\'t publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.
For more information, see CreateDBInstance.
#read_replica_db_cluster_identifiers ⇒ Array<String> (readonly)
Contains one or more identifiers of Aurora DB clusters to which the RDS DB instance is replicated as a read replica. For example, when you create an Aurora read replica of an RDS MySQL DB instance, the Aurora MySQL DB cluster for the Aurora read replica is shown. This output does not contain information about cross region Aurora read replicas.
#read_replica_db_instance_identifiers ⇒ Array<String> (readonly)
Contains one or more identifiers of the read replicas associated with this DB instance.
#read_replica_source_db_instance_identifier ⇒ String (readonly)
Contains the identifier of the source DB instance if this DB instance is a read replica.
#replica_mode ⇒ String (readonly)
The open mode of an Oracle read replica. The default is
open-read-only
. For more information, see Working with Oracle Read
Replicas for Amazon RDS in the Amazon RDS User Guide.
#secondary_availability_zone ⇒ String (readonly)
If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
#status_infos ⇒ Array<Types::DBInstanceStatusInfo> (readonly)
The status of a read replica. If the instance isn\'t a read replica, this is blank.
#storage_encrypted ⇒ Boolean (readonly)
Specifies whether the DB instance is encrypted.
#storage_type ⇒ String (readonly)
Specifies the storage type associated with DB instance.
#tag_list ⇒ Array<Types::Tag> (readonly)
A list of tags. For more information, see Tagging Amazon RDS Resources in the Amazon RDS User Guide.
#tde_credential_arn ⇒ String (readonly)
The ARN from the key store with which the instance is associated for TDE encryption.
#timezone ⇒ String (readonly)
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.
#vpc_security_groups ⇒ Array<Types::VpcSecurityGroupMembership> (readonly)
Provides a list of VPC security group elements that the DB instance belongs to.
Instance Method Details
#certificate ⇒ Certificate?
#cluster ⇒ DBCluster?
#create(options = {}) ⇒ DBInstance
#create_read_replica(options = {}) ⇒ DBInstance
#create_snapshot(options = {}) ⇒ DBSnapshot
#delete(options = {}) ⇒ DBInstance
#events(options = {}) ⇒ Collection<Event>
Returns a Collection of Event resources. No API requests are made until you call an enumerable method on the collection. Client#describe_events will be called multiple times until every Event has been yielded.
#log_files(options = {}) ⇒ Collection<DBLogFile>
Returns a Collection of Aws::RDS::DBLogFile resources. No API requests are made until you call an enumerable method on the collection. Client#describe_db_log_files will be called multiple times until every Aws::RDS::DBLogFile has been yielded.
#modify(options = {}) ⇒ DBInstance
#option_groups ⇒ Array<OptionGroup>?
#parameter_groups ⇒ Array<DBParameterGroup>?
#pending_maintenance_actions(options = {}) ⇒ Collection<PendingMaintenanceAction>
Returns a Collection of PendingMaintenanceAction resources. No API requests are made until you call an enumerable method on the collection. Client#describe_pending_maintenance_actions will be called multiple times until every PendingMaintenanceAction has been yielded.
#promote(options = {}) ⇒ DBInstance
#read_replicas ⇒ Array<DBInstance>?
#reboot(options = {}) ⇒ DBInstance
#restore(options = {}) ⇒ DBInstance
#security_groups ⇒ Array<DBSecurityGroup>?
#snapshots(options = {}) ⇒ Collection<DBSnapshot>
Returns a Collection of Aws::RDS::DBSnapshot resources. No API requests are made until you call an enumerable method on the collection. Client#describe_db_snapshots will be called multiple times until every Aws::RDS::DBSnapshot has been yielded.