Skip to content

Commit 0079ea4

Browse files
timoschillingkeetonian
authored andcommitted
feat(policy-templates): add Textract policies (#1377)
1 parent 5be0b07 commit 0079ea4

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

examples/2016-10-31/policy_templates/all_policy_templates.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,9 @@ Resources:
101101

102102
- CodeCommitReadPolicy:
103103
RepositoryName: name
104+
105+
- TextractPolicy: {}
106+
107+
- TextractDetectAnalyzePolicy: {}
108+
109+
- TextractGetResultPolicy: {}

samtranslator/policy_templates_data/policy_templates.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,61 @@
18491849
}
18501850
]
18511851
}
1852+
},
1853+
"TextractPolicy": {
1854+
"Description": "Gives full access to Textract",
1855+
"Parameters": {
1856+
1857+
},
1858+
"Definition": {
1859+
"Statement": [
1860+
{
1861+
"Effect": "Allow",
1862+
"Action": [
1863+
"textract:*"
1864+
],
1865+
"Resource": "*"
1866+
}
1867+
]
1868+
}
1869+
},
1870+
"TextractDetectAnalyzePolicy": {
1871+
"Description": "Gives access to detect and analyze documents with Textract",
1872+
"Parameters": {
1873+
1874+
},
1875+
"Definition": {
1876+
"Statement": [
1877+
{
1878+
"Effect": "Allow",
1879+
"Action": [
1880+
"textract:DetectDocumentText",
1881+
"textract:StartDocumentTextDetection",
1882+
"textract:StartDocumentAnalysis",
1883+
"textract:AnalyzeDocument"
1884+
],
1885+
"Resource": "*"
1886+
}
1887+
]
1888+
}
1889+
},
1890+
"TextractGetResultPolicy": {
1891+
"Description": "Gives access to get detected and analyzed documents from Textract",
1892+
"Parameters": {
1893+
1894+
},
1895+
"Definition": {
1896+
"Statement": [
1897+
{
1898+
"Effect": "Allow",
1899+
"Action": [
1900+
"textract:GetDocumentTextDetection",
1901+
"textract:GetDocumentAnalysis"
1902+
],
1903+
"Resource": "*"
1904+
}
1905+
]
1906+
}
18521907
}
18531908
}
18541909
}

0 commit comments

Comments
 (0)