Skip to content

Commit 2734bc2

Browse files
author
AWS
committed
Amazon Bedrock Update: Amazon Bedrock Guardrails account-level enforcement APIs now support lists for model inclusion and exclusion from guardrail enforcement.
1 parent 235ef96 commit 2734bc2

2 files changed

Lines changed: 52 additions & 1 deletion

File tree

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": "Amazon Bedrock Guardrails account-level enforcement APIs now support lists for model inclusion and exclusion from guardrail enforcement."
6+
}

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

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@
567567
{"shape":"ValidationException"},
568568
{"shape":"ConflictException"},
569569
{"shape":"InternalServerException"},
570+
{"shape":"ResourceInUseException"},
570571
{"shape":"ThrottlingException"}
571572
],
572573
"documentation":"<p>Deletes a guardrail.</p> <ul> <li> <p>To delete a guardrail, only specify the ARN of the guardrail in the <code>guardrailIdentifier</code> field. If you delete a guardrail, all of its versions will be deleted.</p> </li> <li> <p>To delete a version of a guardrail, specify the ARN of the guardrail in the <code>guardrailIdentifier</code> field and the version in the <code>guardrailVersion</code> field.</p> </li> </ul>",
@@ -1953,6 +1954,10 @@
19531954
"inputTags":{
19541955
"shape":"InputTags",
19551956
"documentation":"<p>Whether to honor or ignore input tags at runtime.</p>"
1957+
},
1958+
"modelEnforcement":{
1959+
"shape":"ModelEnforcement",
1960+
"documentation":"<p>Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models</p>"
19561961
}
19571962
},
19581963
"documentation":"<p>Account-level enforced guardrail input configuration.</p>"
@@ -1999,6 +2004,10 @@
19992004
"owner":{
20002005
"shape":"ConfigurationOwner",
20012006
"documentation":"<p>Configuration owner type.</p>"
2007+
},
2008+
"modelEnforcement":{
2009+
"shape":"ModelEnforcement",
2010+
"documentation":"<p>Model-specific information for the enforced guardrail configuration.</p>"
20022011
}
20032012
},
20042013
"documentation":"<p>Account enforced guardrail output configuration.</p>"
@@ -2007,7 +2016,7 @@
20072016
"type":"list",
20082017
"member":{"shape":"AccountEnforcedGuardrailOutputConfiguration"},
20092018
"max":1,
2010-
"min":1
2019+
"min":0
20112020
},
20122021
"AccountId":{
20132022
"type":"string",
@@ -6606,6 +6615,15 @@
66066615
"max":1,
66076616
"min":0
66086617
},
6618+
"ExcludedModelId":{
6619+
"type":"string",
6620+
"pattern":"([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12}){0,1}"
6621+
},
6622+
"ExcludedModelsList":{
6623+
"type":"list",
6624+
"member":{"shape":"ExcludedModelId"},
6625+
"min":0
6626+
},
66096627
"ExportAutomatedReasoningPolicyVersionRequest":{
66106628
"type":"structure",
66116629
"required":["policyArn"],
@@ -9753,6 +9771,15 @@
97539771
"type":"list",
97549772
"member":{"shape":"ImportedModelSummary"}
97559773
},
9774+
"IncludedModelId":{
9775+
"type":"string",
9776+
"pattern":"(ALL|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2}(/[a-z0-9]{12}){0,1})"
9777+
},
9778+
"IncludedModelsList":{
9779+
"type":"list",
9780+
"member":{"shape":"IncludedModelId"},
9781+
"min":1
9782+
},
97569783
"InferenceProfileArn":{
97579784
"type":"string",
97589785
"max":2048,
@@ -11598,6 +11625,24 @@
1159811625
"min":1,
1159911626
"pattern":"([0-9a-zA-Z][_-]?){1,63}"
1160011627
},
11628+
"ModelEnforcement":{
11629+
"type":"structure",
11630+
"required":[
11631+
"includedModels",
11632+
"excludedModels"
11633+
],
11634+
"members":{
11635+
"includedModels":{
11636+
"shape":"IncludedModelsList",
11637+
"documentation":"<p>Models to enforce the guardrail on.</p>"
11638+
},
11639+
"excludedModels":{
11640+
"shape":"ExcludedModelsList",
11641+
"documentation":"<p>Models to exclude from enforcement of the guardrail.</p>"
11642+
}
11643+
},
11644+
"documentation":"<p>Model-specific information for the enforced guardrail configuration.</p>"
11645+
},
1160111646
"ModelId":{
1160211647
"type":"string",
1160311648
"max":2048,

0 commit comments

Comments
 (0)