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

Description

This API sets up the home region for the calling account only.

Synopsis

Creating a Request

data CreateHomeRegionControl Source #

See: newCreateHomeRegionControl smart constructor.

Constructors

CreateHomeRegionControl' 

Fields

  • dryRun :: Maybe Bool

    Optional Boolean flag to indicate whether any effect should take place. It tests whether the caller has permission to make the call.

  • homeRegion :: Text

    The name of the home region of the calling account.

  • target :: Target

    The account for which this command sets up a home region control. The Target is always of type ACCOUNT.

Instances

Instances details
Eq CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

Read CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

Show CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

Generic CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

Associated Types

type Rep CreateHomeRegionControl :: Type -> Type #

NFData CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

Methods

rnf :: CreateHomeRegionControl -> () #

Hashable CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

ToJSON CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

AWSRequest CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

ToHeaders CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

ToPath CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

ToQuery CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

type Rep CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

type Rep CreateHomeRegionControl = D1 ('MetaData "CreateHomeRegionControl" "Amazonka.MigrationHubConfig.CreateHomeRegionControl" "libZSservicesZSamazonka-migrationhub-configZSamazonka-migrationhub-config" 'False) (C1 ('MetaCons "CreateHomeRegionControl'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "homeRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Target))))
type AWSResponse CreateHomeRegionControl Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

newCreateHomeRegionControl Source #

Create a value of CreateHomeRegionControl 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:dryRun:CreateHomeRegionControl', createHomeRegionControl_dryRun - Optional Boolean flag to indicate whether any effect should take place. It tests whether the caller has permission to make the call.

$sel:homeRegion:CreateHomeRegionControl', createHomeRegionControl_homeRegion - The name of the home region of the calling account.

$sel:target:CreateHomeRegionControl', createHomeRegionControl_target - The account for which this command sets up a home region control. The Target is always of type ACCOUNT.

Request Lenses

createHomeRegionControl_dryRun :: Lens' CreateHomeRegionControl (Maybe Bool) Source #

Optional Boolean flag to indicate whether any effect should take place. It tests whether the caller has permission to make the call.

createHomeRegionControl_homeRegion :: Lens' CreateHomeRegionControl Text Source #

The name of the home region of the calling account.

createHomeRegionControl_target :: Lens' CreateHomeRegionControl Target Source #

The account for which this command sets up a home region control. The Target is always of type ACCOUNT.

Destructuring the Response

data CreateHomeRegionControlResponse Source #

See: newCreateHomeRegionControlResponse smart constructor.

Constructors

CreateHomeRegionControlResponse' 

Fields

Instances

Instances details
Eq CreateHomeRegionControlResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

Read CreateHomeRegionControlResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

Show CreateHomeRegionControlResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

Generic CreateHomeRegionControlResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

Associated Types

type Rep CreateHomeRegionControlResponse :: Type -> Type #

NFData CreateHomeRegionControlResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

type Rep CreateHomeRegionControlResponse Source # 
Instance details

Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl

type Rep CreateHomeRegionControlResponse = D1 ('MetaData "CreateHomeRegionControlResponse" "Amazonka.MigrationHubConfig.CreateHomeRegionControl" "libZSservicesZSamazonka-migrationhub-configZSamazonka-migrationhub-config" 'False) (C1 ('MetaCons "CreateHomeRegionControlResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "homeRegionControl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HomeRegionControl)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateHomeRegionControlResponse Source #

Create a value of CreateHomeRegionControlResponse 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:homeRegionControl:CreateHomeRegionControlResponse', createHomeRegionControlResponse_homeRegionControl - This object is the HomeRegionControl object that's returned by a successful call to CreateHomeRegionControl.

$sel:httpStatus:CreateHomeRegionControlResponse', createHomeRegionControlResponse_httpStatus - The response's http status code.

Response Lenses

createHomeRegionControlResponse_homeRegionControl :: Lens' CreateHomeRegionControlResponse (Maybe HomeRegionControl) Source #

This object is the HomeRegionControl object that's returned by a successful call to CreateHomeRegionControl.