You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::RDS::Types::DBInstance

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#allocated_storageInteger

Specifies the allocated storage size specified in gigabytes.

Returns:

  • (Integer)

    Specifies the allocated storage size specified in gigabytes.

#auto_minor_version_upgradeBoolean

Indicates that minor version patches are applied automatically.

Returns:

  • (Boolean)

    Indicates that minor version patches are applied automatically.

#availability_zoneString

Specifies the name of the Availability Zone the DB instance is located in.

Returns:

  • (String)

    Specifies the name of the Availability Zone the DB instance is located in.

#backup_retention_periodInteger

Specifies the number of days for which automatic DB snapshots are retained.

Returns:

  • (Integer)

    Specifies the number of days for which automatic DB snapshots are retained.

#ca_certificate_identifierString

The identifier of the CA certificate for this DB instance.

Returns:

  • (String)

    The identifier of the CA certificate for this DB instance.

#character_set_nameString

If present, specifies the name of the character set that this instance is associated with.

Returns:

  • (String)

    If present, specifies the name of the character set that this instance is associated with.

#copy_tags_to_snapshotBoolean

Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

Returns:

  • (Boolean)

    Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

#db_cluster_identifierString

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.

Returns:

  • (String)

    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_arnString

The Amazon Resource Name (ARN) for the DB instance.

Returns:

  • (String)

    The Amazon Resource Name (ARN) for the DB instance.

#db_instance_classString

Contains the name of the compute and memory capacity class of the DB instance.

Returns:

  • (String)

    Contains the name of the compute and memory capacity class of the DB instance.

#db_instance_identifierString

Contains a user-supplied database identifier. This identifier is the unique key that identifies a DB instance.

Returns:

  • (String)

    Contains a user-supplied database identifier.

#db_instance_portInteger

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.

Returns:

  • (Integer)

    Specifies the port that the DB instance listens on.

#db_instance_statusString

Specifies the current state of this database.

Returns:

  • (String)

    Specifies the current state of this database.

#db_nameString

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.

Returns:

  • (String)

    The meaning of this parameter differs according to the database engine you use.

#db_parameter_groupsArray<Types::DBParameterGroupStatus>

Provides the list of DB parameter groups applied to this DB instance.

Returns:

#db_security_groupsArray<Types::DBSecurityGroupMembership>

Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

Returns:

  • (Array<Types::DBSecurityGroupMembership>)

    Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

#db_subnet_groupTypes::DBSubnetGroup

Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

Returns:

  • (Types::DBSubnetGroup)

    Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

#dbi_resource_idString

The region-unique, immutable identifier for the DB instance. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB instance is accessed.

Returns:

  • (String)

    The region-unique, immutable identifier for the DB instance.

#domain_membershipsArray<Types::DomainMembership>

The Active Directory Domain membership records associated with the DB instance.

Returns:

  • (Array<Types::DomainMembership>)

    The Active Directory Domain membership records associated with the DB instance.

#endpointTypes::Endpoint

Specifies the connection endpoint.

Returns:

#engineString

Provides the name of the database engine to be used for this DB instance.

Returns:

  • (String)

    Provides the name of the database engine to be used for this DB instance.

#engine_versionString

Indicates the database engine version.

Returns:

  • (String)

    Indicates the database engine version.

#enhanced_monitoring_resource_arnString

The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that receives the Enhanced Monitoring metrics data for the DB instance.

Returns:

  • (String)

    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_enabledBoolean

True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled; 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.

Returns:

  • (Boolean)

    True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled; otherwise false.

#instance_create_timeTime

Provides the date and time the DB instance was created.

Returns:

  • (Time)

    Provides the date and time the DB instance was created.

#iopsInteger

Specifies the Provisioned IOPS (I/O operations per second) value.

Returns:

  • (Integer)

    Specifies the Provisioned IOPS (I/O operations per second) value.

#kms_key_idString

If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance.

Returns:

  • (String)

    If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance.

#latest_restorable_timeTime

Specifies the latest time to which a database can be restored with point-in-time restore.

Returns:

  • (Time)

    Specifies the latest time to which a database can be restored with point-in-time restore.

#license_modelString

License model information for this DB instance.

Returns:

  • (String)

    License model information for this DB instance.

#master_usernameString

Contains the master username for the DB instance.

Returns:

  • (String)

    Contains the master username for the DB instance.

#monitoring_intervalInteger

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

Returns:

  • (Integer)

    The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

#monitoring_role_arnString

The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to CloudWatch Logs.

Returns:

  • (String)

    The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to CloudWatch Logs.

#multi_azBoolean

Specifies if the DB instance is a Multi-AZ deployment.

Returns:

  • (Boolean)

    Specifies if the DB instance is a Multi-AZ deployment.

#option_group_membershipsArray<Types::OptionGroupMembership>

Provides the list of option group memberships for this DB instance.

Returns:

#pending_modified_valuesTypes::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.

Returns:

#performance_insights_enabledBoolean

Returns:

  • (Boolean)

#performance_insights_kms_key_idString

Returns:

  • (String)

#preferred_backup_windowString

Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

Returns:

  • (String)

    Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

#preferred_maintenance_windowString

Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

Returns:

  • (String)

    Specifies the weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

#promotion_tierInteger

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.

Returns:

  • (Integer)

    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_accessibleBoolean

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 will be 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 will be private.

Returns:

  • (Boolean)

    Specifies the accessibility options for the DB instance.

#read_replica_db_cluster_identifiersArray<String>

Contains one or more identifiers of Aurora DB clusters that are Read Replicas of this DB instance.

Returns:

  • (Array<String>)

    Contains one or more identifiers of Aurora DB clusters that are Read Replicas of this DB instance.

#read_replica_db_instance_identifiersArray<String>

Contains one or more identifiers of the Read Replicas associated with this DB instance.

Returns:

  • (Array<String>)

    Contains one or more identifiers of the Read Replicas associated with this DB instance.

#read_replica_source_db_instance_identifierString

Contains the identifier of the source DB instance if this DB instance is a Read Replica.

Returns:

  • (String)

    Contains the identifier of the source DB instance if this DB instance is a Read Replica.

#secondary_availability_zoneString

If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

Returns:

  • (String)

    If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

#status_infosArray<Types::DBInstanceStatusInfo>

The status of a Read Replica. If the instance is not a Read Replica, this will be blank.

Returns:

#storage_encryptedBoolean

Specifies whether the DB instance is encrypted.

Returns:

  • (Boolean)

    Specifies whether the DB instance is encrypted.

#storage_typeString

Specifies the storage type associated with DB instance.

Returns:

  • (String)

    Specifies the storage type associated with DB instance.

#tde_credential_arnString

The ARN from the key store with which the instance is associated for TDE encryption.

Returns:

  • (String)

    The ARN from the key store with which the instance is associated for TDE encryption.

#timezoneString

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.

Returns:

  • (String)

    The time zone of the DB instance.

#vpc_security_groupsArray<Types::VpcSecurityGroupMembership>

Provides a list of VPC security group elements that the DB instance belongs to.

Returns: