updateGuardrail
Updates a guardrail with the values you specify.
Specify a
nameand optionaldescription.Specify messages for when the guardrail successfully blocks a prompt or a model response in the
blockedInputMessagingandblockedOutputsMessagingfields.Specify topics for the guardrail to deny in the
topicPolicyConfigobject. Each GuardrailTopicConfig object in thetopicsConfiglist pertains to one topic.Give a
nameanddescriptionso that the guardrail can properly identify the topic.Specify
DENYin thetypefield.(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the
exampleslist.Specify filter strengths for the harmful categories defined in Amazon Bedrock in the
contentPolicyConfigobject. Each GuardrailContentFilterConfig object in thefiltersConfiglist pertains to a harmful category. For more information, see Content filters. For more information about the fields in a content filter, see GuardrailContentFilterConfig.Specify the category in the
typefield.Specify the strength of the filter for prompts in the
inputStrengthfield and for model responses in thestrengthfield of the GuardrailContentFilterConfig.(Optional) For security, include the ARN of a KMS key in the
kmsKeyIdfield.