libZSservicesZSamazonka-migrationhub-configZSamazonka-migrationhub-config
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Read GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Show GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Generic GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Associated Types

type Rep GetHomeRegion :: Type -> Type #

NFData GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Methods

rnf :: GetHomeRegion -> () #

Hashable GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

ToJSON GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

AWSRequest GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Associated Types

type AWSResponse 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

type Rep GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

type Rep GetHomeRegion = D1 ('MetaData "GetHomeRegion" "Amazonka.MigrationHubConfig.GetHomeRegion" "libZSservicesZSamazonka-migrationhub-configZSamazonka-migrationhub-config" 'False) (C1 ('MetaCons "GetHomeRegion'" 'PrefixI 'False) (U1 :: Type -> Type))
type AWSResponse GetHomeRegion Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

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
Eq GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Read GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Show GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Generic GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Associated Types

type Rep GetHomeRegionResponse :: Type -> Type #

NFData GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

Methods

rnf :: GetHomeRegionResponse -> () #

type Rep GetHomeRegionResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.GetHomeRegion

type Rep GetHomeRegionResponse = D1 ('MetaData "GetHomeRegionResponse" "Amazonka.MigrationHubConfig.GetHomeRegion" "libZSservicesZSamazonka-migrationhub-configZSamazonka-migrationhub-config" '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:

$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.