aws_sdk_migrationhubconfig/client/get_home_region.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetHomeRegion`](crate::operation::get_home_region::builders::GetHomeRegionFluentBuilder) operation.
4 ///
5 /// - The fluent builder takes no input, just [`send`](crate::operation::get_home_region::builders::GetHomeRegionFluentBuilder::send) it.
6 /// - On success, responds with [`GetHomeRegionOutput`](crate::operation::get_home_region::GetHomeRegionOutput) with field(s):
7 /// - [`home_region(Option<String>)`](crate::operation::get_home_region::GetHomeRegionOutput::home_region): <p>The name of the home region of the calling account.</p>
8 /// - On failure, responds with [`SdkError<GetHomeRegionError>`](crate::operation::get_home_region::GetHomeRegionError)
9 pub fn get_home_region(&self) -> crate::operation::get_home_region::builders::GetHomeRegionFluentBuilder {
10 crate::operation::get_home_region::builders::GetHomeRegionFluentBuilder::new(self.handle.clone())
11 }
12}