Skip to main content

source_regions

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

Overview

Namesource_regions
TypeResource
Idaws.rds.source_regions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
endpointstringThe endpoint for the source Amazon Web Services Region endpoint.
region_namestringThe name of the source Amazon Web Services Region.
statusstringThe status of the source Amazon Web Services Region.
supports_db_instance_automated_backups_replicationbooleanIndicates whether the source Amazon Web Services Region supports replicating automated backups to the current Amazon Web Services Region.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_source_regionsselectregionRegionName, MaxRecords, Marker, FiltersReturns a list of the source Amazon Web Services Regions where the current Amazon Web Services Region can create a read replica, copy a DB snapshot from, or replicate automated backups from. Use this operation to determine whether cross-Region features are supported between other Regions and your current Region. This operation supports pagination. To return information about the Regions that are enabled for your account, or all Regions, use the EC2 operation DescribeRegions. For more information, see DescribeRegions in the Amazon EC2 API Reference.

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)
FiltersarrayThis parameter isn't currently supported.
MarkerstringAn optional pagination token provided by a previous DescribeSourceRegions 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 you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100.
RegionNamestringThe source Amazon Web Services Region name. For example, us-east-1. Constraints: Must specify a valid Amazon Web Services Region name.

SELECT examples

Returns a list of the source Amazon Web Services Regions where the current Amazon Web Services Region can create a read replica, copy a DB snapshot from, or replicate automated backups from. Use this operation to determine whether cross-Region features are supported between other Regions and your current Region. This operation supports pagination. To return information about the Regions that are enabled for your account, or all Regions, use the EC2 operation DescribeRegions. For more information, see DescribeRegions in the Amazon EC2 API Reference.

SELECT
endpoint,
region_name,
status,
supports_db_instance_automated_backups_replication
FROM aws.rds.source_regions
WHERE region = '{{ region }}' -- required
AND RegionName = '{{ RegionName }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
AND Filters = '{{ Filters }}'
;