Actions, resources, and condition keys for AWS Application Migration Service - Service Authorization Reference

# Actions, resources, and condition keys for AWS Application Migration Service

AWS Application Migration Service (service prefix: `mgn` ) provides the following service-specific resources, actions, and condition context 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.

Topics

- Actions defined by AWS Application Migration Service
- Resource types defined by AWS Application Migration Service
- Condition keys for AWS Application Migration Service

## Actions defined by AWS Application Migration Service

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.

The Resource types column indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("*") in the `Resource` element of your policy statement. If the column includes a resource type, then you can specify an ARN of that type in a statement with that action. Required resources are indicated in the table with an asterisk (*). If you specify a resource-level permission ARN in a statement using this action, then it must be of this type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one but not the other.

For details about the columns in the following table, see The actions table .

Actions | Description | Access level | Resource types (*required) | Condition keys | Dependent actions
--- | --- | --- | --- | --- | ---
BatchCreateVolumeSnapshotGroupForMgn [permission only] | Grants permission to create volume snapshot group | Write | SourceServerResource* |  |
BatchDeleteSnapshotRequestForMgn [permission only] | Grants permission to batch delete snapshot request | Write |  |  |
ChangeServerLifeCycleState | Grants permission to change source server life cycle state | Write | SourceServerResource* |  |
CreateReplicationConfigurationTemplate | Grants permission to create replication configuration template | Write |  | aws:RequestTag/${TagKey} aws:TagKeys |
DeleteJob | Grants permission to delete job | Write | JobResource* |  |
DeleteReplicationConfigurationTemplate | Grants permission to delete replication configuration template | Write | ReplicationConfigurationTemplateResource* |  |
DeleteSourceServer | Grants permission to delete source server | Write | SourceServerResource* |  |
DescribeJobLogItems | Grants permission to describe job log items | Read | JobResource* |  |
DescribeJobs | Grants permission to describe jobs | List |  |  |
DescribeReplicationConfigurationTemplates | Grants permission to describe replication configuration template | List |  |  |
DescribeReplicationServerAssociationsForMgn [permission only] | Grants permission to describe replication server associations | Read |  |  |
DescribeSnapshotRequestsForMgn [permission only] | Grants permission to describe snapshots requests | Read |  |  |
DescribeSourceServers | Grants permission to describe source servers | List |  |  |
DisconnectFromService | Grants permission to disconnect source server from service | Write | SourceServerResource* |  |
FinalizeCutover | Grants permission to finalize cutover | Write | SourceServerResource* |  |
GetAgentCommandForMgn [permission only] | Grants permission to get agent command | Read | SourceServerResource* |  |
GetAgentConfirmedResumeInfoForMgn [permission only] | Grants permission to get agent confirmed resume info | Read | SourceServerResource* |  |
GetAgentInstallationAssetsForMgn [permission only] | Grants permission to get agent installation assets | Read |  |  |
GetAgentReplicationInfoForMgn [permission only] | Grants permission to get agent replication info | Read | SourceServerResource* |  |
GetAgentRuntimeConfigurationForMgn [permission only] | Grants permission to get agent runtime configuration | Read | SourceServerResource* |  |
GetAgentSnapshotCreditsForMgn [permission only] | Grants permission to get agent snapshots credits | Read | SourceServerResource* |  |
GetChannelCommandsForMgn [permission only] | Grants permission to get channel commands | Read |  |  |
GetLaunchConfiguration | Grants permission to get launch configuration | Read | SourceServerResource* |  |
GetReplicationConfiguration | Grants permission to get replication configuration | Read | SourceServerResource* |  |
InitializeService | Grants permission to initialize service | Write |  |  | iam:AddRoleToInstanceProfile iam:CreateInstanceProfile iam:CreateServiceLinkedRole iam:GetInstanceProfile
ListTagsForResource | Grants permission to list tags for a resource | Read |  |  |
MarkAsArchived | Grants permission to mark source server as archived | Write | SourceServerResource* |  |
NotifyAgentAuthenticationForMgn [permission only] | Grants permission to notify agent authentication | Write | SourceServerResource* |  |
NotifyAgentConnectedForMgn [permission only] | Grants permission to notify agent is connected | Write | SourceServerResource* |  |
NotifyAgentDisconnectedForMgn [permission only] | Grants permission to notify agent is disconnected | Write | SourceServerResource* |  |
NotifyAgentReplicationProgressForMgn [permission only] | Grants permission to notify agent replication progress | Write | SourceServerResource* |  |
RegisterAgentForMgn [permission only] | Grants permission to register agent | Write |  | aws:RequestTag/${TagKey} aws:TagKeys |
RetryDataReplication | Grants permission to retry replication | Write | SourceServerResource* |  |
SendAgentLogsForMgn [permission only] | Grants permission to send agent logs | Write | SourceServerResource* |  |
SendAgentMetricsForMgn [permission only] | Grants permission to send agent metrics | Write | SourceServerResource* |  |
SendChannelCommandResultForMgn [permission only] | Grants permission to send channel command result | Write |  |  |
SendClientLogsForMgn [permission only] | Grants permission to send client logs | Write |  |  |
SendClientMetricsForMgn [permission only] | Grants permission to send client metrics | Write |  |  |
StartCutover | Grants permission to start cutover | Write | SourceServerResource* |  | ec2:AttachVolume ec2:AuthorizeSecurityGroupEgress ec2:AuthorizeSecurityGroupIngress ec2:CreateLaunchTemplate ec2:CreateLaunchTemplateVersion ec2:CreateSecurityGroup ec2:CreateSnapshot ec2:CreateTags ec2:CreateVolume ec2:DeleteLaunchTemplateVersions ec2:DeleteSnapshot ec2:DeleteVolume ec2:DescribeAccountAttributes ec2:DescribeAvailabilityZones ec2:DescribeImages ec2:DescribeInstanceAttribute ec2:DescribeInstanceStatus ec2:DescribeInstanceTypes ec2:DescribeInstances ec2:DescribeLaunchTemplateVersions ec2:DescribeLaunchTemplates ec2:DescribeSecurityGroups ec2:DescribeSnapshots ec2:DescribeSubnets ec2:DescribeVolumes ec2:DetachVolume ec2:ModifyInstanceAttribute ec2:ModifyLaunchTemplate ec2:ReportInstanceStatus ec2:RevokeSecurityGroupEgress ec2:RunInstances ec2:StartInstances ec2:StopInstances ec2:TerminateInstances iam:PassRole mgn:ListTagsForResource
| aws:RequestTag/${TagKey} aws:TagKeys |
StartTest | Grants permission to start test | Write | SourceServerResource* |  | ec2:AttachVolume ec2:AuthorizeSecurityGroupEgress ec2:AuthorizeSecurityGroupIngress ec2:CreateLaunchTemplate ec2:CreateLaunchTemplateVersion ec2:CreateSecurityGroup ec2:CreateSnapshot ec2:CreateTags ec2:CreateVolume ec2:DeleteLaunchTemplateVersions ec2:DeleteSnapshot ec2:DeleteVolume ec2:DescribeAccountAttributes ec2:DescribeAvailabilityZones ec2:DescribeImages ec2:DescribeInstanceAttribute ec2:DescribeInstanceStatus ec2:DescribeInstanceTypes ec2:DescribeInstances ec2:DescribeLaunchTemplateVersions ec2:DescribeLaunchTemplates ec2:DescribeSecurityGroups ec2:DescribeSnapshots ec2:DescribeSubnets ec2:DescribeVolumes ec2:DetachVolume ec2:ModifyInstanceAttribute ec2:ModifyLaunchTemplate ec2:ReportInstanceStatus ec2:RevokeSecurityGroupEgress ec2:RunInstances ec2:StartInstances ec2:StopInstances ec2:TerminateInstances iam:PassRole mgn:ListTagsForResource
| aws:RequestTag/${TagKey} aws:TagKeys |
TagResource | Grants permission to assign a resource tag | Tagging |  | aws:RequestTag/${TagKey} aws:TagKeys |
TerminateTargetInstances | Grants permission to terminate target instances | Write | SourceServerResource* |  | ec2:DeleteVolume ec2:DescribeInstances ec2:DescribeVolumes ec2:TerminateInstances
| aws:RequestTag/${TagKey} aws:TagKeys |
UntagResource | Grants permission to untag a resource | Tagging |  | aws:TagKeys |
UpdateAgentBacklogForMgn [permission only] | Grants permission to update agent backlog | Write | SourceServerResource* |  |
UpdateAgentConversionInfoForMgn [permission only] | Grants permission to update agent conversion info | Write | SourceServerResource* |  |
UpdateAgentReplicationInfoForMgn [permission only] | Grants permission to update agent replication info | Write | SourceServerResource* |  |
UpdateAgentReplicationProcessStateForMgn [permission only] | Grants permission to update agent replication process state | Write | SourceServerResource* |  |
UpdateAgentSourcePropertiesForMgn [permission only] | Grants permission to update agent source properties | Write | SourceServerResource* |  |
UpdateLaunchConfiguration | Grants permission to update launch configuration | Write | SourceServerResource* |  |
UpdateReplicationConfiguration | Grants permission to update replication configuration | Write | SourceServerResource* |  |
UpdateReplicationConfigurationTemplate | Grants permission to update replication configuration template | Write | ReplicationConfigurationTemplateResource* |  |

## Resource types defined by AWS Application Migration Service

The following resource types are defined by this service and can be used in the `Resource` element of IAM permission policy statements. Each action in the Actions table identifies the resource types that can be specified with that action. A resource type can also define which condition keys you can include in a policy. These keys are displayed in the last column of the table. For details about the columns in the following table, see The resource types table .

Resource types | ARN | Condition keys
--- | --- | ---
JobResource | `arn:$ { Partition}:mgn:$ { Region}:$ { Account}:job/$ { jobID}` | aws:ResourceTag/${TagKey}
ReplicationConfigurationTemplateResource | `arn:$ { Partition}:mgn:$ { Region}:$ { Account}:replication-configuration-template/$ { replicationConfigurationTemplateID}` | aws:ResourceTag/${TagKey}
SourceServerResource | `arn:$ { Partition}:mgn:$ { Region}:$ { Account}:source-server/$ { sourceServerID}` | aws:ResourceTag/${TagKey}

## Condition keys for AWS Application Migration Service

AWS Application Migration Service defines the following condition keys that can be used in the `Condition` element of an IAM policy. You can use these keys to further refine the conditions under which the policy statement applies. For details about the columns in the following table, see The condition keys table .

To view the global condition keys that are available to all services, see Available global condition keys .

Condition keys | Description | Type
--- | --- | ---
aws:RequestTag/${TagKey} | Filters access based on the presence of tag key-value pairs in the request | String
aws:ResourceTag/${TagKey} | Filters access based on tag key-value pairs attached to the resource | String
aws:TagKeys | Filters access based on the presence of tag keys in the request | String

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.