mgh:ListConnectionRoles

List

mgh:ListConnectionRoles is a List access-level action in the mgh service. Grants permission to list connection roles

Resource types

ARNs that mgh:ListConnectionRoles can be scoped to in an IAM policy.

arn:${Partition}:mgh:${Region}:${Account}:${ConnectionArn}
ConnectionResource

Condition keys

Keys you can use in the Condition block of a policy that grants mgh:ListConnectionRoles.

aws:ResourceTag/${TagKey} String

Filters access based on the tags associated with the resource

mgh:ConnectionResourceConnectionArn String

ConnectionResource resource connectionArn identifier

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowMghListConnectionRoles",
      "Effect": "Allow",
      "Action": "mgh:ListConnectionRoles",
      "Resource": "*"
    }
  ]
}

Related actions in mgh

View all mgh actions →