{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.migrationhubconfig#AWSMigrationHubMultiAccountService": { "type": "service", "version": "2019-06-30", "operations": [ { "target": "com.amazonaws.migrationhubconfig#CreateHomeRegionControl" }, { "target": "com.amazonaws.migrationhubconfig#DescribeHomeRegionControls" }, { "target": "com.amazonaws.migrationhubconfig#GetHomeRegion" } ], "traits": { "aws.api#service": { "sdkId": "MigrationHub Config", "arnNamespace": "mgh", "cloudFormationName": "MigrationHubConfig", "cloudTrailEventSource": "migrationhubconfig.amazonaws.com", "endpointPrefix": "migrationhub-config" }, "aws.auth#sigv4": { "name": "mgh" }, "aws.protocols#awsJson1_1": {}, "smithy.api#documentation": "
The AWS Migration Hub home region APIs are available specifically for working with your\n Migration Hub home region. You can use these APIs to determine a home region, as well as to\n create and work with controls that describe the home region.
\n\nYou must make API calls for write actions (create, notify, associate, disassociate,\n import, or put) while in your home region, or a HomeRegionNotSetException
\n error is returned.
API calls for read actions (list, describe, stop, and delete) are permitted outside of\n your home region.
\nIf you call a write API outside the home region, an InvalidInputException
\n is returned.
You can call GetHomeRegion
action to obtain the account's Migration Hub\n home region.
For specific API usage, see the sections that follow in this AWS Migration Hub Home Region\n API reference.
", "smithy.api#title": "AWS Migration Hub Config" } }, "com.amazonaws.migrationhubconfig#AccessDeniedException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.migrationhubconfig#ErrorMessage" } }, "traits": { "smithy.api#documentation": "You do not have sufficient access to perform this action.
", "smithy.api#error": "client" } }, "com.amazonaws.migrationhubconfig#ControlId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 50 }, "smithy.api#pattern": "^hrc-[a-z0-9]{12}$" } }, "com.amazonaws.migrationhubconfig#CreateHomeRegionControl": { "type": "operation", "input": { "target": "com.amazonaws.migrationhubconfig#CreateHomeRegionControlRequest" }, "output": { "target": "com.amazonaws.migrationhubconfig#CreateHomeRegionControlResult" }, "errors": [ { "target": "com.amazonaws.migrationhubconfig#AccessDeniedException" }, { "target": "com.amazonaws.migrationhubconfig#DryRunOperation" }, { "target": "com.amazonaws.migrationhubconfig#InternalServerError" }, { "target": "com.amazonaws.migrationhubconfig#InvalidInputException" }, { "target": "com.amazonaws.migrationhubconfig#ServiceUnavailableException" }, { "target": "com.amazonaws.migrationhubconfig#ThrottlingException" } ], "traits": { "smithy.api#documentation": "This API sets up the home region for the calling account only.
" } }, "com.amazonaws.migrationhubconfig#CreateHomeRegionControlRequest": { "type": "structure", "members": { "HomeRegion": { "target": "com.amazonaws.migrationhubconfig#HomeRegion", "traits": { "smithy.api#documentation": "The name of the home region of the calling account.
", "smithy.api#required": {} } }, "Target": { "target": "com.amazonaws.migrationhubconfig#Target", "traits": { "smithy.api#documentation": "The account for which this command sets up a home region control. The Target
\n is always of type ACCOUNT
.
Optional Boolean flag to indicate whether any effect should take place. It tests whether\n the caller has permission to make the call.
" } } } }, "com.amazonaws.migrationhubconfig#CreateHomeRegionControlResult": { "type": "structure", "members": { "HomeRegionControl": { "target": "com.amazonaws.migrationhubconfig#HomeRegionControl", "traits": { "smithy.api#documentation": "This object is the HomeRegionControl
object that's returned by a successful\n call to CreateHomeRegionControl
.
This API permits filtering on the ControlId
and HomeRegion
\n fields.
The ControlID
is a unique identifier string of your\n HomeRegionControl
object.
The name of the home region you'd like to view.
" } }, "Target": { "target": "com.amazonaws.migrationhubconfig#Target", "traits": { "smithy.api#documentation": "The target parameter specifies the identifier to which the home region is applied, which\n is always of type ACCOUNT
. It applies the home region to the current\n ACCOUNT
.
The maximum number of filtering results to display per page.
" } }, "NextToken": { "target": "com.amazonaws.migrationhubconfig#Token", "traits": { "smithy.api#documentation": "If a NextToken
was returned by a previous call, more results are available.\n To retrieve the next page of results, make the call again using the returned token in\n NextToken
.
An array that contains your HomeRegionControl
objects.
If a NextToken
was returned by a previous call, more results are available.\n To retrieve the next page of results, make the call again using the returned token in\n NextToken
.
Exception raised to indicate that authorization of an action was successful, when the\n DryRun
flag is set to true.
Returns the calling account’s home region, if configured. This API is used by other AWS\n services to determine the regional endpoint for calling AWS Application Discovery Service and\n Migration Hub. You must call GetHomeRegion
at least once before you call any\n other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's\n Migration Hub home region.
The name of the home region of the calling account.
" } } } }, "com.amazonaws.migrationhubconfig#HomeRegion": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 50 }, "smithy.api#pattern": "^([a-z]+)-([a-z]+)-([0-9]+)$" } }, "com.amazonaws.migrationhubconfig#HomeRegionControl": { "type": "structure", "members": { "ControlId": { "target": "com.amazonaws.migrationhubconfig#ControlId", "traits": { "smithy.api#documentation": "A unique identifier that's generated for each home region control. It's always a string\n that begins with \"hrc-\" followed by 12 lowercase letters and numbers.
" } }, "HomeRegion": { "target": "com.amazonaws.migrationhubconfig#HomeRegion", "traits": { "smithy.api#documentation": "The AWS Region that's been set as home region. For example, \"us-west-2\" or \"eu-central-1\"\n are valid home regions.
" } }, "Target": { "target": "com.amazonaws.migrationhubconfig#Target", "traits": { "smithy.api#documentation": "The target parameter specifies the identifier to which the home region is applied, which\n is always an ACCOUNT
. It applies the home region to the current\n ACCOUNT
.
A timestamp representing the time when the customer called\n CreateHomeregionControl
and set the home region for the account.
A home region control is an object that specifies the home region for an account, with\n some additional information. It contains a target (always of type ACCOUNT
), an\n ID, and a time at which the home region was set.
Exception raised when an internal, configuration, or dependency error is\n encountered.
", "smithy.api#error": "server" } }, "com.amazonaws.migrationhubconfig#InvalidInputException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.migrationhubconfig#ErrorMessage" } }, "traits": { "smithy.api#documentation": "Exception raised when the provided input violates a policy constraint or is entered in the\n wrong format or data type.
", "smithy.api#error": "client" } }, "com.amazonaws.migrationhubconfig#RequestedTime": { "type": "timestamp" }, "com.amazonaws.migrationhubconfig#RetryAfterSeconds": { "type": "integer" }, "com.amazonaws.migrationhubconfig#ServiceUnavailableException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.migrationhubconfig#ErrorMessage" } }, "traits": { "smithy.api#documentation": "Exception raised when a request fails due to temporary unavailability of the\n service.
", "smithy.api#error": "server" } }, "com.amazonaws.migrationhubconfig#Target": { "type": "structure", "members": { "Type": { "target": "com.amazonaws.migrationhubconfig#TargetType", "traits": { "smithy.api#documentation": "The target type is always an ACCOUNT
.
The TargetID
is a 12-character identifier of the ACCOUNT
for\n which the control was created. (This must be the current account.)
The target parameter specifies the identifier to which the home region is applied, which\n is always an ACCOUNT
. It applies the home region to the current\n ACCOUNT
.
The number of seconds the caller should wait before retrying.
", "smithy.api#httpHeader": "Retry-After" } } }, "traits": { "smithy.api#documentation": "The request was denied due to request throttling.
", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.migrationhubconfig#Token": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 2048 }, "smithy.api#pattern": "^[a-zA-Z0-9\\/\\+\\=]{0,2048}$" } } } }