Skip to content

Commit 83ce948

Browse files
author
AWS
committed
Amazon Bedrock Update: Add support for tiers in Content Filters and Denied Topics for Amazon Bedrock Guardrails.
1 parent c5c7ffd commit 83ce948

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Bedrock",
4+
"contributor": "",
5+
"description": "Add support for tiers in Content Filters and Denied Topics for Amazon Bedrock Guardrails."
6+
}

services/bedrock/src/main/resources/codegen-resources/service-2.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4319,12 +4319,46 @@
43194319
"max":6,
43204320
"min":1
43214321
},
4322+
"GuardrailContentFiltersTier":{
4323+
"type":"structure",
4324+
"required":["tierName"],
4325+
"members":{
4326+
"tierName":{
4327+
"shape":"GuardrailContentFiltersTierName",
4328+
"documentation":"<p>The tier that your guardrail uses for content filters. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established guardrails functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier and has more comprehensive language support. This tier requires that your guardrail use <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html\">cross-Region inference</a>.</p> </li> </ul>"
4329+
}
4330+
},
4331+
"documentation":"<p>The tier that your guardrail uses for content filters.</p>"
4332+
},
4333+
"GuardrailContentFiltersTierConfig":{
4334+
"type":"structure",
4335+
"required":["tierName"],
4336+
"members":{
4337+
"tierName":{
4338+
"shape":"GuardrailContentFiltersTierName",
4339+
"documentation":"<p>The tier that your guardrail uses for content filters. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established guardrails functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier and has more comprehensive language support. This tier requires that your guardrail use <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html\">cross-Region inference</a>.</p> </li> </ul>"
4340+
}
4341+
},
4342+
"documentation":"<p>The tier that your guardrail uses for content filters. Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.</p>"
4343+
},
4344+
"GuardrailContentFiltersTierName":{
4345+
"type":"string",
4346+
"enum":[
4347+
"CLASSIC",
4348+
"STANDARD"
4349+
],
4350+
"sensitive":true
4351+
},
43224352
"GuardrailContentPolicy":{
43234353
"type":"structure",
43244354
"members":{
43254355
"filters":{
43264356
"shape":"GuardrailContentFilters",
43274357
"documentation":"<p>Contains the type of the content filter and how strongly it should apply to prompts and model responses.</p>"
4358+
},
4359+
"tier":{
4360+
"shape":"GuardrailContentFiltersTier",
4361+
"documentation":"<p>The tier that your guardrail uses for content filters.</p>"
43284362
}
43294363
},
43304364
"documentation":"<p>Contains details about how to handle harmful content.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetGuardrail.html#API_GetGuardrail_ResponseSyntax\">GetGuardrail response body</a> </p> </li> </ul>"
@@ -4336,6 +4370,10 @@
43364370
"filtersConfig":{
43374371
"shape":"GuardrailContentFiltersConfig",
43384372
"documentation":"<p>Contains the type of the content filter and how strongly it should apply to prompts and model responses.</p>"
4373+
},
4374+
"tierConfig":{
4375+
"shape":"GuardrailContentFiltersTierConfig",
4376+
"documentation":"<p>The tier that your guardrail uses for content filters.</p>"
43394377
}
43404378
},
43414379
"documentation":"<p>Contains details about how to handle harmful content.</p>"
@@ -5109,6 +5147,10 @@
51095147
"topics":{
51105148
"shape":"GuardrailTopics",
51115149
"documentation":"<p>A list of policies related to topics that the guardrail should deny.</p>"
5150+
},
5151+
"tier":{
5152+
"shape":"GuardrailTopicsTier",
5153+
"documentation":"<p>The tier that your guardrail uses for denied topic filters.</p>"
51125154
}
51135155
},
51145156
"documentation":"<p>Contains details about topics that the guardrail should identify and deny.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GetGuardrail.html#API_GetGuardrail_ResponseSyntax\">GetGuardrail response body</a> </p> </li> </ul>"
@@ -5120,6 +5162,10 @@
51205162
"topicsConfig":{
51215163
"shape":"GuardrailTopicsConfig",
51225164
"documentation":"<p>A list of policies related to topics that the guardrail should deny.</p>"
5165+
},
5166+
"tierConfig":{
5167+
"shape":"GuardrailTopicsTierConfig",
5168+
"documentation":"<p>The tier that your guardrail uses for denied topic filters.</p>"
51235169
}
51245170
},
51255171
"documentation":"<p>Contains details about topics that the guardrail should identify and deny.</p>"
@@ -5140,6 +5186,36 @@
51405186
"max":30,
51415187
"min":1
51425188
},
5189+
"GuardrailTopicsTier":{
5190+
"type":"structure",
5191+
"required":["tierName"],
5192+
"members":{
5193+
"tierName":{
5194+
"shape":"GuardrailTopicsTierName",
5195+
"documentation":"<p>The tier that your guardrail uses for denied topic filters. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established guardrails functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier and has more comprehensive language support. This tier requires that your guardrail use <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html\">cross-Region inference</a>.</p> </li> </ul>"
5196+
}
5197+
},
5198+
"documentation":"<p>The tier that your guardrail uses for denied topic filters.</p>"
5199+
},
5200+
"GuardrailTopicsTierConfig":{
5201+
"type":"structure",
5202+
"required":["tierName"],
5203+
"members":{
5204+
"tierName":{
5205+
"shape":"GuardrailTopicsTierName",
5206+
"documentation":"<p>The tier that your guardrail uses for denied topic filters. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established guardrails functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier and has more comprehensive language support. This tier requires that your guardrail use <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html\">cross-Region inference</a>.</p> </li> </ul>"
5207+
}
5208+
},
5209+
"documentation":"<p>The tier that your guardrail uses for denied topic filters. Consider using a tier that balances performance, accuracy, and compatibility with your existing generative AI workflows.</p>"
5210+
},
5211+
"GuardrailTopicsTierName":{
5212+
"type":"string",
5213+
"enum":[
5214+
"CLASSIC",
5215+
"STANDARD"
5216+
],
5217+
"sensitive":true
5218+
},
51435219
"GuardrailVersion":{
51445220
"type":"string",
51455221
"pattern":"(([1-9][0-9]{0,7})|(DRAFT))"

0 commit comments

Comments
 (0)