Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns the calling account’s home region, if configured. This API is
used by other AWS services to determine the regional endpoint for
calling AWS Application Discovery Service and Migration Hub. You must
call GetHomeRegion
at least once before you call any other AWS
Application Discovery Service and AWS Migration Hub APIs, to obtain the
account's Migration Hub home region.
Synopsis
- data GetHomeRegion = GetHomeRegion' {
- newGetHomeRegion :: GetHomeRegion
- data GetHomeRegionResponse = GetHomeRegionResponse' {
- homeRegion :: Maybe Text
- httpStatus :: Int
- newGetHomeRegionResponse :: Int -> GetHomeRegionResponse
- getHomeRegionResponse_homeRegion :: Lens' GetHomeRegionResponse (Maybe Text)
- getHomeRegionResponse_httpStatus :: Lens' GetHomeRegionResponse Int
Creating a Request
data GetHomeRegion Source #
See: newGetHomeRegion
smart constructor.
Instances
newGetHomeRegion :: GetHomeRegion Source #
Create a value of GetHomeRegion
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetHomeRegionResponse Source #
See: newGetHomeRegionResponse
smart constructor.
GetHomeRegionResponse' | |
|
Instances
newGetHomeRegionResponse Source #
Create a value of GetHomeRegionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:homeRegion:GetHomeRegionResponse'
, getHomeRegionResponse_homeRegion
- The name of the home region of the calling account.
$sel:httpStatus:GetHomeRegionResponse'
, getHomeRegionResponse_httpStatus
- The response's http status code.
Response Lenses
getHomeRegionResponse_homeRegion :: Lens' GetHomeRegionResponse (Maybe Text) Source #
The name of the home region of the calling account.
getHomeRegionResponse_httpStatus :: Lens' GetHomeRegionResponse Int Source #
The response's http status code.