aws-sdk-bedrock 1.45.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrock/client.rb +36 -1
- data/lib/aws-sdk-bedrock/client_api.rb +16 -0
- data/lib/aws-sdk-bedrock/types.rb +108 -1
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +7 -0
- data/sig/types.rbs +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c39d7fc319469d631d2d26d52697911e2eabc8628b5d40906638293bf761859
|
4
|
+
data.tar.gz: 104a36f609563c44980d3059d6cd17f44408aba656ef7edbdd9dd74e37188499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f99e2292655caf7c6a446dc26a4c90f3e6bd73a1d09c68e1ca92fab3ca85a9a070037571e61f2f588b5fd166c04b6f4b6c62249c6731ec4b30d2a8fa24042b0f
|
7
|
+
data.tar.gz: 5c51897af48537e16b627d25c5062f99e2a72b4eb6eacfd3c83578f818c2e8599a979f0576d3b42f3a058c7a64381eb7c31b5a541ab6c8771a5bdb7f3d3047e9
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.46.0 (2025-05-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Enable cross-Region inference for Amazon Bedrock Guardrails by using the crossRegionConfig parameter when calling the CreateGuardrail or UpdateGuardrail operation.
|
8
|
+
|
4
9
|
1.45.0 (2025-05-12)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.46.0
|
@@ -1015,6 +1015,18 @@ module Aws::Bedrock
|
|
1015
1015
|
# The contextual grounding policy configuration used to create a
|
1016
1016
|
# guardrail.
|
1017
1017
|
#
|
1018
|
+
# @option params [Types::GuardrailCrossRegionConfig] :cross_region_config
|
1019
|
+
# The system-defined guardrail profile that you're using with your
|
1020
|
+
# guardrail. Guardrail profiles define the destination Amazon Web
|
1021
|
+
# Services Regions where guardrail inference requests can be
|
1022
|
+
# automatically routed.
|
1023
|
+
#
|
1024
|
+
# For more information, see the [Amazon Bedrock User Guide][1].
|
1025
|
+
#
|
1026
|
+
#
|
1027
|
+
#
|
1028
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html
|
1029
|
+
#
|
1018
1030
|
# @option params [required, String] :blocked_input_messaging
|
1019
1031
|
# The message to return when the guardrail blocks a prompt.
|
1020
1032
|
#
|
@@ -1136,6 +1148,9 @@ module Aws::Bedrock
|
|
1136
1148
|
# },
|
1137
1149
|
# ],
|
1138
1150
|
# },
|
1151
|
+
# cross_region_config: {
|
1152
|
+
# guardrail_profile_identifier: "GuardrailCrossRegionGuardrailProfileIdentifier", # required
|
1153
|
+
# },
|
1139
1154
|
# blocked_input_messaging: "GuardrailBlockedMessaging", # required
|
1140
1155
|
# blocked_outputs_messaging: "GuardrailBlockedMessaging", # required
|
1141
1156
|
# kms_key_id: "KmsKeyId",
|
@@ -2595,6 +2610,7 @@ module Aws::Bedrock
|
|
2595
2610
|
# * {Types::GetGuardrailResponse#word_policy #word_policy} => Types::GuardrailWordPolicy
|
2596
2611
|
# * {Types::GetGuardrailResponse#sensitive_information_policy #sensitive_information_policy} => Types::GuardrailSensitiveInformationPolicy
|
2597
2612
|
# * {Types::GetGuardrailResponse#contextual_grounding_policy #contextual_grounding_policy} => Types::GuardrailContextualGroundingPolicy
|
2613
|
+
# * {Types::GetGuardrailResponse#cross_region_details #cross_region_details} => Types::GuardrailCrossRegionDetails
|
2598
2614
|
# * {Types::GetGuardrailResponse#created_at #created_at} => Time
|
2599
2615
|
# * {Types::GetGuardrailResponse#updated_at #updated_at} => Time
|
2600
2616
|
# * {Types::GetGuardrailResponse#status_reasons #status_reasons} => Array<String>
|
@@ -2673,6 +2689,8 @@ module Aws::Bedrock
|
|
2673
2689
|
# resp.contextual_grounding_policy.filters[0].threshold #=> Float
|
2674
2690
|
# resp.contextual_grounding_policy.filters[0].action #=> String, one of "BLOCK", "NONE"
|
2675
2691
|
# resp.contextual_grounding_policy.filters[0].enabled #=> Boolean
|
2692
|
+
# resp.cross_region_details.guardrail_profile_id #=> String
|
2693
|
+
# resp.cross_region_details.guardrail_profile_arn #=> String
|
2676
2694
|
# resp.created_at #=> Time
|
2677
2695
|
# resp.updated_at #=> Time
|
2678
2696
|
# resp.status_reasons #=> Array
|
@@ -3573,6 +3591,8 @@ module Aws::Bedrock
|
|
3573
3591
|
# resp.guardrails[0].version #=> String
|
3574
3592
|
# resp.guardrails[0].created_at #=> Time
|
3575
3593
|
# resp.guardrails[0].updated_at #=> Time
|
3594
|
+
# resp.guardrails[0].cross_region_details.guardrail_profile_id #=> String
|
3595
|
+
# resp.guardrails[0].cross_region_details.guardrail_profile_arn #=> String
|
3576
3596
|
# resp.next_token #=> String
|
3577
3597
|
#
|
3578
3598
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListGuardrails AWS API Documentation
|
@@ -4687,6 +4707,18 @@ module Aws::Bedrock
|
|
4687
4707
|
# The contextual grounding policy configuration used to update a
|
4688
4708
|
# guardrail.
|
4689
4709
|
#
|
4710
|
+
# @option params [Types::GuardrailCrossRegionConfig] :cross_region_config
|
4711
|
+
# The system-defined guardrail profile that you're using with your
|
4712
|
+
# guardrail. Guardrail profiles define the destination Amazon Web
|
4713
|
+
# Services Regions where guardrail inference requests can be
|
4714
|
+
# automatically routed.
|
4715
|
+
#
|
4716
|
+
# For more information, see the [Amazon Bedrock User Guide][1].
|
4717
|
+
#
|
4718
|
+
#
|
4719
|
+
#
|
4720
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html
|
4721
|
+
#
|
4690
4722
|
# @option params [required, String] :blocked_input_messaging
|
4691
4723
|
# The message to return when the guardrail blocks a prompt.
|
4692
4724
|
#
|
@@ -4792,6 +4824,9 @@ module Aws::Bedrock
|
|
4792
4824
|
# },
|
4793
4825
|
# ],
|
4794
4826
|
# },
|
4827
|
+
# cross_region_config: {
|
4828
|
+
# guardrail_profile_identifier: "GuardrailCrossRegionGuardrailProfileIdentifier", # required
|
4829
|
+
# },
|
4795
4830
|
# blocked_input_messaging: "GuardrailBlockedMessaging", # required
|
4796
4831
|
# blocked_outputs_messaging: "GuardrailBlockedMessaging", # required
|
4797
4832
|
# kms_key_id: "KmsKeyId",
|
@@ -4950,7 +4985,7 @@ module Aws::Bedrock
|
|
4950
4985
|
tracer: tracer
|
4951
4986
|
)
|
4952
4987
|
context[:gem_name] = 'aws-sdk-bedrock'
|
4953
|
-
context[:gem_version] = '1.
|
4988
|
+
context[:gem_version] = '1.46.0'
|
4954
4989
|
Seahorse::Client::Request.new(handlers, context)
|
4955
4990
|
end
|
4956
4991
|
|
@@ -217,6 +217,11 @@ module Aws::Bedrock
|
|
217
217
|
GuardrailContextualGroundingFiltersConfig = Shapes::ListShape.new(name: 'GuardrailContextualGroundingFiltersConfig')
|
218
218
|
GuardrailContextualGroundingPolicy = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingPolicy')
|
219
219
|
GuardrailContextualGroundingPolicyConfig = Shapes::StructureShape.new(name: 'GuardrailContextualGroundingPolicyConfig')
|
220
|
+
GuardrailCrossRegionConfig = Shapes::StructureShape.new(name: 'GuardrailCrossRegionConfig')
|
221
|
+
GuardrailCrossRegionDetails = Shapes::StructureShape.new(name: 'GuardrailCrossRegionDetails')
|
222
|
+
GuardrailCrossRegionGuardrailProfileArn = Shapes::StringShape.new(name: 'GuardrailCrossRegionGuardrailProfileArn')
|
223
|
+
GuardrailCrossRegionGuardrailProfileId = Shapes::StringShape.new(name: 'GuardrailCrossRegionGuardrailProfileId')
|
224
|
+
GuardrailCrossRegionGuardrailProfileIdentifier = Shapes::StringShape.new(name: 'GuardrailCrossRegionGuardrailProfileIdentifier')
|
220
225
|
GuardrailDescription = Shapes::StringShape.new(name: 'GuardrailDescription')
|
221
226
|
GuardrailDraftVersion = Shapes::StringShape.new(name: 'GuardrailDraftVersion')
|
222
227
|
GuardrailFailureRecommendation = Shapes::StringShape.new(name: 'GuardrailFailureRecommendation')
|
@@ -604,6 +609,7 @@ module Aws::Bedrock
|
|
604
609
|
CreateGuardrailRequest.add_member(:word_policy_config, Shapes::ShapeRef.new(shape: GuardrailWordPolicyConfig, location_name: "wordPolicyConfig"))
|
605
610
|
CreateGuardrailRequest.add_member(:sensitive_information_policy_config, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyConfig, location_name: "sensitiveInformationPolicyConfig"))
|
606
611
|
CreateGuardrailRequest.add_member(:contextual_grounding_policy_config, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyConfig, location_name: "contextualGroundingPolicyConfig"))
|
612
|
+
CreateGuardrailRequest.add_member(:cross_region_config, Shapes::ShapeRef.new(shape: GuardrailCrossRegionConfig, location_name: "crossRegionConfig"))
|
607
613
|
CreateGuardrailRequest.add_member(:blocked_input_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedInputMessaging"))
|
608
614
|
CreateGuardrailRequest.add_member(:blocked_outputs_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedOutputsMessaging"))
|
609
615
|
CreateGuardrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
|
@@ -1059,6 +1065,7 @@ module Aws::Bedrock
|
|
1059
1065
|
GetGuardrailResponse.add_member(:word_policy, Shapes::ShapeRef.new(shape: GuardrailWordPolicy, location_name: "wordPolicy"))
|
1060
1066
|
GetGuardrailResponse.add_member(:sensitive_information_policy, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicy, location_name: "sensitiveInformationPolicy"))
|
1061
1067
|
GetGuardrailResponse.add_member(:contextual_grounding_policy, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicy, location_name: "contextualGroundingPolicy"))
|
1068
|
+
GetGuardrailResponse.add_member(:cross_region_details, Shapes::ShapeRef.new(shape: GuardrailCrossRegionDetails, location_name: "crossRegionDetails"))
|
1062
1069
|
GetGuardrailResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
1063
1070
|
GetGuardrailResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
|
1064
1071
|
GetGuardrailResponse.add_member(:status_reasons, Shapes::ShapeRef.new(shape: GuardrailStatusReasons, location_name: "statusReasons"))
|
@@ -1281,6 +1288,13 @@ module Aws::Bedrock
|
|
1281
1288
|
GuardrailContextualGroundingPolicyConfig.add_member(:filters_config, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingFiltersConfig, required: true, location_name: "filtersConfig"))
|
1282
1289
|
GuardrailContextualGroundingPolicyConfig.struct_class = Types::GuardrailContextualGroundingPolicyConfig
|
1283
1290
|
|
1291
|
+
GuardrailCrossRegionConfig.add_member(:guardrail_profile_identifier, Shapes::ShapeRef.new(shape: GuardrailCrossRegionGuardrailProfileIdentifier, required: true, location_name: "guardrailProfileIdentifier"))
|
1292
|
+
GuardrailCrossRegionConfig.struct_class = Types::GuardrailCrossRegionConfig
|
1293
|
+
|
1294
|
+
GuardrailCrossRegionDetails.add_member(:guardrail_profile_id, Shapes::ShapeRef.new(shape: GuardrailCrossRegionGuardrailProfileId, location_name: "guardrailProfileId"))
|
1295
|
+
GuardrailCrossRegionDetails.add_member(:guardrail_profile_arn, Shapes::ShapeRef.new(shape: GuardrailCrossRegionGuardrailProfileArn, location_name: "guardrailProfileArn"))
|
1296
|
+
GuardrailCrossRegionDetails.struct_class = Types::GuardrailCrossRegionDetails
|
1297
|
+
|
1284
1298
|
GuardrailFailureRecommendations.member = Shapes::ShapeRef.new(shape: GuardrailFailureRecommendation)
|
1285
1299
|
|
1286
1300
|
GuardrailManagedWordLists.member = Shapes::ShapeRef.new(shape: GuardrailManagedWords)
|
@@ -1367,6 +1381,7 @@ module Aws::Bedrock
|
|
1367
1381
|
GuardrailSummary.add_member(:version, Shapes::ShapeRef.new(shape: GuardrailVersion, required: true, location_name: "version"))
|
1368
1382
|
GuardrailSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "createdAt"))
|
1369
1383
|
GuardrailSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "updatedAt"))
|
1384
|
+
GuardrailSummary.add_member(:cross_region_details, Shapes::ShapeRef.new(shape: GuardrailCrossRegionDetails, location_name: "crossRegionDetails"))
|
1370
1385
|
GuardrailSummary.struct_class = Types::GuardrailSummary
|
1371
1386
|
|
1372
1387
|
GuardrailTopic.add_member(:name, Shapes::ShapeRef.new(shape: GuardrailTopicName, required: true, location_name: "name"))
|
@@ -2071,6 +2086,7 @@ module Aws::Bedrock
|
|
2071
2086
|
UpdateGuardrailRequest.add_member(:word_policy_config, Shapes::ShapeRef.new(shape: GuardrailWordPolicyConfig, location_name: "wordPolicyConfig"))
|
2072
2087
|
UpdateGuardrailRequest.add_member(:sensitive_information_policy_config, Shapes::ShapeRef.new(shape: GuardrailSensitiveInformationPolicyConfig, location_name: "sensitiveInformationPolicyConfig"))
|
2073
2088
|
UpdateGuardrailRequest.add_member(:contextual_grounding_policy_config, Shapes::ShapeRef.new(shape: GuardrailContextualGroundingPolicyConfig, location_name: "contextualGroundingPolicyConfig"))
|
2089
|
+
UpdateGuardrailRequest.add_member(:cross_region_config, Shapes::ShapeRef.new(shape: GuardrailCrossRegionConfig, location_name: "crossRegionConfig"))
|
2074
2090
|
UpdateGuardrailRequest.add_member(:blocked_input_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedInputMessaging"))
|
2075
2091
|
UpdateGuardrailRequest.add_member(:blocked_outputs_messaging, Shapes::ShapeRef.new(shape: GuardrailBlockedMessaging, required: true, location_name: "blockedOutputsMessaging"))
|
2076
2092
|
UpdateGuardrailRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
|
@@ -394,6 +394,19 @@ module Aws::Bedrock
|
|
394
394
|
# guardrail.
|
395
395
|
# @return [Types::GuardrailContextualGroundingPolicyConfig]
|
396
396
|
#
|
397
|
+
# @!attribute [rw] cross_region_config
|
398
|
+
# The system-defined guardrail profile that you're using with your
|
399
|
+
# guardrail. Guardrail profiles define the destination Amazon Web
|
400
|
+
# Services Regions where guardrail inference requests can be
|
401
|
+
# automatically routed.
|
402
|
+
#
|
403
|
+
# For more information, see the [Amazon Bedrock User Guide][1].
|
404
|
+
#
|
405
|
+
#
|
406
|
+
#
|
407
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html
|
408
|
+
# @return [Types::GuardrailCrossRegionConfig]
|
409
|
+
#
|
397
410
|
# @!attribute [rw] blocked_input_messaging
|
398
411
|
# The message to return when the guardrail blocks a prompt.
|
399
412
|
# @return [String]
|
@@ -435,6 +448,7 @@ module Aws::Bedrock
|
|
435
448
|
:word_policy_config,
|
436
449
|
:sensitive_information_policy_config,
|
437
450
|
:contextual_grounding_policy_config,
|
451
|
+
:cross_region_config,
|
438
452
|
:blocked_input_messaging,
|
439
453
|
:blocked_outputs_messaging,
|
440
454
|
:kms_key_id,
|
@@ -2654,6 +2668,12 @@ module Aws::Bedrock
|
|
2654
2668
|
# The contextual grounding policy used in the guardrail.
|
2655
2669
|
# @return [Types::GuardrailContextualGroundingPolicy]
|
2656
2670
|
#
|
2671
|
+
# @!attribute [rw] cross_region_details
|
2672
|
+
# Details about the system-defined guardrail profile that you're
|
2673
|
+
# using with your guardrail, including the guardrail profile ID and
|
2674
|
+
# Amazon Resource Name (ARN).
|
2675
|
+
# @return [Types::GuardrailCrossRegionDetails]
|
2676
|
+
#
|
2657
2677
|
# @!attribute [rw] created_at
|
2658
2678
|
# The date and time at which the guardrail was created.
|
2659
2679
|
# @return [Time]
|
@@ -2699,6 +2719,7 @@ module Aws::Bedrock
|
|
2699
2719
|
:word_policy,
|
2700
2720
|
:sensitive_information_policy,
|
2701
2721
|
:contextual_grounding_policy,
|
2722
|
+
:cross_region_details,
|
2702
2723
|
:created_at,
|
2703
2724
|
:updated_at,
|
2704
2725
|
:status_reasons,
|
@@ -3939,6 +3960,71 @@ module Aws::Bedrock
|
|
3939
3960
|
include Aws::Structure
|
3940
3961
|
end
|
3941
3962
|
|
3963
|
+
# The system-defined guardrail profile that you're using with your
|
3964
|
+
# guardrail. Guardrail profiles define the destination Amazon Web
|
3965
|
+
# Services Regions where guardrail inference requests can be
|
3966
|
+
# automatically routed. Using guardrail profiles helps maintain
|
3967
|
+
# guardrail performance and reliability when demand increases.
|
3968
|
+
#
|
3969
|
+
# For more information, see the [Amazon Bedrock User Guide][1].
|
3970
|
+
#
|
3971
|
+
#
|
3972
|
+
#
|
3973
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html
|
3974
|
+
#
|
3975
|
+
# @!attribute [rw] guardrail_profile_identifier
|
3976
|
+
# The ID or Amazon Resource Name (ARN) of the guardrail profile that
|
3977
|
+
# your guardrail is using. Guardrail profile availability depends on
|
3978
|
+
# your current Amazon Web Services Region. For more information, see
|
3979
|
+
# the [Amazon Bedrock User Guide][1].
|
3980
|
+
#
|
3981
|
+
#
|
3982
|
+
#
|
3983
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html
|
3984
|
+
# @return [String]
|
3985
|
+
#
|
3986
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GuardrailCrossRegionConfig AWS API Documentation
|
3987
|
+
#
|
3988
|
+
class GuardrailCrossRegionConfig < Struct.new(
|
3989
|
+
:guardrail_profile_identifier)
|
3990
|
+
SENSITIVE = []
|
3991
|
+
include Aws::Structure
|
3992
|
+
end
|
3993
|
+
|
3994
|
+
# Contains details about the system-defined guardrail profile that
|
3995
|
+
# you're using with your guardrail for cross-Region inference.
|
3996
|
+
#
|
3997
|
+
# For more information, see the [Amazon Bedrock User Guide][1].
|
3998
|
+
#
|
3999
|
+
#
|
4000
|
+
#
|
4001
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html
|
4002
|
+
#
|
4003
|
+
# @!attribute [rw] guardrail_profile_id
|
4004
|
+
# The ID of the guardrail profile that your guardrail is using.
|
4005
|
+
# Profile availability depends on your current Amazon Web Services
|
4006
|
+
# Region. For more information, see the [Amazon Bedrock User
|
4007
|
+
# Guide][1].
|
4008
|
+
#
|
4009
|
+
#
|
4010
|
+
#
|
4011
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html
|
4012
|
+
# @return [String]
|
4013
|
+
#
|
4014
|
+
# @!attribute [rw] guardrail_profile_arn
|
4015
|
+
# The Amazon Resource Name (ARN) of the guardrail profile that you're
|
4016
|
+
# using with your guardrail.
|
4017
|
+
# @return [String]
|
4018
|
+
#
|
4019
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GuardrailCrossRegionDetails AWS API Documentation
|
4020
|
+
#
|
4021
|
+
class GuardrailCrossRegionDetails < Struct.new(
|
4022
|
+
:guardrail_profile_id,
|
4023
|
+
:guardrail_profile_arn)
|
4024
|
+
SENSITIVE = []
|
4025
|
+
include Aws::Structure
|
4026
|
+
end
|
4027
|
+
|
3942
4028
|
# The managed word list that was configured for the guardrail. (This is
|
3943
4029
|
# a list of words that are pre-defined and managed by guardrails only.)
|
3944
4030
|
#
|
@@ -4598,6 +4684,12 @@ module Aws::Bedrock
|
|
4598
4684
|
# The date and time at which the guardrail was last updated.
|
4599
4685
|
# @return [Time]
|
4600
4686
|
#
|
4687
|
+
# @!attribute [rw] cross_region_details
|
4688
|
+
# Details about the system-defined guardrail profile that you're
|
4689
|
+
# using with your guardrail, including the guardrail profile ID and
|
4690
|
+
# Amazon Resource Name (ARN).
|
4691
|
+
# @return [Types::GuardrailCrossRegionDetails]
|
4692
|
+
#
|
4601
4693
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GuardrailSummary AWS API Documentation
|
4602
4694
|
#
|
4603
4695
|
class GuardrailSummary < Struct.new(
|
@@ -4608,7 +4700,8 @@ module Aws::Bedrock
|
|
4608
4700
|
:description,
|
4609
4701
|
:version,
|
4610
4702
|
:created_at,
|
4611
|
-
:updated_at
|
4703
|
+
:updated_at,
|
4704
|
+
:cross_region_details)
|
4612
4705
|
SENSITIVE = [:name, :description]
|
4613
4706
|
include Aws::Structure
|
4614
4707
|
end
|
@@ -8066,6 +8159,19 @@ module Aws::Bedrock
|
|
8066
8159
|
# guardrail.
|
8067
8160
|
# @return [Types::GuardrailContextualGroundingPolicyConfig]
|
8068
8161
|
#
|
8162
|
+
# @!attribute [rw] cross_region_config
|
8163
|
+
# The system-defined guardrail profile that you're using with your
|
8164
|
+
# guardrail. Guardrail profiles define the destination Amazon Web
|
8165
|
+
# Services Regions where guardrail inference requests can be
|
8166
|
+
# automatically routed.
|
8167
|
+
#
|
8168
|
+
# For more information, see the [Amazon Bedrock User Guide][1].
|
8169
|
+
#
|
8170
|
+
#
|
8171
|
+
#
|
8172
|
+
# [1]: https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html
|
8173
|
+
# @return [Types::GuardrailCrossRegionConfig]
|
8174
|
+
#
|
8069
8175
|
# @!attribute [rw] blocked_input_messaging
|
8070
8176
|
# The message to return when the guardrail blocks a prompt.
|
8071
8177
|
# @return [String]
|
@@ -8089,6 +8195,7 @@ module Aws::Bedrock
|
|
8089
8195
|
:word_policy_config,
|
8090
8196
|
:sensitive_information_policy_config,
|
8091
8197
|
:contextual_grounding_policy_config,
|
8198
|
+
:cross_region_config,
|
8092
8199
|
:blocked_input_messaging,
|
8093
8200
|
:blocked_outputs_messaging,
|
8094
8201
|
:kms_key_id)
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -517,6 +517,9 @@ module Aws
|
|
517
517
|
},
|
518
518
|
]
|
519
519
|
},
|
520
|
+
?cross_region_config: {
|
521
|
+
guardrail_profile_identifier: ::String
|
522
|
+
},
|
520
523
|
blocked_input_messaging: ::String,
|
521
524
|
blocked_outputs_messaging: ::String,
|
522
525
|
?kms_key_id: ::String,
|
@@ -964,6 +967,7 @@ module Aws
|
|
964
967
|
def word_policy: () -> Types::GuardrailWordPolicy
|
965
968
|
def sensitive_information_policy: () -> Types::GuardrailSensitiveInformationPolicy
|
966
969
|
def contextual_grounding_policy: () -> Types::GuardrailContextualGroundingPolicy
|
970
|
+
def cross_region_details: () -> Types::GuardrailCrossRegionDetails
|
967
971
|
def created_at: () -> ::Time
|
968
972
|
def updated_at: () -> ::Time
|
969
973
|
def status_reasons: () -> ::Array[::String]
|
@@ -1582,6 +1586,9 @@ module Aws
|
|
1582
1586
|
},
|
1583
1587
|
]
|
1584
1588
|
},
|
1589
|
+
?cross_region_config: {
|
1590
|
+
guardrail_profile_identifier: ::String
|
1591
|
+
},
|
1585
1592
|
blocked_input_messaging: ::String,
|
1586
1593
|
blocked_outputs_messaging: ::String,
|
1587
1594
|
?kms_key_id: ::String
|
data/sig/types.rbs
CHANGED
@@ -112,6 +112,7 @@ module Aws::Bedrock
|
|
112
112
|
attr_accessor word_policy_config: Types::GuardrailWordPolicyConfig
|
113
113
|
attr_accessor sensitive_information_policy_config: Types::GuardrailSensitiveInformationPolicyConfig
|
114
114
|
attr_accessor contextual_grounding_policy_config: Types::GuardrailContextualGroundingPolicyConfig
|
115
|
+
attr_accessor cross_region_config: Types::GuardrailCrossRegionConfig
|
115
116
|
attr_accessor blocked_input_messaging: ::String
|
116
117
|
attr_accessor blocked_outputs_messaging: ::String
|
117
118
|
attr_accessor kms_key_id: ::String
|
@@ -711,6 +712,7 @@ module Aws::Bedrock
|
|
711
712
|
attr_accessor word_policy: Types::GuardrailWordPolicy
|
712
713
|
attr_accessor sensitive_information_policy: Types::GuardrailSensitiveInformationPolicy
|
713
714
|
attr_accessor contextual_grounding_policy: Types::GuardrailContextualGroundingPolicy
|
715
|
+
attr_accessor cross_region_details: Types::GuardrailCrossRegionDetails
|
714
716
|
attr_accessor created_at: ::Time
|
715
717
|
attr_accessor updated_at: ::Time
|
716
718
|
attr_accessor status_reasons: ::Array[::String]
|
@@ -983,6 +985,17 @@ module Aws::Bedrock
|
|
983
985
|
SENSITIVE: []
|
984
986
|
end
|
985
987
|
|
988
|
+
class GuardrailCrossRegionConfig
|
989
|
+
attr_accessor guardrail_profile_identifier: ::String
|
990
|
+
SENSITIVE: []
|
991
|
+
end
|
992
|
+
|
993
|
+
class GuardrailCrossRegionDetails
|
994
|
+
attr_accessor guardrail_profile_id: ::String
|
995
|
+
attr_accessor guardrail_profile_arn: ::String
|
996
|
+
SENSITIVE: []
|
997
|
+
end
|
998
|
+
|
986
999
|
class GuardrailManagedWords
|
987
1000
|
attr_accessor type: ("PROFANITY")
|
988
1001
|
attr_accessor input_action: ("BLOCK" | "NONE")
|
@@ -1066,6 +1079,7 @@ module Aws::Bedrock
|
|
1066
1079
|
attr_accessor version: ::String
|
1067
1080
|
attr_accessor created_at: ::Time
|
1068
1081
|
attr_accessor updated_at: ::Time
|
1082
|
+
attr_accessor cross_region_details: Types::GuardrailCrossRegionDetails
|
1069
1083
|
SENSITIVE: [:name, :description]
|
1070
1084
|
end
|
1071
1085
|
|
@@ -1970,6 +1984,7 @@ module Aws::Bedrock
|
|
1970
1984
|
attr_accessor word_policy_config: Types::GuardrailWordPolicyConfig
|
1971
1985
|
attr_accessor sensitive_information_policy_config: Types::GuardrailSensitiveInformationPolicyConfig
|
1972
1986
|
attr_accessor contextual_grounding_policy_config: Types::GuardrailContextualGroundingPolicyConfig
|
1987
|
+
attr_accessor cross_region_config: Types::GuardrailCrossRegionConfig
|
1973
1988
|
attr_accessor blocked_input_messaging: ::String
|
1974
1989
|
attr_accessor blocked_outputs_messaging: ::String
|
1975
1990
|
attr_accessor kms_key_id: ::String
|