Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(policy-templates): add Textract policies #1377

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

timoschilling
Copy link
Contributor

Issue #, if available:

Description of changes:

Adding a policy TextractPolicy that grants full access to Textract. It grants the following permissions:

  • textract:*

Adding a policy TextractDetectAnalyzePolicy that grants detect and analyze access to Textract. It grants the following permissions:

  • textract:DetectDocumentText
  • textract:StartDocumentTextDetection
  • textract:StartDocumentAnalysis
  • textract:AnalyzeDocument

Adding a policy TextractDetectAnalyzePolicy that grants get result access to Textract. It grants the following permissions:

  • textract:GetDocumentTextDetection
  • textract:GetDocumentAnalysis

Description of how you validated changes:

I ran make pr.

Checklist:

  • Write/update tests
  • make pr passes
  • Update documentation
  • Verify transformed template deploys and application functions as expected
  • Add/update example to examples/2016-10-31

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-io
Copy link

Codecov Report

Merging #1377 into develop will decrease coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #1377      +/-   ##
==========================================
- Coverage    94.46%   94.4%   -0.07%     
==========================================
  Files           78      78              
  Lines         4555    4501      -54     
  Branches       912     912              
==========================================
- Hits          4303    4249      -54     
  Misses         118     118              
  Partials       134     134
Impacted Files Coverage Δ
samtranslator/plugins/exceptions.py 83.33% <0%> (-2.39%) ⬇️
samtranslator/model/iam.py 92.85% <0%> (-1.43%) ⬇️
samtranslator/translator/arn_generator.py 86.95% <0%> (-0.55%) ⬇️
samtranslator/model/sqs.py 93.33% <0%> (-0.42%) ⬇️
samtranslator/validator/validator.py 95.23% <0%> (-0.42%) ⬇️
samtranslator/open_api/open_api.py 93.6% <0%> (-0.29%) ⬇️
samtranslator/swagger/swagger.py 92.77% <0%> (-0.13%) ⬇️
samtranslator/model/__init__.py 98.11% <0%> (-0.04%) ⬇️
samtranslator/plugins/globals/globals.py 99.02% <0%> (-0.03%) ⬇️
samtranslator/model/sam_resources.py 93.97% <0%> (-0.02%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eabe27d...aa6a877. Read the comment docs.

Copy link
Contributor

@praneetap praneetap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@praneetap praneetap assigned keetonian and unassigned praneetap Jan 20, 2020
Copy link
Contributor

@keetonian keetonian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keetonian keetonian merged commit 0079ea4 into aws:develop Jan 23, 2020
@timoschilling timoschilling deleted the add-textract-policies branch January 23, 2020 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants