Skip to content

Add BedrockCreateGuardrailVersionOperator#66372

Merged
vincbeck merged 1 commit intoapache:mainfrom
john-jac:add-bedrock-create-guardrail-version
May 4, 2026
Merged

Add BedrockCreateGuardrailVersionOperator#66372
vincbeck merged 1 commit intoapache:mainfrom
john-jac:add-bedrock-create-guardrail-version

Conversation

@john-jac
Copy link
Copy Markdown
Contributor

@john-jac john-jac commented May 4, 2026

What

Add BedrockCreateGuardrailVersionOperator to create versioned snapshots of Amazon Bedrock guardrails.

Why

Guardrails are created as DRAFT. To use a guardrail in production, you need to publish a numbered version. This operator enables that step in a pipeline, complementing the existing BedrockCreateGuardrailOperator and BedrockDeleteGuardrailOperator.

What was done

  • Operator: BedrockCreateGuardrailVersionOperator with guardrail_identifier and optional description, using prune_dict. Added to existing bedrock.py.
  • Unit tests: Added to existing test_bedrock.py — happy path, with description, template fields
  • System test: Updated example_bedrock_guardrail.py — added version creation between create and delete
  • Docs: Updated bedrock.rst with new section before Reference

@vincbeck vincbeck merged commit 2d712c5 into apache:main May 4, 2026
94 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants