mgh:BatchAssociateIamRoleWithConnection

Write

mgh:BatchAssociateIamRoleWithConnection is a Write access-level action in the mgh service. Grants permission to batch-associate IAM roles with a connection

Resource types

ARNs that mgh:BatchAssociateIamRoleWithConnection 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:BatchAssociateIamRoleWithConnection.

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:BatchAssociateIamRoleWithConnection. Replace "Resource": "*" with a specific ARN to follow least privilege.

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

Related actions in mgh

View all mgh actions →