comprehend:ImportModel

Write

comprehend:ImportModel is a Write access-level action in the comprehend service. Grants permission to import a trained Comprehend model

Resource types

ARNs that comprehend:ImportModel can be scoped to in an IAM policy.

arn:${Partition}:comprehend:${Region}:${Account}:document-classifier/${DocumentClassifierName}
document-classifier
arn:${Partition}:comprehend:${Region}:${Account}:entity-recognizer/${EntityRecognizerName}
entity-recognizer

Condition keys

Keys you can use in the Condition block of a policy that grants comprehend:ImportModel.

aws:ResourceTag/${TagKey} String

Filters access by requiring tag value associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowComprehendImportModel",
      "Effect": "Allow",
      "Action": "comprehend:ImportModel",
      "Resource": "*"
    }
  ]
}

Related actions in comprehend

View all comprehend actions →