mgn:GetAgentCommandForMgn

Read

mgn:GetAgentCommandForMgn is a Read access-level action in the mgn service. Grants permission to get agent command

Resource types

ARNs that mgn:GetAgentCommandForMgn can be scoped to in an IAM policy.

arn:${Partition}:mgn:${Region}:${Account}:source-server/${SourceServerID}
SourceServerResource

Condition keys

Keys you can use in the Condition block of a policy that grants mgn:GetAgentCommandForMgn.

aws:ResourceTag/${TagKey} String

Filters access by tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows mgn:GetAgentCommandForMgn. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowMgnGetAgentCommandForMgn",
      "Effect": "Allow",
      "Action": "mgn:GetAgentCommandForMgn",
      "Resource": "*"
    }
  ]
}

Related actions in mgn

View all mgn actions →