Actions, resources, and condition keys for Amazon Textract
Amazon Textract (service prefix: textract) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon Textract
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
AnalyzeDocument |
Read |
|||
|
AnalyzeExpense |
Read |
|||
|
AnalyzeID |
Read |
|||
|
CreateAdapter |
Write |
|||
Tagging, Write |
||||
|
CreateAdapterVersion |
Write |
|||
Tagging, Write |
||||
|
DeleteAdapter |
Write |
|||
|
DeleteAdapterVersion |
Write |
|||
|
DetectDocumentText |
Read |
|||
|
GetAdapter |
Read |
|||
|
GetAdapterVersion |
Read |
|||
|
GetDocumentAnalysis |
Read |
|||
|
GetDocumentTextDetection |
Read |
|||
|
GetExpenseAnalysis |
Read |
|||
|
GetLendingAnalysis |
Read |
|||
|
GetLendingAnalysisSummary |
Read |
|||
|
ListAdapterVersions |
Read |
|||
|
ListAdapters |
Read |
|||
|
ListTagsForResource |
Read |
|||
|
StartDocumentAnalysis |
Write |
|||
iam:PassedToService |
textract.amazonaws.com |
Write |
||
|
StartDocumentTextDetection |
Write |
|||
iam:PassedToService |
textract.amazonaws.com |
Write |
||
|
StartExpenseAnalysis |
Write |
|||
iam:PassedToService |
textract.amazonaws.com |
Write |
||
|
StartLendingAnalysis |
Write |
|||
iam:PassedToService |
textract.amazonaws.com |
Write |
||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateAdapter |
Write |
Actions defined by Amazon Textract
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in AWS. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to detect instances of real-world document entities within an image provided as input |
Read |
|||
Grants permission to detect instances of real-world document entities within an image provided as input |
Read |
|||
Grants permission to detect relevant information from identity documents provided as input |
Read |
|||
Grants permission to create an Amazon Textract adapter |
Write |
|||
Grants permission to create an Amazon Textract adapter version |
Write |
|||
Grants permission to delete an Amazon Textract adapter |
Write |
|||
Grants permission to delete an Amazon Textract adapter version |
Write |
|||
Grants permission to detect text in document images |
Read |
|||
Grants permission to get an Amazon Textract adapter |
Read |
|||
Grants permission to get an Amazon Textract adapter version |
Read |
|||
Grants permission to return information about a document analysis job |
Read |
|||
Grants permission to return information about a document text detection job |
Read |
|||
Grants permission to return information about an expense analysis job |
Read |
|||
Grants permission to retrieve page-level information regarding a lending analysis job |
Read |
|||
Grants permission to retrieve summarized information regarding a lending analysis job |
Read |
|||
Grants permission to list Amazon Textract adapter versions |
Read |
|||
Grants permission to list Amazon Textract adapters |
Read |
|||
Grants permission to return a list of tags associated with a resource |
Read |
|||
Grants permission to start an asynchronous job to detect instances of real-world document entities within an image or pdf provided as input |
Write |
|||
Grants permission to start an asynchronous job to detect text in document images or pdfs |
Write |
|||
Grants permission to start an asynchronous job to detect instances of invoices or receipts within an image or pdf provided as input |
Write |
|||
Grants permission to start an asynchronous job for detection of entities in a lending document, takes a provided image or PDF as input |
Write |
|||
Grants permission to add one or more tags to a resource |
Tagging, Write |
|||
Grants permission to remove one or more tags from a resource |
Tagging, Write |
|||
Grants permission to update Amazon Textract adapter |
Write |
Resource types defined by Amazon Textract
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId} |
||
arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId}/versions/${AdapterVersion} |
Condition keys for Amazon Textract
Amazon Textract defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by tags that are passed in the request |
String |
|
Filters access by tags associated with the resource |
String |
|
Filters access by tag keys that are passed in the request |
ArrayOfString |