Skip to main content

home_region_controls

Creates, updates, deletes, gets or lists a home_region_controls resource.

Overview

Namehome_region_controls
TypeResource
Idaws.migrationhub_config.home_region_controls

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
home_region_controlsarrayAn array that contains your HomeRegionControl objects.
next_tokenstringIf a NextToken was returned by a previous call, more results are available. To retrieve the next page of results, make the call again using the returned token in NextToken. (pattern: <code>^[a-zA-Z0-9/+=]{0,2048}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_home_region_controlsselectregionThis API permits filtering on the ControlId and HomeRegion fields.
create_home_region_controlinsertregion, HomeRegion, TargetThis API sets up the home region for the calling account only.
delete_home_region_controldeleteregionThis operation deletes the home region configuration for the calling account. The operation does not delete discovery or migration tracking data in the home region.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

This API permits filtering on the ControlId and HomeRegion fields.

SELECT
home_region_controls,
next_token
FROM aws.migrationhub_config.home_region_controls
WHERE region = '{{ region }}' -- required
;

INSERT examples

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

INSERT INTO aws.migrationhub_config.home_region_controls (
HomeRegion,
Target,
DryRun,
region
)
SELECT
'{{ HomeRegion }}' /* required */,
'{{ Target }}' /* required */,
{{ DryRun }},
'{{ region }}'
RETURNING
home_region_control
;

DELETE examples

This operation deletes the home region configuration for the calling account. The operation does not delete discovery or migration tracking data in the home region.

DELETE FROM aws.migrationhub_config.home_region_controls
WHERE region = '{{ region }}' --required
;