Skip to main content

db_instances

Creates, updates, deletes, gets or lists a db_instances resource.

Overview

Namedb_instances
TypeResource
Idaws.rds.db_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
activity_stream_engine_native_audit_fields_includedbooleanIndicates whether engine-native audit fields are included in the database activity stream.
activity_stream_kinesis_stream_namestringThe name of the Amazon Kinesis data stream used for the database activity stream.
activity_stream_kms_key_idstringThe Amazon Web Services KMS key identifier used for encrypting messages in the database activity stream. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
activity_stream_modestringThe mode of the database activity stream. Database events such as a change or access generate an activity stream event. RDS for Oracle always handles these events asynchronously.
activity_stream_policy_statusstringThe status of the policy state of the activity stream.
activity_stream_statusstringThe status of the database activity stream.
additional_storage_volumesstringThe additional storage volumes associated with the DB instance. RDS supports additional storage volumes for RDS for Oracle and RDS for SQL Server.
allocated_storageintegerThe amount of storage in gibibytes (GiB) allocated for the DB instance.
associated_rolesstringThe Amazon Web Services Identity and Access Management (IAM) roles associated with the DB instance.
auto_minor_version_upgradebooleanIndicates whether minor version patches are applied automatically. For more information about automatic minor version upgrades, see Automatically upgrading the minor engine version.
automatic_restart_timestringThe time when a stopped DB instance is restarted automatically.
automation_modestringThe automation mode of the RDS Custom DB instance: full or all paused. If full, the DB instance automates monitoring and instance recovery. If all paused, the instance pauses automation for the duration set by --resume-full-automation-mode-minutes.
availability_zonestringThe name of the Availability Zone where the DB instance is located.
aws_backup_recovery_point_arnstringThe Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.
backup_retention_periodintegerThe number of days for which automatic DB snapshots are retained.
backup_targetstringThe location where automated backups and manual snapshots are stored: Dedicated Local Zones, Amazon Web Services Outposts or the Amazon Web Services Region.
ca_certificate_identifierstringThe identifier of the CA certificate for this DB instance. For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.
certificate_detailsstringThe details of the DB instance's server certificate.
character_set_namestringIf present, specifies the name of the character set that this instance is associated with.
copy_tags_to_snapshotbooleanIndicates whether tags are copied from the DB instance to snapshots of the DB instance. This setting doesn't apply to Amazon Aurora DB instances. 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.
custom_iam_instance_profilestringThe instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile must meet the following requirements: The profile must exist in your account. The profile must have an IAM role that Amazon EC2 has permissions to assume. The instance profile name and the associated IAM role name must start with the prefix AWSRDSCustom. For the list of permissions required for the IAM role, see Configure IAM and your VPC in the Amazon RDS User Guide.
customer_owned_ip_enabledbooleanIndicates whether a customer-owned IP address (CoIP) is enabled for an RDS on Outposts DB instance. A CoIP provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network. For more information about RDS on Outposts, see Working with Amazon RDS on Amazon Web Services Outposts in the Amazon RDS User Guide. For more information about CoIPs, see Customer-owned IP addresses in the Amazon Web Services Outposts User Guide.
db_cluster_identifierstringIf the DB instance is a member of a DB cluster, indicates the name of the DB cluster that the DB instance is a member of.
db_instance_arnstringThe Amazon Resource Name (ARN) for the DB instance.
db_instance_automated_backups_replicationsstringThe list of replicated automated backups associated with the DB instance.
db_instance_classstringThe name of the compute and memory capacity class of the DB instance.
db_instance_identifierstringThe user-supplied database identifier. This identifier is the unique key that identifies a DB instance.
db_instance_statusstringThe current state of this database. For information about DB instance statuses, see Viewing DB instance status in the Amazon RDS User Guide.
db_namestringThe initial database name that you provided (if required) when you created the DB instance. This name is returned for the life of your DB instance. For an RDS for Oracle CDB instance, the name identifies the PDB rather than the CDB.
db_parameter_groupsstringThe list of DB parameter groups applied to this DB instance.
db_security_groupsstringA list of DB security group elements containing DBSecurityGroup.Name and DBSecurityGroup.Status subelements.
db_subnet_groupstringInformation about the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.
db_system_idstringThe Oracle system ID (Oracle SID) for a container database (CDB). The Oracle SID is also the name of the CDB. This setting is only valid for RDS Custom DB instances.
database_insights_modestringThe mode of Database Insights that is enabled for the instance.
db_instance_portintegerThe 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.
dbi_resource_idstringThe Amazon Web Services Region-unique, immutable identifier for the DB instance. This identifier is found in Amazon Web Services CloudTrail log entries whenever the Amazon Web Services KMS key for the DB instance is accessed.
dedicated_log_volumebooleanIndicates whether the DB instance has a dedicated log volume (DLV) enabled.
deletion_protectionbooleanIndicates whether 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_membershipsstringThe Active Directory Domain membership records associated with the DB instance.
enabled_cloudwatch_logs_exportsstringA 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 Monitoring Amazon RDS log files in the Amazon RDS User Guide.
endpointstringThe connection endpoint for the DB instance. The endpoint might not be shown for instances with the status of creating.
enginestringThe database engine used for this DB instance.
engine_lifecycle_supportstringThe lifecycle type for the DB instance. For more information, see CreateDBInstance.
engine_versionstringThe version of the database engine.
enhanced_monitoring_resource_arnstringThe 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_enabledbooleanIndicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled for the DB instance. For a list of engine versions that support IAM database authentication, see IAM database authentication in the Amazon RDS User Guide and IAM database authentication in Aurora in the Amazon Aurora User Guide.
instance_create_timestringThe date and time when the DB instance was created.
iopsintegerThe Provisioned IOPS (I/O operations per second) value for the DB instance.
is_storage_config_upgrade_availablebooleanIndicates whether an upgrade is recommended for the storage file system configuration on the DB instance. To migrate to the preferred configuration, you can either create a blue/green deployment, or create a read replica from the DB instance. For more information, see Upgrading the storage file system for a DB instance.
kms_key_idstringIf StorageEncrypted is enabled, the Amazon Web Services KMS key identifier for the encrypted DB instance. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
latest_restorable_timestringThe latest time to which a database in this DB instance can be restored with point-in-time restore.
license_modelstringThe license model information for this DB instance. This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.
listener_endpointstringThe listener connection endpoint for SQL Server Always On.
master_user_secretstringThe secret managed by RDS in Amazon Web Services Secrets Manager for the master user password. For more information, see Password management with Amazon Web Services Secrets Manager in the Amazon RDS User Guide.
master_usernamestringThe master username for the DB instance.
max_allocated_storageintegerThe upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.
monitoring_intervalintegerThe interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.
monitoring_role_arnstringThe ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs.
multi_azbooleanIndicates whether the DB instance is a Multi-AZ deployment. This setting doesn't apply to RDS Custom DB instances.
multi_tenantbooleanSpecifies whether the DB instance is in the multi-tenant configuration (TRUE) or the single-tenant configuration (FALSE).
nchar_character_set_namestringThe 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.
network_typestringThe network type of the DB instance. The network type is determined by the DBSubnetGroup specified for the DB instance. A DBSubnetGroup can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL). For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide and Working with a DB instance in a VPC in the Amazon Aurora User Guide. Valid Values: IPV4 | DUAL
option_group_membershipsstringThe list of option group memberships for this DB instance.
pending_modified_valuesstringInformation about pending changes to the DB instance. This information is returned only when there are pending changes. Specific changes are identified by subelements.
percent_progressstringThe progress of the storage optimization operation as a percentage.
performance_insights_enabledbooleanIndicates whether Performance Insights is enabled for the DB instance.
performance_insights_kms_key_idstringThe Amazon Web Services KMS key identifier for encryption of Performance Insights data. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
performance_insights_retention_periodintegerThe number of days to retain Performance Insights data. Valid Values: 7 month * 31, where month is a number of months from 1-23. Examples: 93 (3 months * 31), 341 (11 months * 31), 589 (19 months * 31) 731 Default: 7 days
preferred_backup_windowstringThe daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.
preferred_maintenance_windowstringThe weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
processor_featuresstringThe number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
promotion_tierintegerThe order of priority 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_accessiblebooleanIndicates whether the DB instance is publicly accessible. When the DB instance is publicly accessible and you connect from outside of the DB instance's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster 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_identifiersstringThe 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 for MySQL DB instance, the Aurora MySQL DB cluster for the Aurora read replica is shown. This output doesn't contain information about cross-Region Aurora read replicas. Currently, each RDS DB instance can have only one Aurora read replica.
read_replica_db_instance_identifiersstringThe identifiers of the read replicas associated with this DB instance.
read_replica_source_db_cluster_identifierstringThe identifier of the source DB cluster if this DB instance is a read replica.
read_replica_source_db_instance_identifierstringThe identifier of the source DB instance if this DB instance is a read replica.
replica_modestringThe open mode of a Db2 or an Oracle read replica. The default is open-read-only. For more information, see Working with replicas for Amazon RDS for Db2 and Working with read replicas for Amazon RDS for Oracle in the Amazon RDS User Guide. This attribute is only supported in RDS for Db2, RDS for Oracle, and RDS Custom for Oracle.
resume_full_automation_mode_timestringThe number of minutes to pause the automation. When the time period ends, RDS Custom resumes full automation. The minimum value is 60 (default). The maximum value is 1,440.
secondary_availability_zonestringIf present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
status_infosstringThe status of a read replica. If the DB instance isn't a read replica, the value is blank.
storage_encryptedbooleanIndicates whether the DB instance is encrypted.
storage_encryption_typestringThe type of encryption used to protect data at rest in the DB instance. Possible values: none - The DB instance is not encrypted. sse-rds - The DB instance is encrypted using an Amazon Web Services owned KMS key. sse-kms - The DB instance is encrypted using a customer managed KMS key or Amazon Web Services managed KMS key.
storage_operation_percent_progressintegerThe percentage of the in-progress storage operation on the DB instance that has completed, from 0 to 100. This field appears only while a storage operation is in progress. It isn't present when no storage operation is active.
storage_operation_statusstringThe status of an in-progress storage operation on the DB instance. This field appears only while a storage operation is in progress. It isn't present when no storage operation is active. Possible values: Initializing - The volume is initializing from a snapshot, such as during a snapshot restore, point-in-time restore, read replica creation, or blue/green deployment. Performance can be lower than provisioned until initialization completes. Optimizing - The volume is optimizing following a storage scaling or modification operation.
storage_throughputintegerThe storage throughput for the DB instance. This setting applies only to the gp3 storage type.
storage_typestringThe storage type associated with the DB instance.
storage_volume_statusstringThe detailed status information for storage volumes associated with the DB instance. This information helps identify which specific volume is causing the instance to be in a storage-full state.
tag_liststringA list of tags. For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.
tde_credential_arnstringThe ARN from the key store with which the instance is associated for TDE encryption.
timezonestringThe time zone of the DB instance. In most cases, the Timezone element is empty. Timezone content appears only for RDS for Db2 and RDS for SQL Server DB instances that were created with a time zone specified.
upgrade_rollout_orderstringThis data type represents the order in which the instances are upgraded. [first] - Typically used for development or testing environments. [second] - Default order for resources not specifically configured. [last] - Usually reserved for production environments.
vpc_security_groupsstringThe list of Amazon EC2 VPC security groups that the DB instance belongs to.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_db_instancesselectregionDBInstanceIdentifier, Filters, MaxRecords, MarkerDescribes provisioned RDS instances. This API supports pagination. This operation can also return information for Amazon Neptune DB instances and Amazon DocumentDB instances.
create_db_instanceinsertDBInstanceIdentifier, DBInstanceClass, regionDBName, AllocatedStorage, Engine, MasterUsername, MasterUserPassword, DBSecurityGroups, VpcSecurityGroupIds, AvailabilityZone, DBSubnetGroupName, PreferredMaintenanceWindow, DBParameterGroupName, BackupRetentionPeriod, PreferredBackupWindow, Port, MultiAZ, EngineVersion, AutoMinorVersionUpgrade, LicenseModel, Iops, StorageThroughput, OptionGroupName, CharacterSetName, NcharCharacterSetName, PubliclyAccessible, Tags, DBClusterIdentifier, StorageType, TdeCredentialArn, TdeCredentialPassword, StorageEncrypted, KmsKeyId, Domain, DomainFqdn, DomainOu, DomainAuthSecretArn, DomainDnsIps, CopyTagsToSnapshot, MonitoringInterval, MonitoringRoleArn, DomainIAMRoleName, PromotionTier, Timezone, EnableIAMDatabaseAuthentication, DatabaseInsightsMode, EnablePerformanceInsights, PerformanceInsightsKMSKeyId, PerformanceInsightsRetentionPeriod, EnableCloudwatchLogsExports, ProcessorFeatures, DeletionProtection, MaxAllocatedStorage, EnableCustomerOwnedIp, NetworkType, BackupTarget, CustomIamInstanceProfile, DBSystemId, CACertificateIdentifier, ManageMasterUserPassword, MasterUserSecretKmsKeyId, MultiTenant, DedicatedLogVolume, EngineLifecycleSupport, AdditionalStorageVolumes, TagSpecifications, MasterUserAuthenticationTypeCreates a new DB instance. The new DB instance can be an RDS DB instance, or it can be a DB instance in an Aurora DB cluster. For an Aurora DB cluster, you can call this operation multiple times to add more than one DB instance to the cluster. For more information about creating an RDS DB instance, see Creating an Amazon RDS DB instance in the Amazon RDS User Guide. For more information about creating a DB instance in an Aurora DB cluster, see Creating an Amazon Aurora DB cluster in the Amazon Aurora User Guide.
create_db_instance_read_replicainsertDBInstanceIdentifier, regionSourceDBInstanceIdentifier, DBInstanceClass, AvailabilityZone, Port, MultiAZ, AutoMinorVersionUpgrade, Iops, StorageThroughput, OptionGroupName, DBParameterGroupName, PubliclyAccessible, Tags, DBSubnetGroupName, VpcSecurityGroupIds, StorageType, CopyTagsToSnapshot, MonitoringInterval, MonitoringRoleArn, KmsKeyId, PreSignedUrl, EnableIAMDatabaseAuthentication, DatabaseInsightsMode, EnablePerformanceInsights, PerformanceInsightsKMSKeyId, PerformanceInsightsRetentionPeriod, EnableCloudwatchLogsExports, ProcessorFeatures, UseDefaultProcessorFeatures, DeletionProtection, Domain, DomainIAMRoleName, DomainFqdn, DomainOu, DomainAuthSecretArn, DomainDnsIps, ReplicaMode, EnableCustomerOwnedIp, NetworkType, MaxAllocatedStorage, BackupTarget, CustomIamInstanceProfile, AllocatedStorage, SourceDBClusterIdentifier, DedicatedLogVolume, UpgradeStorageConfig, CACertificateIdentifier, AdditionalStorageVolumes, TagSpecificationsCreates a new DB instance that acts as a read replica for an existing source DB instance or Multi-AZ DB cluster. You can create a read replica for a DB instance running Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server. You can create a read replica for a Multi-AZ DB cluster running MySQL or PostgreSQL. For more information, see Working with read replicas and Migrating from a Multi-AZ DB cluster to a DB instance using a read replica in the Amazon RDS User Guide. Amazon Aurora doesn't support this operation. To create a DB instance for an Aurora DB cluster, use the CreateDBInstance operation. RDS creates read replicas with backups disabled. All other attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance or cluster, except as specified. Your source DB instance or cluster must have backup retention enabled.
add_role_to_db_instanceupdateDBInstanceIdentifier, RoleArn, FeatureName, regionAssociates an Amazon Web Services Identity and Access Management (IAM) role with a DB instance. To add a role to a DB instance, the status of the DB instance must be available. This command doesn't apply to RDS Custom.
modify_db_instanceupdateDBInstanceIdentifier, regionAllocatedStorage, DBInstanceClass, DBSubnetGroupName, DBSecurityGroups, VpcSecurityGroupIds, ApplyImmediately, MasterUserPassword, DBParameterGroupName, BackupRetentionPeriod, PreferredBackupWindow, PreferredMaintenanceWindow, MultiAZ, EngineVersion, AllowMajorVersionUpgrade, AutoMinorVersionUpgrade, LicenseModel, Iops, StorageThroughput, OptionGroupName, NewDBInstanceIdentifier, StorageType, TdeCredentialArn, TdeCredentialPassword, CACertificateIdentifier, Domain, DomainFqdn, DomainOu, DomainAuthSecretArn, DomainDnsIps, DisableDomain, CopyTagsToSnapshot, MonitoringInterval, DBPortNumber, PubliclyAccessible, MonitoringRoleArn, DomainIAMRoleName, PromotionTier, EnableIAMDatabaseAuthentication, DatabaseInsightsMode, EnablePerformanceInsights, PerformanceInsightsKMSKeyId, PerformanceInsightsRetentionPeriod, CloudwatchLogsExportConfiguration, ProcessorFeatures, UseDefaultProcessorFeatures, DeletionProtection, MaxAllocatedStorage, CertificateRotationRestart, ReplicaMode, AutomationMode, ResumeFullAutomationModeMinutes, EnableCustomerOwnedIp, NetworkType, AwsBackupRecoveryPointArn, ManageMasterUserPassword, RotateMasterUserPassword, MasterUserSecretKmsKeyId, MultiTenant, DedicatedLogVolume, Engine, AdditionalStorageVolumes, TagSpecifications, MasterUserAuthenticationType, EngineLifecycleSupportModifies settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. To learn what modifications you can make to your DB instance, call DescribeValidDBInstanceModifications before you call ModifyDBInstance.
delete_db_instancedeleteDBInstanceIdentifier, regionSkipFinalSnapshot, FinalDBSnapshotIdentifier, DeleteAutomatedBackupsDeletes a previously provisioned DB instance. When you delete a DB instance, all automated backups for that instance are deleted and can't be recovered. However, manual DB snapshots of the DB instance aren't deleted. If you request a final DB snapshot, the status of the Amazon RDS DB instance is deleting until the DB snapshot is created. This operation can't be canceled or reverted after it begins. To monitor the status of this operation, use DescribeDBInstance. When a DB instance is in a failure state and has a status of failed, incompatible-restore, or incompatible-network, you can only delete it when you skip creation of the final snapshot with the SkipFinalSnapshot parameter. If the specified DB instance is part of an Amazon Aurora DB cluster, you can't delete the DB instance if both of the following conditions are true: The DB cluster is a read replica of another Amazon Aurora DB cluster. The DB instance is the only instance in the DB cluster. To delete a DB instance in this case, first use the PromoteReadReplicaDBCluster operation to promote the DB cluster so that it's no longer a read replica. After the promotion completes, use the DeleteDBInstance operation to delete the final instance in the DB cluster. For RDS Custom DB instances, deleting the DB instance permanently deletes the EC2 instance and the associated EBS volumes. Make sure that you don't terminate or delete these resources before you delete the DB instance. Otherwise, deleting the DB instance and creation of the final snapshot might fail.
download_db_log_file_portionexecDBInstanceIdentifier, LogFileName, regionMarker, NumberOfLinesDownloads all or a portion of the specified log file, up to 1 MB in size. This command doesn't apply to RDS Custom. This operation uses resources on database instances. Because of this, we recommend publishing database logs to CloudWatch and then using the GetLogEvents operation. For more information, see GetLogEvents in the Amazon CloudWatch Logs API Reference.
promote_read_replicaexecDBInstanceIdentifier, regionBackupRetentionPeriod, PreferredBackupWindow, TagSpecificationsPromotes a read replica DB instance to a standalone DB instance. Backup duration is a function of the amount of changes to the database since the previous backup. If you plan to promote a read replica to a standalone instance, we recommend that you enable backups and complete at least one backup prior to promotion. In addition, a read replica cannot be promoted to a standalone instance when it is in the backing-up status. If you have enabled backups on your read replica, configure the automated backup window so that daily backups do not interfere with read replica promotion. This command doesn't apply to Aurora MySQL, Aurora PostgreSQL, or RDS Custom.
reboot_db_instanceexecDBInstanceIdentifier, regionForceFailoverYou might need to reboot your DB instance, usually for maintenance reasons. For example, if you make certain modifications, or if you change the DB parameter group associated with the DB instance, you must reboot the instance for the changes to take effect. Rebooting a DB instance restarts the database engine service. Rebooting a DB instance results in a momentary outage, during which the DB instance status is set to rebooting. For more information about rebooting, see Rebooting a DB Instance in the Amazon RDS User Guide. This command doesn't apply to RDS Custom. If your DB instance is part of a Multi-AZ DB cluster, you can reboot the DB cluster with the RebootDBCluster operation.
remove_role_from_db_instanceexecDBInstanceIdentifier, RoleArn, FeatureName, regionDisassociates an Amazon Web Services Identity and Access Management (IAM) role from a DB instance.
restore_db_instance_from_db_snapshotexecDBInstanceIdentifier, regionDBSnapshotIdentifier, DBInstanceClass, Port, AvailabilityZone, DBSubnetGroupName, MultiAZ, PubliclyAccessible, AutoMinorVersionUpgrade, LicenseModel, DBName, Engine, Iops, StorageThroughput, OptionGroupName, Tags, StorageType, TdeCredentialArn, TdeCredentialPassword, VpcSecurityGroupIds, Domain, DomainFqdn, DomainOu, DomainAuthSecretArn, DomainDnsIps, CopyTagsToSnapshot, DomainIAMRoleName, EnableIAMDatabaseAuthentication, EnableCloudwatchLogsExports, ProcessorFeatures, UseDefaultProcessorFeatures, DBParameterGroupName, DeletionProtection, EnableCustomerOwnedIp, NetworkType, BackupTarget, CustomIamInstanceProfile, AllocatedStorage, DBClusterSnapshotIdentifier, BackupRetentionPeriod, PreferredBackupWindow, DedicatedLogVolume, CACertificateIdentifier, EngineLifecycleSupport, AdditionalStorageVolumes, TagSpecifications, ManageMasterUserPassword, MasterUserSecretKmsKeyIdCreates a new DB instance from a DB snapshot. The target database is created from the source database restore point with most of the source's original configuration, including the default security group and DB parameter group. By default, the new DB instance is created as a Single-AZ deployment, except when the instance is a SQL Server instance that has an option group associated with mirroring. In this case, the instance becomes a Multi-AZ deployment, not a Single-AZ deployment. If you want to replace your original DB instance with the new, restored DB instance, then rename your original DB instance before you call the RestoreDBInstanceFromDBSnapshot operation. RDS doesn't allow two DB instances with the same name. After you have renamed your original DB instance with a different identifier, then you can pass the original name of the DB instance as the DBInstanceIdentifier in the call to the RestoreDBInstanceFromDBSnapshot operation. The result is that you replace the original DB instance with the DB instance created from the snapshot. If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier must be the ARN of the shared DB snapshot. To restore from a DB snapshot with an unsupported engine version, you must first upgrade the engine version of the snapshot. For more information about upgrading a RDS for MySQL DB snapshot engine version, see Upgrading a MySQL DB snapshot engine version. For more information about upgrading a RDS for PostgreSQL DB snapshot engine version, Upgrading a PostgreSQL DB snapshot engine version. This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora, use RestoreDBClusterFromSnapshot.
restore_db_instance_from_s3execDBInstanceIdentifier, DBInstanceClass, SourceEngine, SourceEngineVersion, S3BucketName, S3IngestionRoleArn, regionDBName, AllocatedStorage, Engine, MasterUsername, MasterUserPassword, DBSecurityGroups, VpcSecurityGroupIds, AvailabilityZone, DBSubnetGroupName, PreferredMaintenanceWindow, DBParameterGroupName, BackupRetentionPeriod, PreferredBackupWindow, Port, MultiAZ, EngineVersion, AutoMinorVersionUpgrade, LicenseModel, Iops, StorageThroughput, OptionGroupName, PubliclyAccessible, Tags, StorageType, StorageEncrypted, KmsKeyId, CopyTagsToSnapshot, MonitoringInterval, MonitoringRoleArn, EnableIAMDatabaseAuthentication, S3Prefix, DatabaseInsightsMode, EnablePerformanceInsights, PerformanceInsightsKMSKeyId, PerformanceInsightsRetentionPeriod, EnableCloudwatchLogsExports, ProcessorFeatures, UseDefaultProcessorFeatures, DeletionProtection, MaxAllocatedStorage, NetworkType, ManageMasterUserPassword, MasterUserSecretKmsKeyId, DedicatedLogVolume, CACertificateIdentifier, EngineLifecycleSupport, AdditionalStorageVolumes, TagSpecificationsAmazon Relational Database Service (Amazon RDS) supports importing MySQL databases by using backup files. You can create a backup of your on-premises database, store it on Amazon Simple Storage Service (Amazon S3), and then restore the backup file onto a new Amazon RDS DB instance running MySQL. For more information, see Restoring a backup into an Amazon RDS for MySQL DB instance in the Amazon RDS User Guide. This operation doesn't apply to RDS Custom.
restore_db_instance_to_point_in_timeexecTargetDBInstanceIdentifier, regionSourceDBInstanceIdentifier, RestoreTime, UseLatestRestorableTime, DBInstanceClass, Port, AvailabilityZone, DBSubnetGroupName, MultiAZ, PubliclyAccessible, AutoMinorVersionUpgrade, LicenseModel, DBName, Engine, Iops, StorageThroughput, OptionGroupName, CopyTagsToSnapshot, Tags, StorageType, TdeCredentialArn, TdeCredentialPassword, VpcSecurityGroupIds, Domain, DomainIAMRoleName, DomainFqdn, DomainOu, DomainAuthSecretArn, DomainDnsIps, EnableIAMDatabaseAuthentication, EnableCloudwatchLogsExports, ProcessorFeatures, UseDefaultProcessorFeatures, DBParameterGroupName, DeletionProtection, SourceDbiResourceId, MaxAllocatedStorage, EnableCustomerOwnedIp, NetworkType, SourceDBInstanceAutomatedBackupsArn, BackupTarget, CustomIamInstanceProfile, AllocatedStorage, BackupRetentionPeriod, PreferredBackupWindow, DedicatedLogVolume, CACertificateIdentifier, EngineLifecycleSupport, AdditionalStorageVolumes, TagSpecifications, ManageMasterUserPassword, MasterUserSecretKmsKeyIdRestores a DB instance to an arbitrary point in time. You can restore to any point in time before the time identified by the LatestRestorableTime property. You can restore to a point up to the number of days specified by the BackupRetentionPeriod property. The target database is created with most of the original configuration, but in a system-selected Availability Zone, with the default security group, the default subnet group, and the default DB parameter group. By default, the new DB instance is created as a single-AZ deployment except when the instance is a SQL Server instance that has an option group that is associated with mirroring; in this case, the instance becomes a mirrored deployment and not a single-AZ deployment. This operation doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora, use RestoreDBClusterToPointInTime.
start_db_instanceexecDBInstanceIdentifier, regionStarts an Amazon RDS DB instance that was stopped using the Amazon Web Services console, the stop-db-instance CLI command, or the StopDBInstance operation. For more information, see Starting an Amazon RDS DB instance That Was Previously Stopped in the Amazon RDS User Guide. This command doesn't apply to RDS Custom, Aurora MySQL, and Aurora PostgreSQL. For Aurora DB clusters, use StartDBCluster instead.
stop_db_instanceexecDBInstanceIdentifier, regionDBSnapshotIdentifierStops an Amazon RDS DB instance temporarily. When you stop a DB instance, Amazon RDS retains the DB instance's metadata, including its endpoint, DB parameter group, and option group membership. Amazon RDS also retains the transaction logs so you can do a point-in-time restore if necessary. The instance restarts automatically after 7 days. For more information, see Stopping an Amazon RDS DB Instance Temporarily in the Amazon RDS User Guide. This command doesn't apply to RDS Custom, Aurora MySQL, and Aurora PostgreSQL. For Aurora clusters, use StopDBCluster instead.
switchover_read_replicaexecDBInstanceIdentifier, regionSwitches over an Oracle standby database in an Oracle Data Guard environment, making it the new primary database. Issue this command in the Region that hosts the current standby database.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
DBInstanceClassstringThe compute and memory capacity of the DB instance, for example db.m4.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide. Importing from Amazon S3 isn't supported on the db.t2.micro DB instance class.
DBInstanceIdentifierstringThe DB instance identifier of the current standby database. This value is stored as a lowercase string. Constraints: Must match the identifier of an existing Oracle read replica DB instance.
FeatureNamestringThe name of the feature for the DB instance that the IAM role is to be disassociated from. For information about supported feature names, see DBEngineVersion.
LogFileNamestringThe name of the log file to be downloaded.
RoleArnstringThe Amazon Resource Name (ARN) of the IAM role to disassociate from the DB instance, for example, arn:aws:iam::123456789012:role/AccessRole.
S3BucketNamestringThe name of your Amazon S3 bucket that contains your database backup file.
S3IngestionRoleArnstringAn Amazon Web Services Identity and Access Management (IAM) role with a trust policy and a permissions policy that allows Amazon RDS to access your Amazon S3 bucket. For information about this role, see Creating an IAM role manually in the Amazon RDS User Guide.
SourceEnginestringThe name of the engine of your source database. Valid Values: mysql
SourceEngineVersionstringThe version of the database that the backup files were created from. MySQL versions 5.6 and 5.7 are supported. Example: 5.6.40
TargetDBInstanceIdentifierstringThe name of the new DB instance to create. Constraints: Must contain from 1 to 63 letters, numbers, or hyphens. First character must be a letter. Can't end with a hyphen or contain two consecutive hyphens.
regionstringAWS region (default: us-east-1)
AdditionalStorageVolumesarrayA list of additional storage volumes to restore to the DB instance. You can restore up to three additional storage volumes using the names rdsdbdata2, rdsdbdata3, and rdsdbdata4. Additional storage volumes are supported for RDS for Oracle and RDS for SQL Server DB instances only.
AllocatedStorageintegerThe amount of storage (in gibibytes) to allocate initially for the DB instance. Follow the allocation rules specified in CreateDBInstance. This setting isn't valid for RDS for SQL Server. Be sure to allocate enough storage for your new DB instance so that the restore operation can succeed. You can also allocate additional storage for future growth.
AllowMajorVersionUpgradebooleanSpecifies whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. This setting doesn't apply to RDS Custom DB instances. Constraints: Major version upgrades must be allowed when specifying a value for the EngineVersion parameter that's a different major version than the DB instance's current version.
ApplyImmediatelybooleanSpecifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB instance. By default, this parameter is disabled. If this parameter is disabled, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to RebootDBInstance, or the next failure reboot. Review the table of parameters in Modifying a DB Instance in the Amazon RDS User Guide to see the impact of enabling or disabling ApplyImmediately for each modified parameter and to determine when the changes are applied.
AutoMinorVersionUpgradebooleanSpecifies whether minor version upgrades are applied automatically to the DB instance during the maintenance window. This setting doesn't apply to RDS Custom. For more information about automatic minor version upgrades, see Automatically upgrading the minor engine version.
AutomationModestringThe automation mode of the RDS Custom DB instance. If full, the DB instance automates monitoring and instance recovery. If all paused, the instance pauses automation for the duration set by ResumeFullAutomationModeMinutes.
AvailabilityZonestringThe Availability Zone (AZ) where the DB instance will be created. Default: A random, system-chosen Availability Zone. Constraints: You can't specify the AvailabilityZone parameter if the DB instance is a Multi-AZ deployment. Example: us-east-1a
AwsBackupRecoveryPointArnstringThe Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup. This setting doesn't apply to RDS Custom DB instances.
BackupRetentionPeriodintegerThe number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups. Enabling and disabling backups can result in a brief I/O suspension that lasts from a few seconds to a few minutes, depending on the size and class of your DB instance. This setting doesn't apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster. For more information, see ModifyDBCluster. Default: Uses existing setting Constraints: Must be a value from 0 to 35. Can't be set to 0 if the DB instance is a source to read replicas. Can't be set to 0 for an RDS Custom for Oracle DB instance.
BackupTargetstringThe location for storing automated backups and manual snapshots for the restored DB instance. Valid Values: local (Dedicated Local Zone) outposts (Amazon Web Services Outposts) region (Amazon Web Services Region) Default: region For more information, see Working with Amazon RDS on Amazon Web Services Outposts in the Amazon RDS User Guide.
CACertificateIdentifierstringThe CA certificate identifier to use for the DB instance's server certificate. This setting doesn't apply to RDS Custom DB instances. For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.
CertificateRotationRestartbooleanSpecifies whether the DB instance is restarted when you rotate your SSL/TLS certificate. By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. Set this parameter only if you are not using SSL/TLS to connect to the DB instance. If you are using SSL/TLS to connect to the DB instance, follow the appropriate instructions for your DB engine to rotate your SSL/TLS certificate: For more information about rotating your SSL/TLS certificate for RDS DB engines, see Rotating Your SSL/TLS Certificate. in the Amazon RDS User Guide. For more information about rotating your SSL/TLS certificate for Aurora DB engines, see Rotating Your SSL/TLS Certificate in the Amazon Aurora User Guide. This setting doesn't apply to RDS Custom DB instances.
CharacterSetNamestringFor supported engines, the character set (CharacterSet) to associate the DB instance with. This setting doesn't apply to the following DB instances: Amazon Aurora - The character set is managed by the DB cluster. For more information, see CreateDBCluster. RDS Custom - However, if you need to change the character set, you can change it on the database itself.
CloudwatchLogsExportConfigurationobjectThe log types to be enabled for export to CloudWatch Logs for a specific DB instance. A change to the CloudwatchLogsExportConfiguration parameter is always applied to the DB instance immediately. Therefore, the ApplyImmediately parameter has no effect. This setting doesn't apply to RDS Custom DB instances. The following values are valid for each DB engine: Aurora MySQL - audit | error | general | slowquery | iam-db-auth-error Aurora PostgreSQL - postgresql | iam-db-auth-error RDS for MySQL - error | general | slowquery | iam-db-auth-error RDS for PostgreSQL - postgresql | upgrade | iam-db-auth-error For more information about exporting CloudWatch Logs for Amazon RDS, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide. For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.
CopyTagsToSnapshotbooleanSpecifies whether to copy all tags from the restored DB instance to snapshots of the DB instance. By default, tags are not copied.
CustomIamInstanceProfilestringThe instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile must meet the following requirements: The profile must exist in your account. The profile must have an IAM role that Amazon EC2 has permissions to assume. The instance profile name and the associated IAM role name must start with the prefix AWSRDSCustom. For the list of permissions required for the IAM role, see Configure IAM and your VPC in the Amazon RDS User Guide. This setting is required for RDS Custom.
DBClusterIdentifierstringThe identifier of the DB cluster that this DB instance will belong to. This setting doesn't apply to RDS Custom DB instances.
DBClusterSnapshotIdentifierstringThe identifier for the Multi-AZ DB cluster snapshot to restore from. For more information on Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide. Constraints: Must match the identifier of an existing Multi-AZ DB cluster snapshot. Can't be specified when DBSnapshotIdentifier is specified. Must be specified when DBSnapshotIdentifier isn't specified. If you are restoring from a shared manual Multi-AZ DB cluster snapshot, the DBClusterSnapshotIdentifier must be the ARN of the shared snapshot. Can't be the identifier of an Aurora DB cluster snapshot.
DBInstanceClassstringThe compute and memory capacity of the Amazon RDS DB instance, for example db.m4.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide. Default: The same DB instance class as the original DB instance.
DBInstanceIdentifierstringThe user-supplied instance identifier or the Amazon Resource Name (ARN) of the DB instance. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive. Constraints: If supplied, must match the identifier of an existing DB instance.
DBNamestringThe database name for the restored DB instance. This parameter doesn't apply to the following DB instances: RDS Custom RDS for Db2 RDS for MariaDB RDS for MySQL
DBParameterGroupNamestringThe name of the DB parameter group to associate with this DB instance. If you do not specify a value for DBParameterGroupName, then the default DBParameterGroup for the specified DB engine is used. This setting doesn't apply to RDS Custom. Constraints: If supplied, must match the name of an existing DB parameter group. Must be 1 to 255 letters, numbers, or hyphens. First character must be a letter. Can't end with a hyphen or contain two consecutive hyphens.
DBPortNumberintegerThe port number on which the database accepts connections. The value of the DBPortNumber parameter must not match any of the port values specified for options in the option group for the DB instance. If you change the DBPortNumber value, your database restarts regardless of the value of the ApplyImmediately parameter. This setting doesn't apply to RDS Custom DB instances. Valid Values: 1150-65535 Default: Amazon Aurora - 3306 RDS for Db2 - 50000 RDS for MariaDB - 3306 RDS for Microsoft SQL Server - 1433 RDS for MySQL - 3306 RDS for Oracle - 1521 RDS for PostgreSQL - 5432 Constraints: For RDS for Microsoft SQL Server, the value can't be 1234, 1434, 3260, 3343, 3389, 47001, or 49152-49156.
DBSecurityGroupsarrayA list of DB security groups to associate with this DB instance. Default: The default DB security group for the database engine.
DBSnapshotIdentifierstringThe user-supplied instance identifier of the DB Snapshot created immediately before the DB instance is stopped.
DBSubnetGroupNamestringThe DB subnet group name to use for the new instance. Constraints: If supplied, must match the name of an existing DB subnet group. Example: mydbsubnetgroup
DBSystemIdstringThe Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term "Oracle database instance" refers exclusively to the system global area (SGA) and Oracle background processes. If you don't specify a SID, the value defaults to RDSCDB. The Oracle SID is also the name of your CDB.
DatabaseInsightsModestringSpecifies the mode of Database Insights to enable for the DB instance. Aurora DB instances inherit this value from the DB cluster, so you can't change this value.
DedicatedLogVolumebooleanSpecifies whether to enable a dedicated log volume (DLV) for the DB instance.
DeleteAutomatedBackupsbooleanSpecifies whether to remove automated backups immediately after the DB instance is deleted. This parameter isn't case-sensitive. The default is to remove automated backups immediately after the DB instance is deleted.
DeletionProtectionbooleanSpecifies whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled. For more information, see Deleting a DB Instance.
DisableDomainbooleanSpecifies whether to remove the DB instance from the Active Directory domain.
DomainstringThe Active Directory directory ID to restore the DB instance in. Create the domain before running this command. Currently, you can create only the MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain. This setting doesn't apply to RDS Custom. For more information, see Kerberos Authentication in the Amazon RDS User Guide.
DomainAuthSecretArnstringThe ARN for the Secrets Manager secret with the credentials for the user joining the domain. Constraints: Can't be longer than 64 characters. Example: arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456
DomainDnsIpsarrayThe IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers. Constraints: Two IP addresses must be provided. If there isn't a secondary domain controller, use the IP address of the primary domain controller for both entries in the list. Example: 123.124.125.126,234.235.236.237
DomainFqdnstringThe fully qualified domain name (FQDN) of an Active Directory domain. Constraints: Can't be longer than 64 characters. Example: mymanagedADtest.mymanagedAD.mydomain
DomainIAMRoleNamestringThe name of the IAM role to use when making API calls to the Directory Service. This setting doesn't apply to RDS Custom DB instances.
DomainOustringThe Active Directory organizational unit for your DB instance to join. Constraints: Must be in the distinguished name format. Can't be longer than 64 characters. Example: OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain
EnableCloudwatchLogsExportsarrayThe list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom.
EnableCustomerOwnedIpbooleanSpecifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. A CoIP provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network. This setting doesn't apply to RDS Custom. For more information about RDS on Outposts, see Working with Amazon RDS on Amazon Web Services Outposts in the Amazon RDS User Guide. For more information about CoIPs, see Customer-owned IP addresses in the Amazon Web Services Outposts User Guide.
EnableIAMDatabaseAuthenticationbooleanSpecifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled. This setting doesn't apply to RDS Custom. For more information about IAM database authentication, see IAM Database Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.
EnablePerformanceInsightsbooleanSpecifies whether to enable Performance Insights for the DB instance. For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide.
EnginestringThe database engine to use for the new instance. This setting doesn't apply to RDS Custom. Valid Values: db2-ae db2-ce db2-se mariadb mysql oracle-ee oracle-ee-cdb oracle-se2 oracle-se2-cdb postgres sqlserver-ee sqlserver-se sqlserver-ex sqlserver-web Default: The same as source Constraints: Must be compatible with the engine of the source.
EngineLifecycleSupportstringThe lifecycle type for this DB instance. By default, this value is set to open-source-rds-extended-support, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, RDS automatically upgrades your restored DB instance to a higher engine version, if the major engine version is past its end of standard support date. You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see Amazon RDS Extended Support with Amazon RDS in the Amazon RDS User Guide. This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the engine lifecycle support is managed by the DB cluster. Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled Default: open-source-rds-extended-support
EngineVersionstringThe version number of the database engine to use. Choose the latest minor version of your database engine. For information about engine versions, see CreateDBInstance, or call DescribeDBEngineVersions.
FiltersarrayA filter that specifies one or more DB instances to describe. Supported Filters: db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list only includes information about the DB instances associated with the DB clusters identified by these ARNs. db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). The results list only includes information about the DB instances identified by these ARNs. dbi-resource-id - Accepts DB instance resource identifiers. The results list only includes information about the DB instances identified by these DB instance resource identifiers. domain - Accepts Active Directory directory IDs. The results list only includes information about the DB instances associated with these domains. engine - Accepts engine names. The results list only includes information about the DB instances for these engines.
FinalDBSnapshotIdentifierstringThe DBSnapshotIdentifier of the new DBSnapshot created when the SkipFinalSnapshot parameter is disabled. If you enable this parameter and also enable SkipFinalShapshot, the command results in an error. This setting doesn't apply to RDS Custom. Constraints: Must be 1 to 255 letters or numbers. First character must be a letter. Can't end with a hyphen or contain two consecutive hyphens. Can't be specified when deleting a read replica.
ForceFailoverbooleanSpecifies whether the reboot is conducted through a Multi-AZ failover. Constraint: You can't enable force failover if the instance isn't configured for Multi-AZ.
IopsintegerThe amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. This setting doesn't apply to SQL Server. Constraints: Must be an integer greater than 1000.
KmsKeyIdstringThe Amazon Web Services KMS key identifier for an encrypted DB instance. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If the StorageEncrypted parameter is enabled, and you do not specify a value for the KmsKeyId parameter, then Amazon RDS will use your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
LicenseModelstringThe license model information for the restored DB instance. License models for RDS for Db2 require additional configuration. The bring your own license (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide. This setting doesn't apply to Amazon Aurora or RDS Custom DB instances. Valid Values: RDS for Db2 - bring-your-own-license | marketplace-license RDS for MariaDB - general-public-license RDS for Microsoft SQL Server - license-included | bring-your-own-media RDS for MySQL - general-public-license RDS for Oracle - bring-your-own-license | license-included RDS for PostgreSQL - postgresql-license Default: Same as the source.
ManageMasterUserPasswordbooleanSpecifies whether to manage the master user password with Amazon Web Services Secrets Manager in the restored DB instance. For more information, see Password management with Amazon Web Services Secrets Manager in the Amazon RDS User Guide. Constraints: Applies to RDS for Oracle only.
MarkerstringThe pagination token provided in the previous request or "0". If the Marker parameter is specified the response includes only records beyond the marker until the end of the file or up to NumberOfLines.
MasterUserAuthenticationTypestringSpecifies the authentication type for the master user. With IAM master user authentication, you can change the master DB user to use IAM database authentication. You can specify one of the following values: password - Use standard database authentication with a password. iam-db-auth - Use IAM database authentication for the master user. This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.
MasterUserPasswordstringThe password for the master user. Constraints: Can't be specified if ManageMasterUserPassword is turned on. Can include any printable ASCII character except "/", """, or "@". For RDS for Oracle, can't include the "&" (ampersand) or the "'" (single quotes) character. Length Constraints: RDS for Db2 - Must contain from 8 to 128 characters. RDS for MariaDB - Must contain from 8 to 41 characters. RDS for Microsoft SQL Server - Must contain from 8 to 128 characters. RDS for MySQL - Must contain from 8 to 41 characters. RDS for Oracle - Must contain from 8 to 30 characters. RDS for PostgreSQL - Must contain from 8 to 128 characters.
MasterUserSecretKmsKeyIdstringThe Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager. This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If you don't specify MasterUserSecretKmsKeyId, then the aws/secretsmanager KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the aws/secretsmanager KMS key to encrypt the secret, and you must use a customer managed KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
MasterUsernamestringThe name for the master user. Constraints: Must be 1 to 16 letters or numbers. First character must be a letter. Can't be a reserved word for the chosen database engine.
MaxAllocatedStorageintegerThe upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance. For more information about this setting, including limitations that apply to it, see Managing capacity automatically with Amazon RDS storage autoscaling in the Amazon RDS User Guide. This setting doesn't apply to RDS Custom.
MaxRecordsintegerThe maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100.
MonitoringIntervalintegerThe interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. If MonitoringRoleArn is specified, then you must also set MonitoringInterval to a value other than 0. Valid Values: 0, 1, 5, 10, 15, 30, 60 Default: 0
MonitoringRoleArnstringThe ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. For information on creating a monitoring role, see Setting Up and Enabling Enhanced Monitoring in the Amazon RDS User Guide. If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.
MultiAZbooleanSecifies whether the DB instance is a Multi-AZ deployment. This setting doesn't apply to RDS Custom. Constraints: You can't specify the AvailabilityZone parameter if the DB instance is a Multi-AZ deployment.
MultiTenantbooleanSpecifies whether the to convert your DB instance from the single-tenant configuration to the multi-tenant configuration. This parameter is supported only for RDS for Oracle CDB instances. During the conversion, RDS creates an initial tenant database and associates the DB name, master user name, character set, and national character set metadata with this database. The tags associated with the instance also propagate to the initial tenant database. You can add more tenant databases to your DB instance by using the CreateTenantDatabase operation. The conversion to the multi-tenant configuration is permanent and irreversible, so you can't later convert back to the single-tenant configuration. When you specify this parameter, you must also specify ApplyImmediately.
NcharCharacterSetNamestringThe name of the NCHAR character set for the Oracle DB instance. This setting doesn't apply to RDS Custom DB instances.
NetworkTypestringThe network type of the DB instance. The network type is determined by the DBSubnetGroup specified for the DB instance. A DBSubnetGroup can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL). For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide. Valid Values: IPV4 DUAL
NewDBInstanceIdentifierstringThe new identifier for the DB instance when renaming a DB instance. When you change the DB instance identifier, an instance reboot occurs immediately if you enable ApplyImmediately, or will occur during the next maintenance window if you disable ApplyImmediately. This value is stored as a lowercase string. This setting doesn't apply to RDS Custom DB instances. Constraints: Must contain from 1 to 63 letters, numbers, or hyphens. The first character must be a letter. Can't end with a hyphen or contain two consecutive hyphens. Example: mydbinstance
NumberOfLinesintegerThe number of lines to download. If the number of lines specified results in a file over 1 MB in size, the file is truncated at 1 MB in size. If the NumberOfLines parameter is specified, then the block of lines returned can be from the beginning or the end of the log file, depending on the value of the Marker parameter. If neither Marker or NumberOfLines are specified, the entire log file is returned up to a maximum of 10000 lines, starting with the most recent log entries first. If NumberOfLines is specified and Marker isn't specified, then the most recent lines from the end of the log file are returned. If Marker is specified as "0", then the specified number of lines from the beginning of the log file are returned. You can download the log file in blocks of lines by specifying the size of the block using the NumberOfLines parameter, and by specifying a value of "0" for the Marker parameter in your first request. Include the Marker value returned in the response as the Marker value for the next request, continuing until the AdditionalDataPending response element returns false.
OptionGroupNamestringThe name of the option group to use for the restored DB instance. Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance after it is associated with a DB instance This setting doesn't apply to RDS Custom.
PerformanceInsightsKMSKeyIdstringThe Amazon Web Services KMS key identifier for encryption of Performance Insights data. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
PerformanceInsightsRetentionPeriodintegerThe number of days to retain Performance Insights data. The default is 7 days. The following values are valid: 7 month * 31, where month is a number of months from 1-23 731 For example, the following values are valid: 93 (3 months * 31) 341 (11 months * 31) 589 (19 months * 31) 731 If you specify a retention period such as 94, which isn't a valid value, RDS issues an error.
PortintegerThe port number on which the database accepts connections. Default: The same port as the original DB instance. Constraints: The value must be 1150-65535.
PreSignedUrlstringWhen you are creating a read replica from one Amazon Web Services GovCloud (US) Region to another or from one China Amazon Web Services Region to another, the URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica API operation in the source Amazon Web Services Region that contains the source DB instance. This setting applies only to Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions. It's ignored in other Amazon Web Services Regions. This setting applies only when replicating from a source DB instance. Source DB clusters aren't supported in Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions. You must specify this parameter when you create an encrypted read replica from another Amazon Web Services Region by using the Amazon RDS API. Don't specify PreSignedUrl when you are creating an encrypted read replica in the same Amazon Web Services Region. The presigned URL must be a valid request for the CreateDBInstanceReadReplica API operation that can run in the source Amazon Web Services Region that contains the encrypted source DB instance. The presigned URL request must contain the following parameter values: DestinationRegion - The Amazon Web Services Region that the encrypted read replica is created in. This Amazon Web Services Region is the same one where the CreateDBInstanceReadReplica operation is called that contains this presigned URL. For example, if you create an encrypted DB instance in the us-west-1 Amazon Web Services Region, from a source DB instance in the us-east-2 Amazon Web Services Region, then you call the CreateDBInstanceReadReplica operation in the us-east-1 Amazon Web Services Region and provide a presigned URL that contains a call to the CreateDBInstanceReadReplica operation in the us-west-2 Amazon Web Services Region. For this example, the DestinationRegion in the presigned URL must be set to the us-east-1 Amazon Web Services Region. KmsKeyId - The KMS key identifier for the key to use to encrypt the read replica in the destination Amazon Web Services Region. This is the same identifier for both the CreateDBInstanceReadReplica operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL. SourceDBInstanceIdentifier - The DB instance identifier for the encrypted DB instance to be replicated. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are creating an encrypted read replica from a DB instance in the us-west-2 Amazon Web Services Region, then your SourceDBInstanceIdentifier looks like the following example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115. To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing Process. If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion (or --source-region for the CLI) instead of specifying PreSignedUrl manually. Specifying SourceRegion autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region. This setting doesn't apply to RDS Custom DB instances.
PreferredBackupWindowstringThe daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod parameter. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see Backup window in the Amazon RDS User Guide. This setting doesn't apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster. For more information, see ModifyDBCluster. Constraints: Must be in the format hh24:mi-hh24:mi. Must be in Universal Coordinated Time (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.
PreferredMaintenanceWindowstringThe time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC). For more information, see Amazon RDS Maintenance Window in the Amazon RDS User Guide. Constraints: Must be in the format ddd:hh24:mi-ddd:hh24:mi. Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. Must be in Universal Coordinated Time (UTC). Must not conflict with the preferred backup window. Must be at least 30 minutes.
ProcessorFeaturesarrayThe number of CPU cores and the number of threads per core for the DB instance class of the DB instance. This setting doesn't apply to RDS Custom.
PromotionTierintegerThe order of priority 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. This setting doesn't apply to RDS Custom DB instances. Default: 1 Valid Values: 0 - 15
PubliclyAccessiblebooleanSpecifies whether the DB instance is publicly accessible. When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB cluster's virtual private cloud (VPC). It resolves to the public IP address from outside of the DB cluster's VPC. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster 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.
ReplicaModestringThe open mode of a replica database. This parameter is only supported for Db2 DB instances and Oracle DB instances. Db2 Standby DB replicas are included in Db2 Advanced Edition (AE), Db2 Community Edition (CE), and Db2 Standard Edition (SE). The main use case for standby replicas is cross-Region disaster recovery. Because it doesn't accept user connections, a standby replica can't serve a read-only workload. You can create a combination of standby and read-only DB replicas for the same primary DB instance. For more information, see Working with replicas for Amazon RDS for Db2 in the Amazon RDS User Guide. To create standby DB replicas for RDS for Db2, set this parameter to mounted. Oracle Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is cross-Region disaster recovery. The primary database doesn't use Active Data Guard to transmit information to the mounted replica. Because it doesn't accept user connections, a mounted replica can't serve a read-only workload. You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more information, see Working with read replicas for Amazon RDS for Oracle in the Amazon RDS User Guide. For RDS Custom, you must specify this parameter and set it to mounted. The value won't be set by default. After replica creation, you can manage the open mode manually.
RestoreTimestring (date-time)The date and time to restore from. Constraints: Must be a time in Universal Coordinated Time (UTC) format. Must be before the latest restorable time for the DB instance. Can't be specified if the UseLatestRestorableTime parameter is enabled. Example: 2009-09-07T23:45:00Z
ResumeFullAutomationModeMinutesintegerThe number of minutes to pause the automation. When the time period ends, RDS Custom resumes full automation. Default: 60 Constraints: Must be at least 60. Must be no more than 1,440.
RotateMasterUserPasswordbooleanSpecifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password. This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance. The secret value contains the updated password. For more information, see Password management with Amazon Web Services Secrets Manager in the Amazon RDS User Guide. Constraints: You must apply the change immediately when rotating the master user password.
S3PrefixstringThe prefix of your Amazon S3 bucket.
SkipFinalSnapshotbooleanSpecifies whether to skip the creation of a final DB snapshot before deleting the instance. If you enable this parameter, RDS doesn't create a DB snapshot. If you don't enable this parameter, RDS creates a DB snapshot before the DB instance is deleted. By default, skip isn't enabled, and the DB snapshot is created. If you don't enable this parameter, you must specify the FinalDBSnapshotIdentifier parameter. When a DB instance is in a failure state and has a status of failed, incompatible-restore, or incompatible-network, RDS can delete the instance only if you enable this parameter. If you delete a read replica or an RDS Custom instance, you must enable this setting. This setting is required for RDS Custom.
SourceDBClusterIdentifierstringThe identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas. Constraints: Must be the identifier of an existing Multi-AZ DB cluster. Can't be specified if the SourceDBInstanceIdentifier parameter is also specified. The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0. The source DB cluster must be in the same Amazon Web Services Region as the read replica. Cross-Region replication isn't supported.
SourceDBInstanceAutomatedBackupsArnstringThe Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE. This setting doesn't apply to RDS Custom.
SourceDBInstanceIdentifierstringThe identifier of the source DB instance from which to restore. Constraints: Must match the identifier of an existing DB instance.
SourceDbiResourceIdstringThe resource ID of the source DB instance from which to restore.
StorageEncryptedbooleanSpecifies whether the new DB instance is encrypted or not.
StorageThroughputintegerThe storage throughput value for the DB instance. This setting doesn't apply to RDS Custom or Amazon Aurora.
StorageTypestringThe storage type to associate with the DB instance. Valid Values: gp2 | gp3 | io1 | io2 | standard Default: io1, if the Iops parameter is specified. Otherwise, gp3. Constraints: If you specify io1, io2, or gp3, you must also include a value for the Iops parameter.
TagSpecificationsarrayTags to assign to resources associated with the DB instance. Valid Values: auto-backup - The DB instance's automated backup.
Tagsarray
TdeCredentialArnstringThe ARN from the key store with which to associate the instance for TDE encryption. This setting doesn't apply to RDS Custom.
TdeCredentialPasswordstringThe password for the given ARN from the key store in order to access the device. This setting doesn't apply to RDS Custom.
TimezonestringThe time zone of the DB instance. The time zone parameter is currently supported only by RDS for Db2 and RDS for SQL Server.
UpgradeStorageConfigbooleanWhether to upgrade the storage file system configuration on the read replica. This option migrates the read replica from the old storage file system layout to the preferred layout.
UseDefaultProcessorFeaturesbooleanSpecifies whether the DB instance class of the DB instance uses its default processor features. This setting doesn't apply to RDS Custom.
UseLatestRestorableTimebooleanSpecifies whether the DB instance is restored from the latest backup time. By default, the DB instance isn't restored from the latest backup time. Constraints: Can't be specified if the RestoreTime parameter is provided.
VpcSecurityGroupIdsarrayA list of EC2 VPC security groups to associate with this DB instance. Default: The default EC2 VPC security group for the DB subnet group's VPC.

SELECT examples

Describes provisioned RDS instances. This API supports pagination. This operation can also return information for Amazon Neptune DB instances and Amazon DocumentDB instances.

SELECT
activity_stream_engine_native_audit_fields_included,
activity_stream_kinesis_stream_name,
activity_stream_kms_key_id,
activity_stream_mode,
activity_stream_policy_status,
activity_stream_status,
additional_storage_volumes,
allocated_storage,
associated_roles,
auto_minor_version_upgrade,
automatic_restart_time,
automation_mode,
availability_zone,
aws_backup_recovery_point_arn,
backup_retention_period,
backup_target,
ca_certificate_identifier,
certificate_details,
character_set_name,
copy_tags_to_snapshot,
custom_iam_instance_profile,
customer_owned_ip_enabled,
db_cluster_identifier,
db_instance_arn,
db_instance_automated_backups_replications,
db_instance_class,
db_instance_identifier,
db_instance_status,
db_name,
db_parameter_groups,
db_security_groups,
db_subnet_group,
db_system_id,
database_insights_mode,
db_instance_port,
dbi_resource_id,
dedicated_log_volume,
deletion_protection,
domain_memberships,
enabled_cloudwatch_logs_exports,
endpoint,
engine,
engine_lifecycle_support,
engine_version,
enhanced_monitoring_resource_arn,
iam_database_authentication_enabled,
instance_create_time,
iops,
is_storage_config_upgrade_available,
kms_key_id,
latest_restorable_time,
license_model,
listener_endpoint,
master_user_secret,
master_username,
max_allocated_storage,
monitoring_interval,
monitoring_role_arn,
multi_az,
multi_tenant,
nchar_character_set_name,
network_type,
option_group_memberships,
pending_modified_values,
percent_progress,
performance_insights_enabled,
performance_insights_kms_key_id,
performance_insights_retention_period,
preferred_backup_window,
preferred_maintenance_window,
processor_features,
promotion_tier,
publicly_accessible,
read_replica_db_cluster_identifiers,
read_replica_db_instance_identifiers,
read_replica_source_db_cluster_identifier,
read_replica_source_db_instance_identifier,
replica_mode,
resume_full_automation_mode_time,
secondary_availability_zone,
status_infos,
storage_encrypted,
storage_encryption_type,
storage_operation_percent_progress,
storage_operation_status,
storage_throughput,
storage_type,
storage_volume_status,
tag_list,
tde_credential_arn,
timezone,
upgrade_rollout_order,
vpc_security_groups
FROM aws.rds.db_instances
WHERE region = '{{ region }}' -- required
AND DBInstanceIdentifier = '{{ DBInstanceIdentifier }}'
AND Filters = '{{ Filters }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;

INSERT examples

Creates a new DB instance. The new DB instance can be an RDS DB instance, or it can be a DB instance in an Aurora DB cluster. For an Aurora DB cluster, you can call this operation multiple times to add more than one DB instance to the cluster. For more information about creating an RDS DB instance, see Creating an Amazon RDS DB instance in the Amazon RDS User Guide. For more information about creating a DB instance in an Aurora DB cluster, see Creating an Amazon Aurora DB cluster in the Amazon Aurora User Guide.

INSERT INTO aws.rds.db_instances (
DBInstanceIdentifier,
DBInstanceClass,
region,
DBName,
AllocatedStorage,
Engine,
MasterUsername,
MasterUserPassword,
DBSecurityGroups,
VpcSecurityGroupIds,
AvailabilityZone,
DBSubnetGroupName,
PreferredMaintenanceWindow,
DBParameterGroupName,
BackupRetentionPeriod,
PreferredBackupWindow,
Port,
MultiAZ,
EngineVersion,
AutoMinorVersionUpgrade,
LicenseModel,
Iops,
StorageThroughput,
OptionGroupName,
CharacterSetName,
NcharCharacterSetName,
PubliclyAccessible,
Tags,
DBClusterIdentifier,
StorageType,
TdeCredentialArn,
TdeCredentialPassword,
StorageEncrypted,
KmsKeyId,
Domain,
DomainFqdn,
DomainOu,
DomainAuthSecretArn,
DomainDnsIps,
CopyTagsToSnapshot,
MonitoringInterval,
MonitoringRoleArn,
DomainIAMRoleName,
PromotionTier,
Timezone,
EnableIAMDatabaseAuthentication,
DatabaseInsightsMode,
EnablePerformanceInsights,
PerformanceInsightsKMSKeyId,
PerformanceInsightsRetentionPeriod,
EnableCloudwatchLogsExports,
ProcessorFeatures,
DeletionProtection,
MaxAllocatedStorage,
EnableCustomerOwnedIp,
NetworkType,
BackupTarget,
CustomIamInstanceProfile,
DBSystemId,
CACertificateIdentifier,
ManageMasterUserPassword,
MasterUserSecretKmsKeyId,
MultiTenant,
DedicatedLogVolume,
EngineLifecycleSupport,
AdditionalStorageVolumes,
TagSpecifications,
MasterUserAuthenticationType
)
SELECT
'{{ DBInstanceIdentifier }}',
'{{ DBInstanceClass }}',
'{{ region }}',
'{{ DBName }}',
'{{ AllocatedStorage }}',
'{{ Engine }}',
'{{ MasterUsername }}',
'{{ MasterUserPassword }}',
'{{ DBSecurityGroups }}',
'{{ VpcSecurityGroupIds }}',
'{{ AvailabilityZone }}',
'{{ DBSubnetGroupName }}',
'{{ PreferredMaintenanceWindow }}',
'{{ DBParameterGroupName }}',
'{{ BackupRetentionPeriod }}',
'{{ PreferredBackupWindow }}',
'{{ Port }}',
'{{ MultiAZ }}',
'{{ EngineVersion }}',
'{{ AutoMinorVersionUpgrade }}',
'{{ LicenseModel }}',
'{{ Iops }}',
'{{ StorageThroughput }}',
'{{ OptionGroupName }}',
'{{ CharacterSetName }}',
'{{ NcharCharacterSetName }}',
'{{ PubliclyAccessible }}',
'{{ Tags }}',
'{{ DBClusterIdentifier }}',
'{{ StorageType }}',
'{{ TdeCredentialArn }}',
'{{ TdeCredentialPassword }}',
'{{ StorageEncrypted }}',
'{{ KmsKeyId }}',
'{{ Domain }}',
'{{ DomainFqdn }}',
'{{ DomainOu }}',
'{{ DomainAuthSecretArn }}',
'{{ DomainDnsIps }}',
'{{ CopyTagsToSnapshot }}',
'{{ MonitoringInterval }}',
'{{ MonitoringRoleArn }}',
'{{ DomainIAMRoleName }}',
'{{ PromotionTier }}',
'{{ Timezone }}',
'{{ EnableIAMDatabaseAuthentication }}',
'{{ DatabaseInsightsMode }}',
'{{ EnablePerformanceInsights }}',
'{{ PerformanceInsightsKMSKeyId }}',
'{{ PerformanceInsightsRetentionPeriod }}',
'{{ EnableCloudwatchLogsExports }}',
'{{ ProcessorFeatures }}',
'{{ DeletionProtection }}',
'{{ MaxAllocatedStorage }}',
'{{ EnableCustomerOwnedIp }}',
'{{ NetworkType }}',
'{{ BackupTarget }}',
'{{ CustomIamInstanceProfile }}',
'{{ DBSystemId }}',
'{{ CACertificateIdentifier }}',
'{{ ManageMasterUserPassword }}',
'{{ MasterUserSecretKmsKeyId }}',
'{{ MultiTenant }}',
'{{ DedicatedLogVolume }}',
'{{ EngineLifecycleSupport }}',
'{{ AdditionalStorageVolumes }}',
'{{ TagSpecifications }}',
'{{ MasterUserAuthenticationType }}'
RETURNING
activity_stream_engine_native_audit_fields_included,
activity_stream_kinesis_stream_name,
activity_stream_kms_key_id,
activity_stream_mode,
activity_stream_policy_status,
activity_stream_status,
additional_storage_volumes,
allocated_storage,
associated_roles,
auto_minor_version_upgrade,
automatic_restart_time,
automation_mode,
availability_zone,
aws_backup_recovery_point_arn,
backup_retention_period,
backup_target,
ca_certificate_identifier,
certificate_details,
character_set_name,
copy_tags_to_snapshot,
custom_iam_instance_profile,
customer_owned_ip_enabled,
db_cluster_identifier,
db_instance_arn,
db_instance_automated_backups_replications,
db_instance_class,
db_instance_identifier,
db_instance_status,
db_name,
db_parameter_groups,
db_security_groups,
db_subnet_group,
db_system_id,
database_insights_mode,
db_instance_port,
dbi_resource_id,
dedicated_log_volume,
deletion_protection,
domain_memberships,
enabled_cloudwatch_logs_exports,
endpoint,
engine,
engine_lifecycle_support,
engine_version,
enhanced_monitoring_resource_arn,
iam_database_authentication_enabled,
instance_create_time,
iops,
is_storage_config_upgrade_available,
kms_key_id,
latest_restorable_time,
license_model,
listener_endpoint,
master_user_secret,
master_username,
max_allocated_storage,
monitoring_interval,
monitoring_role_arn,
multi_az,
multi_tenant,
nchar_character_set_name,
network_type,
option_group_memberships,
pending_modified_values,
percent_progress,
performance_insights_enabled,
performance_insights_kms_key_id,
performance_insights_retention_period,
preferred_backup_window,
preferred_maintenance_window,
processor_features,
promotion_tier,
publicly_accessible,
read_replica_db_cluster_identifiers,
read_replica_db_instance_identifiers,
read_replica_source_db_cluster_identifier,
read_replica_source_db_instance_identifier,
replica_mode,
resume_full_automation_mode_time,
secondary_availability_zone,
status_infos,
storage_encrypted,
storage_encryption_type,
storage_operation_percent_progress,
storage_operation_status,
storage_throughput,
storage_type,
storage_volume_status,
tag_list,
tde_credential_arn,
timezone,
upgrade_rollout_order,
vpc_security_groups
;

UPDATE examples

Associates an Amazon Web Services Identity and Access Management (IAM) role with a DB instance. To add a role to a DB instance, the status of the DB instance must be available. This command doesn't apply to RDS Custom.

UPDATE aws.rds.db_instances
SET
-- No updatable properties
WHERE
DBInstanceIdentifier = '{{ DBInstanceIdentifier }}' --required
AND RoleArn = '{{ RoleArn }}' --required
AND FeatureName = '{{ FeatureName }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a previously provisioned DB instance. When you delete a DB instance, all automated backups for that instance are deleted and can't be recovered. However, manual DB snapshots of the DB instance aren't deleted. If you request a final DB snapshot, the status of the Amazon RDS DB instance is deleting until the DB snapshot is created. This operation can't be canceled or reverted after it begins. To monitor the status of this operation, use DescribeDBInstance. When a DB instance is in a failure state and has a status of failed, incompatible-restore, or incompatible-network, you can only delete it when you skip creation of the final snapshot with the SkipFinalSnapshot parameter. If the specified DB instance is part of an Amazon Aurora DB cluster, you can't delete the DB instance if both of the following conditions are true: The DB cluster is a read replica of another Amazon Aurora DB cluster. The DB instance is the only instance in the DB cluster. To delete a DB instance in this case, first use the PromoteReadReplicaDBCluster operation to promote the DB cluster so that it's no longer a read replica. After the promotion completes, use the DeleteDBInstance operation to delete the final instance in the DB cluster. For RDS Custom DB instances, deleting the DB instance permanently deletes the EC2 instance and the associated EBS volumes. Make sure that you don't terminate or delete these resources before you delete the DB instance. Otherwise, deleting the DB instance and creation of the final snapshot might fail.

DELETE FROM aws.rds.db_instances
WHERE DBInstanceIdentifier = '{{ DBInstanceIdentifier }}' --required
AND region = '{{ region }}' --required
AND SkipFinalSnapshot = '{{ SkipFinalSnapshot }}'
AND FinalDBSnapshotIdentifier = '{{ FinalDBSnapshotIdentifier }}'
AND DeleteAutomatedBackups = '{{ DeleteAutomatedBackups }}'
;

Lifecycle Methods

Downloads all or a portion of the specified log file, up to 1 MB in size. This command doesn't apply to RDS Custom. This operation uses resources on database instances. Because of this, we recommend publishing database logs to CloudWatch and then using the GetLogEvents operation. For more information, see GetLogEvents in the Amazon CloudWatch Logs API Reference.

EXEC aws.rds.db_instances.download_db_log_file_portion
@DBInstanceIdentifier='{{ DBInstanceIdentifier }}' --required,
@LogFileName='{{ LogFileName }}' --required,
@region='{{ region }}' --required,
@Marker='{{ Marker }}',
@NumberOfLines='{{ NumberOfLines }}'
;