mgn:ListNetworkMigrationCodeGenerations

List

mgn:ListNetworkMigrationCodeGenerations is a List access-level action in the mgn service. Grants permission to list network migration code generations

Resource types

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

arn:${Partition}:mgn:${Region}:${Account}:network-migration-definition/${NetworkMigrationDefinitionID}
NetworkMigrationDefinitionResource

Condition keys

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

aws:ResourceTag/${TagKey} String

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

Example IAM policy

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

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

Related actions in mgn

View all mgn actions →