Actions, resources, and condition keys for AWS Migration Hub
AWS Migration Hub (service prefix: mgh) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by AWS Migration Hub
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | SDK client | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|---|
|
AssociateCreatedArtifact |
mgh |
Write |
|||
|
AssociateDiscoveredResource |
mgh |
Write |
|||
|
AssociateSourceResource |
mgh |
Write |
|||
|
CreateProgressUpdateStream |
mgh |
Write |
|||
|
DeleteProgressUpdateStream |
mgh |
Write |
|||
|
DescribeApplicationState |
mgh |
Read |
|||
|
DescribeMigrationTask |
mgh |
Read |
|||
|
DisassociateCreatedArtifact |
mgh |
Write |
|||
|
DisassociateDiscoveredResource |
mgh |
Write |
|||
|
DisassociateSourceResource |
mgh |
Write |
|||
|
ImportMigrationTask |
mgh |
Write |
|||
|
ListApplicationStates |
mgh |
List |
|||
|
ListCreatedArtifacts |
mgh |
List |
|||
|
ListDiscoveredResources |
mgh |
List |
|||
|
ListMigrationTaskUpdates |
mgh |
List |
|||
|
ListMigrationTasks |
mgh |
List |
|||
|
ListProgressUpdateStreams |
mgh |
List |
|||
|
ListSourceResources |
mgh |
List |
|||
|
NotifyApplicationState |
mgh |
Write |
|||
|
NotifyMigrationTaskState |
mgh |
Write |
|||
|
PutResourceAttributes |
mgh |
Write |
|||
|
CreateHomeRegionControl |
migrationhub-config |
Write |
|||
|
DeleteHomeRegionControl |
migrationhub-config |
Write |
|||
|
DescribeHomeRegionControls |
migrationhub-config |
List |
|||
|
GetHomeRegion |
migrationhub-config |
Read |
Actions defined by AWS Migration Hub
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in AWS. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to accept a connection |
Write |
|||
Grants permission to associate an IAM role to an automation unit |
Write |
|||
Grants permission to associate a given AWS artifact to a MigrationTask |
Write |
|||
Grants permission to associate a given ADS resource to a MigrationTask |
Write |
|||
Grants permission to associate source resource |
Write |
|||
Grants permission to batch-associate IAM roles with a connection |
Write |
|||
Grants permission to batch-disassociate IAM roles from a connection |
Write |
|||
Grants permission to create an automation unit run |
Write |
|||
Grants permission to create an automation unit |
Write |
|||
Grants permission to create a Migration Hub Home Region Control |
Write |
|||
Grants permission to create a ProgressUpdateStream |
Write |
|||
Grants permission to delete an automation unit run |
Write |
|||
Grants permission to delete an automation unit |
Write |
|||
Grants permission to delete a connection |
Write |
|||
Grants permission to delete a Migration Hub Home Region Control |
Write |
|||
Grants permission to delete a ProgressUpdateStream |
Write |
|||
Grants permission to get an Application Discovery Service Application's state |
Read |
|||
Grants permission to describe an automation unit run |
Read |
|||
Grants permission to describe an automation unit |
Read |
|||
Grants permission to list Home Region Controls |
List |
|||
Grants permission to describe a MigrationTask |
Read |
|||
Grants permission to disassociate an IAM role from an automation unit |
Write |
|||
Grants permission to disassociate a given AWS artifact from a MigrationTask |
Write |
|||
Grants permission to disassociate a given ADS resource from a MigrationTask |
Write |
|||
Grants permission to diassociate source resource |
Write |
|||
Grants permission to get a connection |
Read |
|||
Grants permission to get the Migration Hub Home Region |
Read |
|||
Grants permission to import a MigrationTask |
Write |
|||
Grants permission to list Application statuses |
List |
|||
Grants permission to list automation unit runs |
List |
|||
Grants permission to list automation units |
List |
|||
Grants permission to list connection roles |
List |
|||
Grants permission to list connections |
List |
|||
Grants permission to list associated created artifacts for a MigrationTask |
List |
|||
Grants permission to list associated ADS resources from MigrationTask |
List |
|||
Grants permission to list migration tasks updates |
List |
|||
Grants permission to list MigrationTasks |
List |
|||
Grants permission to to list ProgressUpdateStreams |
List |
|||
Grants permission to list source resources |
List |
|||
Grants permission to list tags for a resource |
List |
|||
Grants permission to update an Application Discovery Service Application's state |
Write |
|||
Grants permission to notify latest MigrationTask state |
Write |
|||
Grants permission to put ResourceAttributes |
Write |
|||
Grants permission to reject a connection |
Write |
|||
Grants permission to tag a resource |
Tagging, Write |
|||
Grants permission to untag a resource |
Tagging, Write |
Resource types defined by AWS Migration Hub
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:mgh:${Region}:${Account}:automation-run/${RunID} |
||
arn:${Partition}:mgh:${Region}:${Account}:automation-unit/${AutomationUnitId} |
||
arn:${Partition}:mgh:${Region}:${Account}:${ConnectionArn} |
||
arn:${Partition}:mgh:${Region}:${Account}:progressUpdateStream/${Stream}/migrationTask/${Task} |
||
arn:${Partition}:mgh:${Region}:${Account}:progressUpdateStream/${Stream} |
Condition keys for AWS Migration Hub
AWS Migration Hub defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access based on the tags that are passed in the request |
String |
|
Filters access based on the tags associated with the resource |
String |
|
Filters access based on the tag keys that are passed in the request |
ArrayOfString |
|
AutomationRunResource resource runID identifier |
String |
|
AutomationUnitResource resource automationUnitArn identifier |
ARN |
|
ConnectionResource resource connectionArn identifier |
String |