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 |
This API sets up the home region for the calling account only.
Synopsis
- data CreateHomeRegionControl = CreateHomeRegionControl' {}
- newCreateHomeRegionControl :: Text -> Target -> CreateHomeRegionControl
- createHomeRegionControl_dryRun :: Lens' CreateHomeRegionControl (Maybe Bool)
- createHomeRegionControl_homeRegion :: Lens' CreateHomeRegionControl Text
- createHomeRegionControl_target :: Lens' CreateHomeRegionControl Target
- data CreateHomeRegionControlResponse = CreateHomeRegionControlResponse' {}
- newCreateHomeRegionControlResponse :: Int -> CreateHomeRegionControlResponse
- createHomeRegionControlResponse_homeRegionControl :: Lens' CreateHomeRegionControlResponse (Maybe HomeRegionControl)
- createHomeRegionControlResponse_httpStatus :: Lens' CreateHomeRegionControlResponse Int
Creating a Request
data CreateHomeRegionControl Source #
See: newCreateHomeRegionControl
smart constructor.
CreateHomeRegionControl' | |
|
Instances
newCreateHomeRegionControl Source #
:: Text | |
-> Target | |
-> CreateHomeRegionControl |
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.
CreateHomeRegionControlResponse' | |
|
Instances
Eq CreateHomeRegionControlResponse Source # | |
Read CreateHomeRegionControlResponse Source # | |
Show CreateHomeRegionControlResponse Source # | |
Generic CreateHomeRegionControlResponse Source # | |
NFData CreateHomeRegionControlResponse Source # | |
Defined in Amazonka.MigrationHubConfig.CreateHomeRegionControl rnf :: CreateHomeRegionControlResponse -> () # | |
type Rep CreateHomeRegionControlResponse Source # | |
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
.
createHomeRegionControlResponse_httpStatus :: Lens' CreateHomeRegionControlResponse Int Source #
The response's http status code.