describeRegions
abstract suspend fun describeRegions(input: DescribeRegionsRequest = DescribeRegionsRequest { }): DescribeRegionsResponse
Describes the Regions that are enabled for your account, or all Regions.
For a list of the Regions supported by Amazon EC2, see Amazon EC2 service endpoints.
For information about enabling and disabling Regions for your account, see Specify which Amazon Web Services Regions your account can use in the Amazon Web Services Account Management Reference Guide.
The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.
Samples
fun main() {
//sampleStart
// This example describes all the regions that are available to you.
val resp = ec2Client.describeRegions()
//sampleEnd
}