private-networks:TagResource

Tagging

private-networks:TagResource is a Tagging access-level action in the private-networks service. Grants permission to adds tags to the specified resource

Resource types

ARNs that private-networks:TagResource can be scoped to in an IAM policy.

arn:${Partition}:private-networks:${Region}:${Account}:device-identifier/${NetworkName}/${DeviceId}
device-identifier
arn:${Partition}:private-networks:${Region}:${Account}:network/${NetworkName}
network
arn:${Partition}:private-networks:${Region}:${Account}:network-resource/${NetworkName}/${ResourceId}
network-resource
arn:${Partition}:private-networks:${Region}:${Account}:network-site/${NetworkName}/${NetworkSiteName}
network-site
arn:${Partition}:private-networks:${Region}:${Account}:order/${NetworkName}/${OrderId}
order

Condition keys

Keys you can use in the Condition block of a policy that grants private-networks:TagResource.

aws:ResourceTag/${TagKey} String

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

Example IAM policy

A minimal policy that allows private-networks:TagResource. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowPrivatenetworksTagResource",
      "Effect": "Allow",
      "Action": "private-networks:TagResource",
      "Resource": "*"
    }
  ]
}

Related actions in private-networks

View all private-networks actions →