Skip to main content

db_snapshot_tenant_databases

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

Overview

Namedb_snapshot_tenant_databases
TypeResource
Idaws.rds.db_snapshot_tenant_databases

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
character_set_namestringThe name of the character set of a tenant database.
db_instance_identifierstringThe ID for the DB instance that contains the tenant databases.
db_snapshot_identifierstringThe identifier for the snapshot of the DB instance.
db_snapshot_tenant_database_arnstringThe Amazon Resource Name (ARN) for the snapshot tenant database.
dbi_resource_idstringThe resource identifier of the source CDB instance. This identifier can't be changed and is unique to an Amazon Web Services Region.
engine_namestringThe name of the database engine.
master_usernamestringThe master username of the tenant database.
nchar_character_set_namestringThe NCHAR character set name of the tenant database.
snapshot_typestringThe type of DB snapshot.
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.
tenant_db_namestringThe name of the tenant database.
tenant_database_create_timestringThe time the DB snapshot was taken, specified in Coordinated Universal Time (UTC). If you copy the snapshot, the creation time changes.
tenant_database_resource_idstringThe resource ID of the tenant database.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_db_snapshot_tenant_databasesselectregionDBInstanceIdentifier, DBSnapshotIdentifier, SnapshotType, Filters, MaxRecords, Marker, DbiResourceIdDescribes the tenant databases that exist in a DB snapshot. This command only applies to RDS for Oracle DB instances in the multi-tenant configuration. You can use this command to inspect the tenant databases within a snapshot before restoring it. You can't directly interact with the tenant databases in a DB snapshot. If you restore a snapshot that was taken from DB instance using the multi-tenant configuration, you restore all its tenant databases.

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
regionstringAWS region (default: us-east-1)
DBInstanceIdentifierstringThe ID of the DB instance used to create the DB snapshots. This parameter isn't case-sensitive. Constraints: If supplied, must match the identifier of an existing DBInstance.
DBSnapshotIdentifierstringThe ID of a DB snapshot that contains the tenant databases to describe. This value is stored as a lowercase string. Constraints: If you specify this parameter, the value must match the ID of an existing DB snapshot. If you specify an automatic snapshot, you must also specify SnapshotType.
DbiResourceIdstringA specific DB resource identifier to describe.
FiltersarrayA filter that specifies one or more tenant databases to describe. Supported filters: tenant-db-name - Tenant database names. The results list only includes information about the tenant databases that match these tenant DB names. tenant-database-resource-id - Tenant database resource identifiers. The results list only includes information about the tenant databases contained within the DB snapshots. dbi-resource-id - DB instance resource identifiers. The results list only includes information about snapshots containing tenant databases contained within the DB instances identified by these resource identifiers. db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). db-snapshot-id - Accepts DB snapshot identifiers. snapshot-type - Accepts types of DB snapshots.
MarkerstringAn optional pagination token provided by a previous DescribeDBSnapshotTenantDatabases request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
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.
SnapshotTypestringThe type of DB snapshots to be returned. You can specify one of the following values: automated – All DB snapshots that have been automatically taken by Amazon RDS for my Amazon Web Services account. manual – All DB snapshots that have been taken by my Amazon Web Services account. shared – All manual DB snapshots that have been shared to my Amazon Web Services account. public – All DB snapshots that have been marked as public. awsbackup – All DB snapshots managed by the Amazon Web Services Backup service.

SELECT examples

Describes the tenant databases that exist in a DB snapshot. This command only applies to RDS for Oracle DB instances in the multi-tenant configuration. You can use this command to inspect the tenant databases within a snapshot before restoring it. You can't directly interact with the tenant databases in a DB snapshot. If you restore a snapshot that was taken from DB instance using the multi-tenant configuration, you restore all its tenant databases.

SELECT
character_set_name,
db_instance_identifier,
db_snapshot_identifier,
db_snapshot_tenant_database_arn,
dbi_resource_id,
engine_name,
master_username,
nchar_character_set_name,
snapshot_type,
tag_list,
tenant_db_name,
tenant_database_create_time,
tenant_database_resource_id
FROM aws.rds.db_snapshot_tenant_databases
WHERE region = '{{ region }}' -- required
AND DBInstanceIdentifier = '{{ DBInstanceIdentifier }}'
AND DBSnapshotIdentifier = '{{ DBSnapshotIdentifier }}'
AND SnapshotType = '{{ SnapshotType }}'
AND Filters = '{{ Filters }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
AND DbiResourceId = '{{ DbiResourceId }}'
;