{ "version":"2.0", "metadata":{ "apiVersion":"2019-06-30", "endpointPrefix":"migrationhub-config", "jsonVersion":"1.1", "protocol":"json", "serviceFullName":"AWS Migration Hub Config", "serviceId":"MigrationHub Config", "signatureVersion":"v4", "signingName":"mgh", "targetPrefix":"AWSMigrationHubMultiAccountService", "uid":"migrationhub-config-2019-06-30" }, "operations":{ "CreateHomeRegionControl":{ "name":"CreateHomeRegionControl", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateHomeRegionControlRequest"}, "output":{"shape":"CreateHomeRegionControlResult"}, "errors":[ {"shape":"InternalServerError"}, {"shape":"ServiceUnavailableException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"}, {"shape":"DryRunOperation"}, {"shape":"InvalidInputException"} ], "documentation":"

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

" }, "DescribeHomeRegionControls":{ "name":"DescribeHomeRegionControls", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeHomeRegionControlsRequest"}, "output":{"shape":"DescribeHomeRegionControlsResult"}, "errors":[ {"shape":"InternalServerError"}, {"shape":"ServiceUnavailableException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"}, {"shape":"InvalidInputException"} ], "documentation":"

This API permits filtering on the ControlId and HomeRegion fields.

" }, "GetHomeRegion":{ "name":"GetHomeRegion", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetHomeRegionRequest"}, "output":{"shape":"GetHomeRegionResult"}, "errors":[ {"shape":"InternalServerError"}, {"shape":"ServiceUnavailableException"}, {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"}, {"shape":"InvalidInputException"} ], "documentation":"

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.

" } }, "shapes":{ "AccessDeniedException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

You do not have sufficient access to perform this action.

", "exception":true }, "ControlId":{ "type":"string", "max":50, "min":1, "pattern":"^hrc-[a-z0-9]{12}$" }, "CreateHomeRegionControlRequest":{ "type":"structure", "required":[ "HomeRegion", "Target" ], "members":{ "HomeRegion":{ "shape":"HomeRegion", "documentation":"

The name of the home region of the calling account.

" }, "Target":{ "shape":"Target", "documentation":"

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

" }, "DryRun":{ "shape":"DryRun", "documentation":"

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

" } } }, "CreateHomeRegionControlResult":{ "type":"structure", "members":{ "HomeRegionControl":{ "shape":"HomeRegionControl", "documentation":"

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

" } } }, "DescribeHomeRegionControlsMaxResults":{ "type":"integer", "box":true, "max":100, "min":1 }, "DescribeHomeRegionControlsRequest":{ "type":"structure", "members":{ "ControlId":{ "shape":"ControlId", "documentation":"

The ControlID is a unique identifier string of your HomeRegionControl object.

" }, "HomeRegion":{ "shape":"HomeRegion", "documentation":"

The name of the home region you'd like to view.

" }, "Target":{ "shape":"Target", "documentation":"

The target parameter specifies the identifier to which the home region is applied, which is always of type ACCOUNT. It applies the home region to the current ACCOUNT.

" }, "MaxResults":{ "shape":"DescribeHomeRegionControlsMaxResults", "documentation":"

The maximum number of filtering results to display per page.

" }, "NextToken":{ "shape":"Token", "documentation":"

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

" } } }, "DescribeHomeRegionControlsResult":{ "type":"structure", "members":{ "HomeRegionControls":{ "shape":"HomeRegionControls", "documentation":"

An array that contains your HomeRegionControl objects.

" }, "NextToken":{ "shape":"Token", "documentation":"

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

" } } }, "DryRun":{"type":"boolean"}, "DryRunOperation":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Exception raised to indicate that authorization of an action was successful, when the DryRun flag is set to true.

", "exception":true }, "ErrorMessage":{"type":"string"}, "GetHomeRegionRequest":{ "type":"structure", "members":{ } }, "GetHomeRegionResult":{ "type":"structure", "members":{ "HomeRegion":{ "shape":"HomeRegion", "documentation":"

The name of the home region of the calling account.

" } } }, "HomeRegion":{ "type":"string", "max":50, "min":1, "pattern":"^([a-z]+)-([a-z]+)-([0-9]+)$" }, "HomeRegionControl":{ "type":"structure", "members":{ "ControlId":{ "shape":"ControlId", "documentation":"

A unique identifier that's generated for each home region control. It's always a string that begins with \"hrc-\" followed by 12 lowercase letters and numbers.

" }, "HomeRegion":{ "shape":"HomeRegion", "documentation":"

The AWS Region that's been set as home region. For example, \"us-west-2\" or \"eu-central-1\" are valid home regions.

" }, "Target":{ "shape":"Target", "documentation":"

The target parameter specifies the identifier to which the home region is applied, which is always an ACCOUNT. It applies the home region to the current ACCOUNT.

" }, "RequestedTime":{ "shape":"RequestedTime", "documentation":"

A timestamp representing the time when the customer called CreateHomeregionControl and set the home region for the account.

" } }, "documentation":"

A home region control is an object that specifies the home region for an account, with some additional information. It contains a target (always of type ACCOUNT), an ID, and a time at which the home region was set.

" }, "HomeRegionControls":{ "type":"list", "member":{"shape":"HomeRegionControl"}, "max":100 }, "InternalServerError":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Exception raised when an internal, configuration, or dependency error is encountered.

", "exception":true, "fault":true }, "InvalidInputException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type.

", "exception":true }, "RequestedTime":{"type":"timestamp"}, "RetryAfterSeconds":{"type":"integer"}, "ServiceUnavailableException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Exception raised when a request fails due to temporary unavailability of the service.

", "exception":true, "fault":true }, "Target":{ "type":"structure", "required":["Type"], "members":{ "Type":{ "shape":"TargetType", "documentation":"

The target type is always an ACCOUNT.

" }, "Id":{ "shape":"TargetId", "documentation":"

The TargetID is a 12-character identifier of the ACCOUNT for which the control was created. (This must be the current account.)

" } }, "documentation":"

The target parameter specifies the identifier to which the home region is applied, which is always an ACCOUNT. It applies the home region to the current ACCOUNT.

" }, "TargetId":{ "type":"string", "max":12, "min":12, "pattern":"^\\d{12}$" }, "TargetType":{ "type":"string", "enum":["ACCOUNT"] }, "ThrottlingException":{ "type":"structure", "required":["Message"], "members":{ "Message":{"shape":"ErrorMessage"}, "RetryAfterSeconds":{ "shape":"RetryAfterSeconds", "documentation":"

The number of seconds the caller should wait before retrying.

" } }, "documentation":"

The request was denied due to request throttling.

", "exception":true }, "Token":{ "type":"string", "max":2048, "min":0, "pattern":"^[a-zA-Z0-9\\/\\+\\=]{0,2048}$" } }, "documentation":"

The AWS Migration Hub home region APIs are available specifically for working with your Migration Hub home region. You can use these APIs to determine a home region, as well as to create and work with controls that describe the home region.

For specific API usage, see the sections that follow in this AWS Migration Hub Home Region API reference.

" }