forecast:TagResource

Tagging

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

Resource types

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

arn:${Partition}:forecast:${Region}:${Account}:dataset/${ResourceId}
dataset
arn:${Partition}:forecast:${Region}:${Account}:dataset-group/${ResourceId}
datasetGroup
arn:${Partition}:forecast:${Region}:${Account}:dataset-import-job/${ResourceId}
datasetImportJob
arn:${Partition}:forecast:${Region}:${Account}:forecast-endpoint/${ResourceId}
endpoint
arn:${Partition}:forecast:${Region}:${Account}:explainability/${ResourceId}
explainability
arn:${Partition}:forecast:${Region}:${Account}:explainability-export/${ResourceId}
explainabilityExport
arn:${Partition}:forecast:${Region}:${Account}:forecast/${ResourceId}
forecast
arn:${Partition}:forecast:${Region}:${Account}:forecast-export-job/${ResourceId}
forecastExport
arn:${Partition}:forecast:${Region}:${Account}:monitor/${ResourceId}
monitor
arn:${Partition}:forecast:${Region}:${Account}:predictor/${ResourceId}
predictor
arn:${Partition}:forecast:${Region}:${Account}:predictor-backtest-export-job/${ResourceId}
predictorBacktestExportJob
arn:${Partition}:forecast:${Region}:${Account}:what-if-analysis/${ResourceId}
whatIfAnalysis
arn:${Partition}:forecast:${Region}:${Account}:what-if-forecast/${ResourceId}
whatIfForecast
arn:${Partition}:forecast:${Region}:${Account}:what-if-forecast-export/${ResourceId}
whatIfForecastExport

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

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

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

Related actions in forecast

View all forecast actions →