amazonka-migrationhub-config-2.0: Amazon Migration Hub Config SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MigrationHubConfig.GetHomeRegion

Description

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

Creating a Request

data GetHomeRegion Source #

See: newGetHomeRegion smart constructor.

Constructors

GetHomeRegion' 

Instances

Instances details
ToJSON GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

ToHeaders GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

ToPath GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

ToQuery GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

AWSRequest GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Associated Types

type AWSResponse GetHomeRegion #

Generic GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Associated Types

type Rep GetHomeRegion :: Type -> Type #

Read GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Show GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

NFData GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Methods

rnf :: GetHomeRegion -> () #

Eq GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Hashable GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

type AWSResponse GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

type Rep GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

type Rep GetHomeRegion = D1 ('MetaData "GetHomeRegion" "Amazonka.MigrationHubConfig.GetHomeRegion" "amazonka-migrationhub-config-2.0-3Ai1l2DYBdtHtjir9KlsDr" 'False) (C1 ('MetaCons "GetHomeRegion'" 'PrefixI 'False) (U1 :: Type -> Type))

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.

Constructors

GetHomeRegionResponse' 

Fields

Instances

Instances details
Generic GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Associated Types

type Rep GetHomeRegionResponse :: Type -> Type #

Read GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Show GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

NFData GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Methods

rnf :: GetHomeRegionResponse -> () #

Eq GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

type Rep GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

type Rep GetHomeRegionResponse = D1 ('MetaData "GetHomeRegionResponse" "Amazonka.MigrationHubConfig.GetHomeRegion" "amazonka-migrationhub-config-2.0-3Ai1l2DYBdtHtjir9KlsDr" 'False) (C1 ('MetaCons "GetHomeRegionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "homeRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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:

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.