mediapackagev2:TagResource

Tagging

mediapackagev2:TagResource is a Tagging access-level action in the mediapackagev2 service. Grants permission to add specified tags to the specified resource

Resource types

ARNs that mediapackagev2:TagResource can be scoped to in an IAM policy.

arn:${Partition}:mediapackagev2:${Region}:${Account}:channelGroup/${ChannelGroupName}/channel/${ChannelName}
Channel
arn:${Partition}:mediapackagev2:${Region}:${Account}:channelGroup/${ChannelGroupName}
ChannelGroup
arn:${Partition}:mediapackagev2:${Region}:${Account}:channelGroup/${ChannelGroupName}/channel/${ChannelName}/originEndpoint/${OriginEndpointName}/harvestJob/${HarvestJobName}
HarvestJob
arn:${Partition}:mediapackagev2:${Region}:${Account}:channelGroup/${ChannelGroupName}/channel/${ChannelName}/originEndpoint/${OriginEndpointName}
OriginEndpoint

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by tags associated with the resource

Example IAM policy

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

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

Related actions in mediapackagev2

View all mediapackagev2 actions →