CreateGuardrailRequest
¶
Source code in docs_src/capo_bedrock/types/create_guardrail_request.py
automated_reasoning_policy_config
instance-attribute
¶
automated_reasoning_policy_config: NotRequired[GuardrailAutomatedReasoningPolicyConfig]
Optional configuration for integrating Automated Reasoning policies with the new guardrail.
blocked_input_messaging
instance-attribute
¶
blocked_input_messaging: GuardrailBlockedMessaging
The message to return when the guardrail blocks a prompt.
blocked_outputs_messaging
instance-attribute
¶
blocked_outputs_messaging: GuardrailBlockedMessaging
The message to return when the guardrail blocks a model response.
client_request_token
instance-attribute
¶
client_request_token: NotRequired[IdempotencyToken]
A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
content_policy_config
instance-attribute
¶
content_policy_config: NotRequired[GuardrailContentPolicyConfig]
The content filter policies to configure for the guardrail.
contextual_grounding_policy_config
instance-attribute
¶
contextual_grounding_policy_config: NotRequired[
GuardrailContextualGroundingPolicyConfig
]
The contextual grounding policy configuration used to create a guardrail.
cross_region_config
instance-attribute
¶
cross_region_config: NotRequired[GuardrailCrossRegionConfig]
The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.
For more information, see the Amazon Bedrock User Guide.
description
instance-attribute
¶
description: NotRequired[GuardrailDescription]
A description of the guardrail.
kms_key_id
instance-attribute
¶
kms_key_id: NotRequired[KmsKeyId]
The ARN of the KMS key that you use to encrypt the guardrail.
sensitive_information_policy_config
instance-attribute
¶
sensitive_information_policy_config: NotRequired[
GuardrailSensitiveInformationPolicyConfig
]
The sensitive information policy to configure for the guardrail.
tags
instance-attribute
¶
tags: NotRequired[TagList]
The tags that you want to attach to the guardrail.
topic_policy_config
instance-attribute
¶
topic_policy_config: NotRequired[GuardrailTopicPolicyConfig]
The topic policies to configure for the guardrail.
word_policy_config
instance-attribute
¶
word_policy_config: NotRequired[GuardrailWordPolicyConfig]
The word policy you configure for the guardrail.