| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MigrationHubConfig.CreateHomeRegionControl
Description
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.
Constructors
| CreateHomeRegionControl' | |
Fields
| |
Instances
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.
CreateHomeRegionControl, createHomeRegionControl_homeRegion - The name of the home region of the calling account.
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
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.