describeRegions
inline suspend fun Ec2Client.describeRegions(crossinline block: DescribeRegionsRequest.Builder.() -> Unit): 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 Elastic Compute Cloud endpoints and quotas.
For information about enabling and disabling Regions for your account, see Managing Amazon Web Services Regions in the Amazon Web Services General Reference.
Samples
fun main() {
//sampleStart
// This example describes all the regions that are available to you.
val resp = ec2Client.describeRegions()
//sampleEnd
}