mediapackagev2:CancelHarvestJob
Write mediapackagev2:CancelHarvestJob is
a Write
access-level action in the
mediapackagev2
service.
Grants permission to cancel a harvest job
Resource types
ARNs that mediapackagev2:CancelHarvestJob can be scoped to in an IAM policy.
arn:${Partition}:mediapackagev2:${Region}:${Account}:channelGroup/${ChannelGroupName}/channel/${ChannelName} required
Channel arn:${Partition}:mediapackagev2:${Region}:${Account}:channelGroup/${ChannelGroupName} required
ChannelGroup arn:${Partition}:mediapackagev2:${Region}:${Account}:channelGroup/${ChannelGroupName}/channel/${ChannelName}/originEndpoint/${OriginEndpointName}/harvestJob/${HarvestJobName} required
HarvestJob arn:${Partition}:mediapackagev2:${Region}:${Account}:channelGroup/${ChannelGroupName}/channel/${ChannelName}/originEndpoint/${OriginEndpointName} required
OriginEndpoint Condition keys
Keys you can use in the Condition block of a policy that
grants mediapackagev2:CancelHarvestJob.
aws:ResourceTag/${TagKey} String
Filters access by tags associated with the resource
Example IAM policy
A minimal policy that allows mediapackagev2:CancelHarvestJob. Replace
"Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowMediapackagev2CancelHarvestJob",
"Effect": "Allow",
"Action": "mediapackagev2:CancelHarvestJob",
"Resource": "*"
}
]
}