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} required
document-classifier
arn:${Partition}:comprehend:${Region}:${Account}:entity-recognizer/${EntityRecognizerName} required
entity-recognizer

Condition keys

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

aws:RequestTag/${TagKey} String

Filters access by requiring tag values present in a resource creation request

aws:TagKeys ArrayOfString

Filters access by requiring the presence of mandatory tags in the request

comprehend:ModelKmsKey ARN

Filters access by the model KMS key associated with the resource in the request

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 →