Skip to content

Commit d1f7928

Browse files
author
AWS
committed
Amazon Bedrock Update: Enable cross-Region inference for Amazon Bedrock Guardrails by using the crossRegionConfig parameter when calling the CreateGuardrail or UpdateGuardrail operation.
1 parent e3a16b6 commit d1f7928

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-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": "Enable cross-Region inference for Amazon Bedrock Guardrails by using the crossRegionConfig parameter when calling the CreateGuardrail or UpdateGuardrail operation."
6+
}

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

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,6 +1521,10 @@
15211521
"shape":"GuardrailContextualGroundingPolicyConfig",
15221522
"documentation":"<p>The contextual grounding policy configuration used to create a guardrail.</p>"
15231523
},
1524+
"crossRegionConfig":{
1525+
"shape":"GuardrailCrossRegionConfig",
1526+
"documentation":"<p>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.</p> <p>For more information, see the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html\">Amazon Bedrock User Guide</a>.</p>"
1527+
},
15241528
"blockedInputMessaging":{
15251529
"shape":"GuardrailBlockedMessaging",
15261530
"documentation":"<p>The message to return when the guardrail blocks a prompt.</p>"
@@ -3397,6 +3401,10 @@
33973401
"shape":"GuardrailContextualGroundingPolicy",
33983402
"documentation":"<p>The contextual grounding policy used in the guardrail.</p>"
33993403
},
3404+
"crossRegionDetails":{
3405+
"shape":"GuardrailCrossRegionDetails",
3406+
"documentation":"<p>Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).</p>"
3407+
},
34003408
"createdAt":{
34013409
"shape":"Timestamp",
34023410
"documentation":"<p>The date and time at which the guardrail was created.</p>"
@@ -4367,6 +4375,49 @@
43674375
},
43684376
"documentation":"<p>The policy configuration details for the guardrails contextual grounding policy.</p>"
43694377
},
4378+
"GuardrailCrossRegionConfig":{
4379+
"type":"structure",
4380+
"required":["guardrailProfileIdentifier"],
4381+
"members":{
4382+
"guardrailProfileIdentifier":{
4383+
"shape":"GuardrailCrossRegionGuardrailProfileIdentifier",
4384+
"documentation":"<p>The ID or Amazon Resource Name (ARN) of the guardrail profile that your guardrail is using. Guardrail profile availability depends on your current Amazon Web Services Region. For more information, see the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html\">Amazon Bedrock User Guide</a>.</p>"
4385+
}
4386+
},
4387+
"documentation":"<p>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. Using guardrail profiles helps maintain guardrail performance and reliability when demand increases.</p> <p>For more information, see the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html\">Amazon Bedrock User Guide</a>.</p>"
4388+
},
4389+
"GuardrailCrossRegionDetails":{
4390+
"type":"structure",
4391+
"members":{
4392+
"guardrailProfileId":{
4393+
"shape":"GuardrailCrossRegionGuardrailProfileId",
4394+
"documentation":"<p>The ID of the guardrail profile that your guardrail is using. Profile availability depends on your current Amazon Web Services Region. For more information, see the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html\">Amazon Bedrock User Guide</a>.</p>"
4395+
},
4396+
"guardrailProfileArn":{
4397+
"shape":"GuardrailCrossRegionGuardrailProfileArn",
4398+
"documentation":"<p>The Amazon Resource Name (ARN) of the guardrail profile that you're using with your guardrail.</p>"
4399+
}
4400+
},
4401+
"documentation":"<p>Contains details about the system-defined guardrail profile that you're using with your guardrail for cross-Region inference.</p> <p>For more information, see the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html\">Amazon Bedrock User Guide</a>.</p>"
4402+
},
4403+
"GuardrailCrossRegionGuardrailProfileArn":{
4404+
"type":"string",
4405+
"max":2048,
4406+
"min":20,
4407+
"pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail-profile/[a-z0-9-]+[.]{1}guardrail[.]{1}v[0-9:]+"
4408+
},
4409+
"GuardrailCrossRegionGuardrailProfileId":{
4410+
"type":"string",
4411+
"max":30,
4412+
"min":15,
4413+
"pattern":"[a-z0-9-]+[.]{1}guardrail[.]{1}v[0-9:]+"
4414+
},
4415+
"GuardrailCrossRegionGuardrailProfileIdentifier":{
4416+
"type":"string",
4417+
"max":2048,
4418+
"min":15,
4419+
"pattern":"[a-z0-9-]+[.]{1}guardrail[.]{1}v[0-9:]+|arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:guardrail-profile/[a-z0-9-]+[.]{1}guardrail[.]{1}v[0-9:]+"
4420+
},
43704421
"GuardrailDescription":{
43714422
"type":"string",
43724423
"max":200,
@@ -4851,6 +4902,10 @@
48514902
"updatedAt":{
48524903
"shape":"Timestamp",
48534904
"documentation":"<p>The date and time at which the guardrail was last updated.</p>"
4905+
},
4906+
"crossRegionDetails":{
4907+
"shape":"GuardrailCrossRegionDetails",
4908+
"documentation":"<p>Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).</p>"
48544909
}
48554910
},
48564911
"documentation":"<p>Contains details about a guardrail.</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_ListGuardrails.html#API_ListGuardrails_ResponseSyntax\">ListGuardrails response body</a> </p> </li> </ul>"
@@ -8107,6 +8162,10 @@
81078162
"shape":"GuardrailContextualGroundingPolicyConfig",
81088163
"documentation":"<p>The contextual grounding policy configuration used to update a guardrail.</p>"
81098164
},
8165+
"crossRegionConfig":{
8166+
"shape":"GuardrailCrossRegionConfig",
8167+
"documentation":"<p>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.</p> <p>For more information, see the <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html\">Amazon Bedrock User Guide</a>.</p>"
8168+
},
81108169
"blockedInputMessaging":{
81118170
"shape":"GuardrailBlockedMessaging",
81128171
"documentation":"<p>The message to return when the guardrail blocks a prompt.</p>"

0 commit comments

Comments
 (0)