You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "john-jac (via GitHub)" <gi...@apache.org> on 2026/05/04 18:55:03 UTC
[PR] Add `BedrockCreateGuardrailVersionOperator` [airflow]
john-jac opened a new pull request, #66372:
URL: https://github.com/apache/airflow/pull/66372
## 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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add `BedrockCreateGuardrailVersionOperator` [airflow]
Posted by "john-jac (via GitHub)" <gi...@apache.org>.
john-jac commented on code in PR #66372:
URL: https://github.com/apache/airflow/pull/66372#discussion_r3184214429
##########
providers/amazon/tests/system/amazon/aws/example_bedrock_guardrail.py:
##########
@@ -68,9 +69,17 @@
)
# [END howto_operator_bedrock_delete_guardrail]
+ # [START howto_operator_bedrock_create_guardrail_version]
+ create_guardrail_version = BedrockCreateGuardrailVersionOperator(
Review Comment:
Per the Bedrock API there's no delete_guardrail_version API. Versions are deleted when the guardrail is deleted. So the cleanup is handled by delete_guardrail.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add `BedrockCreateGuardrailVersionOperator` [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck commented on code in PR #66372:
URL: https://github.com/apache/airflow/pull/66372#discussion_r3184082734
##########
providers/amazon/tests/system/amazon/aws/example_bedrock_guardrail.py:
##########
@@ -68,9 +69,17 @@
)
# [END howto_operator_bedrock_delete_guardrail]
+ # [START howto_operator_bedrock_create_guardrail_version]
+ create_guardrail_version = BedrockCreateGuardrailVersionOperator(
Review Comment:
Any resource created by a system should be removed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add `BedrockCreateGuardrailVersionOperator` [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck merged PR #66372:
URL: https://github.com/apache/airflow/pull/66372
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org