describeSourceRegions
abstract suspend fun describeSourceRegions(input: DescribeSourceRegionsRequest = DescribeSourceRegionsRequest { }): DescribeSourceRegionsResponse
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.
Samples
fun main() {
//sampleStart
// The following example retrieves details about all source AWS Regions where the current AWS Region
// can create a read replica, copy a DB snapshot from, or replicate automated backups from. It also shows
// that automated backups can be replicated only from US West
// (Oregon) to the destination AWS Region, US East (N. Virginia).
val resp = rdsClient.describeSourceRegions {
regionName = "us-east-1"
}
//sampleEnd
}