Skip to content

Commit

Permalink
feat(policy-templates): add Textract policies
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschilling committed Jan 10, 2020
1 parent eabe27d commit aa6a877
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,9 @@ Resources:

- CodeCommitReadPolicy:
RepositoryName: name

- TextractPolicy: {}

- TextractDetectAnalyzePolicy: {}

- TextractGetResultPolicy: {}
55 changes: 55 additions & 0 deletions samtranslator/policy_templates_data/policy_templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -1849,6 +1849,61 @@
}
]
}
},
"TextractPolicy": {
"Description": "Gives full access to Textract",
"Parameters": {

},
"Definition": {
"Statement": [
{
"Effect": "Allow",
"Action": [
"textract:*"
],
"Resource": "*"
}
]
}
},
"TextractDetectAnalyzePolicy": {
"Description": "Gives access to detect and analyze documents with Textract",
"Parameters": {

},
"Definition": {
"Statement": [
{
"Effect": "Allow",
"Action": [
"textract:DetectDocumentText",
"textract:StartDocumentTextDetection",
"textract:StartDocumentAnalysis",
"textract:AnalyzeDocument"
],
"Resource": "*"
}
]
}
},
"TextractGetResultPolicy": {
"Description": "Gives access to get detected and analyzed documents from Textract",
"Parameters": {

},
"Definition": {
"Statement": [
{
"Effect": "Allow",
"Action": [
"textract:GetDocumentTextDetection",
"textract:GetDocumentAnalysis"
],
"Resource": "*"
}
]
}
}
}
}

0 comments on commit aa6a877

Please sign in to comment.