Created
October 30, 2025 07:31
-
-
Save WoodProgrammer/b83580a1d54ce6b1e950a4a17030b6ae to your computer and use it in GitHub Desktop.
runtime.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| response = bedrock_runtime.apply_guardrail( | |
| guardrailIdentifier=guardrail_id, | |
| guardrailVersion='DRAFT', | |
| source='INPUT', | |
| content=[ | |
| { | |
| 'text': { | |
| 'text': 'My email is john.doe@example.com and my SSN is 123-45-6789' | |
| } | |
| } | |
| ] | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment