aws-sdk-bedrock 1.76.0 → 1.77.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 +9 -1
- data/lib/aws-sdk-bedrock/client_api.rb +16 -0
- data/lib/aws-sdk-bedrock/types.rb +32 -2
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +5 -1
- data/sig/types.rbs +8 -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: a78f6c32bfb20756bec81ccc192a71ddca9b06aa4d0378bdb9107db7194ccb32
|
|
4
|
+
data.tar.gz: 7e0cb5b88e2f7ab5ff91b95588167a7f010c236debdacde585227ef80e94f196
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79cdf914414af4d9afc0349a15e3285a36bb6d2a022585638593606b75ce092cd99c29f5733bd2a6d2166df651b08aa25d2d11212f8533151f0acda7adf6775c
|
|
7
|
+
data.tar.gz: cb652a2ba9845fb5a97c97adc461d265d6bedae73d0f58600fcfa8ef8a5ea9392ad9be3f764048c17fce19c44dbab90afae34782c5bfc9754fd8efb84e744fa5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.77.0 (2026-03-06)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon Bedrock Guardrails account-level enforcement APIs now support lists for model inclusion and exclusion from guardrail enforcement.
|
|
8
|
+
|
|
4
9
|
1.76.0 (2026-02-27)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.77.0
|
|
@@ -5607,6 +5607,10 @@ module Aws::Bedrock
|
|
|
5607
5607
|
# resp.guardrails_config[0].updated_at #=> Time
|
|
5608
5608
|
# resp.guardrails_config[0].updated_by #=> String
|
|
5609
5609
|
# resp.guardrails_config[0].owner #=> String, one of "ACCOUNT"
|
|
5610
|
+
# resp.guardrails_config[0].model_enforcement.included_models #=> Array
|
|
5611
|
+
# resp.guardrails_config[0].model_enforcement.included_models[0] #=> String
|
|
5612
|
+
# resp.guardrails_config[0].model_enforcement.excluded_models #=> Array
|
|
5613
|
+
# resp.guardrails_config[0].model_enforcement.excluded_models[0] #=> String
|
|
5610
5614
|
# resp.next_token #=> String
|
|
5611
5615
|
#
|
|
5612
5616
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListEnforcedGuardrailsConfiguration AWS API Documentation
|
|
@@ -6721,6 +6725,10 @@ module Aws::Bedrock
|
|
|
6721
6725
|
# guardrail_identifier: "GuardrailIdentifier", # required
|
|
6722
6726
|
# guardrail_version: "GuardrailNumericalVersion", # required
|
|
6723
6727
|
# input_tags: "HONOR", # required, accepts HONOR, IGNORE
|
|
6728
|
+
# model_enforcement: {
|
|
6729
|
+
# included_models: ["IncludedModelId"], # required
|
|
6730
|
+
# excluded_models: ["ExcludedModelId"], # required
|
|
6731
|
+
# },
|
|
6724
6732
|
# },
|
|
6725
6733
|
# })
|
|
6726
6734
|
#
|
|
@@ -7895,7 +7903,7 @@ module Aws::Bedrock
|
|
|
7895
7903
|
tracer: tracer
|
|
7896
7904
|
)
|
|
7897
7905
|
context[:gem_name] = 'aws-sdk-bedrock'
|
|
7898
|
-
context[:gem_version] = '1.
|
|
7906
|
+
context[:gem_version] = '1.77.0'
|
|
7899
7907
|
Seahorse::Client::Request.new(handlers, context)
|
|
7900
7908
|
end
|
|
7901
7909
|
|
|
@@ -376,6 +376,8 @@ module Aws::Bedrock
|
|
|
376
376
|
EvaluatorModelConfig = Shapes::UnionShape.new(name: 'EvaluatorModelConfig')
|
|
377
377
|
EvaluatorModelIdentifier = Shapes::StringShape.new(name: 'EvaluatorModelIdentifier')
|
|
378
378
|
EvaluatorModelIdentifiers = Shapes::ListShape.new(name: 'EvaluatorModelIdentifiers')
|
|
379
|
+
ExcludedModelId = Shapes::StringShape.new(name: 'ExcludedModelId')
|
|
380
|
+
ExcludedModelsList = Shapes::ListShape.new(name: 'ExcludedModelsList')
|
|
379
381
|
ExportAutomatedReasoningPolicyVersionRequest = Shapes::StructureShape.new(name: 'ExportAutomatedReasoningPolicyVersionRequest')
|
|
380
382
|
ExportAutomatedReasoningPolicyVersionResponse = Shapes::StructureShape.new(name: 'ExportAutomatedReasoningPolicyVersionResponse')
|
|
381
383
|
ExternalSource = Shapes::StructureShape.new(name: 'ExternalSource')
|
|
@@ -560,6 +562,8 @@ module Aws::Bedrock
|
|
|
560
562
|
ImportedModelName = Shapes::StringShape.new(name: 'ImportedModelName')
|
|
561
563
|
ImportedModelSummary = Shapes::StructureShape.new(name: 'ImportedModelSummary')
|
|
562
564
|
ImportedModelSummaryList = Shapes::ListShape.new(name: 'ImportedModelSummaryList')
|
|
565
|
+
IncludedModelId = Shapes::StringShape.new(name: 'IncludedModelId')
|
|
566
|
+
IncludedModelsList = Shapes::ListShape.new(name: 'IncludedModelsList')
|
|
563
567
|
InferenceProfileArn = Shapes::StringShape.new(name: 'InferenceProfileArn')
|
|
564
568
|
InferenceProfileDescription = Shapes::StringShape.new(name: 'InferenceProfileDescription')
|
|
565
569
|
InferenceProfileId = Shapes::StringShape.new(name: 'InferenceProfileId')
|
|
@@ -671,6 +675,7 @@ module Aws::Bedrock
|
|
|
671
675
|
ModelCustomizationList = Shapes::ListShape.new(name: 'ModelCustomizationList')
|
|
672
676
|
ModelDataSource = Shapes::UnionShape.new(name: 'ModelDataSource')
|
|
673
677
|
ModelDeploymentName = Shapes::StringShape.new(name: 'ModelDeploymentName')
|
|
678
|
+
ModelEnforcement = Shapes::StructureShape.new(name: 'ModelEnforcement')
|
|
674
679
|
ModelId = Shapes::StringShape.new(name: 'ModelId')
|
|
675
680
|
ModelIdentifier = Shapes::StringShape.new(name: 'ModelIdentifier')
|
|
676
681
|
ModelImportJobArn = Shapes::StringShape.new(name: 'ModelImportJobArn')
|
|
@@ -867,6 +872,7 @@ module Aws::Bedrock
|
|
|
867
872
|
AccountEnforcedGuardrailInferenceInputConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location_name: "guardrailIdentifier"))
|
|
868
873
|
AccountEnforcedGuardrailInferenceInputConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailNumericalVersion, required: true, location_name: "guardrailVersion"))
|
|
869
874
|
AccountEnforcedGuardrailInferenceInputConfiguration.add_member(:input_tags, Shapes::ShapeRef.new(shape: InputTags, required: true, location_name: "inputTags"))
|
|
875
|
+
AccountEnforcedGuardrailInferenceInputConfiguration.add_member(:model_enforcement, Shapes::ShapeRef.new(shape: ModelEnforcement, location_name: "modelEnforcement"))
|
|
870
876
|
AccountEnforcedGuardrailInferenceInputConfiguration.struct_class = Types::AccountEnforcedGuardrailInferenceInputConfiguration
|
|
871
877
|
|
|
872
878
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:config_id, Shapes::ShapeRef.new(shape: AccountEnforcedGuardrailConfigurationId, location_name: "configId"))
|
|
@@ -879,6 +885,7 @@ module Aws::Bedrock
|
|
|
879
885
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
|
|
880
886
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:updated_by, Shapes::ShapeRef.new(shape: String, location_name: "updatedBy"))
|
|
881
887
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:owner, Shapes::ShapeRef.new(shape: ConfigurationOwner, location_name: "owner"))
|
|
888
|
+
AccountEnforcedGuardrailOutputConfiguration.add_member(:model_enforcement, Shapes::ShapeRef.new(shape: ModelEnforcement, location_name: "modelEnforcement"))
|
|
882
889
|
AccountEnforcedGuardrailOutputConfiguration.struct_class = Types::AccountEnforcedGuardrailOutputConfiguration
|
|
883
890
|
|
|
884
891
|
AccountEnforcedGuardrailsOutputConfiguration.member = Shapes::ShapeRef.new(shape: AccountEnforcedGuardrailOutputConfiguration)
|
|
@@ -2010,6 +2017,8 @@ module Aws::Bedrock
|
|
|
2010
2017
|
|
|
2011
2018
|
EvaluatorModelIdentifiers.member = Shapes::ShapeRef.new(shape: EvaluatorModelIdentifier)
|
|
2012
2019
|
|
|
2020
|
+
ExcludedModelsList.member = Shapes::ShapeRef.new(shape: ExcludedModelId)
|
|
2021
|
+
|
|
2013
2022
|
ExportAutomatedReasoningPolicyVersionRequest.add_member(:policy_arn, Shapes::ShapeRef.new(shape: AutomatedReasoningPolicyArn, required: true, location: "uri", location_name: "policyArn"))
|
|
2014
2023
|
ExportAutomatedReasoningPolicyVersionRequest.struct_class = Types::ExportAutomatedReasoningPolicyVersionRequest
|
|
2015
2024
|
|
|
@@ -2693,6 +2702,8 @@ module Aws::Bedrock
|
|
|
2693
2702
|
|
|
2694
2703
|
ImportedModelSummaryList.member = Shapes::ShapeRef.new(shape: ImportedModelSummary)
|
|
2695
2704
|
|
|
2705
|
+
IncludedModelsList.member = Shapes::ShapeRef.new(shape: IncludedModelId)
|
|
2706
|
+
|
|
2696
2707
|
InferenceProfileModel.add_member(:model_arn, Shapes::ShapeRef.new(shape: FoundationModelArn, location_name: "modelArn"))
|
|
2697
2708
|
InferenceProfileModel.struct_class = Types::InferenceProfileModel
|
|
2698
2709
|
|
|
@@ -3085,6 +3096,10 @@ module Aws::Bedrock
|
|
|
3085
3096
|
ModelDataSource.add_member_subclass(:unknown, Types::ModelDataSource::Unknown)
|
|
3086
3097
|
ModelDataSource.struct_class = Types::ModelDataSource
|
|
3087
3098
|
|
|
3099
|
+
ModelEnforcement.add_member(:included_models, Shapes::ShapeRef.new(shape: IncludedModelsList, required: true, location_name: "includedModels"))
|
|
3100
|
+
ModelEnforcement.add_member(:excluded_models, Shapes::ShapeRef.new(shape: ExcludedModelsList, required: true, location_name: "excludedModels"))
|
|
3101
|
+
ModelEnforcement.struct_class = Types::ModelEnforcement
|
|
3102
|
+
|
|
3088
3103
|
ModelImportJobSummaries.member = Shapes::ShapeRef.new(shape: ModelImportJobSummary)
|
|
3089
3104
|
|
|
3090
3105
|
ModelImportJobSummary.add_member(:job_arn, Shapes::ShapeRef.new(shape: ModelImportJobArn, required: true, location_name: "jobArn"))
|
|
@@ -4012,6 +4027,7 @@ module Aws::Bedrock
|
|
|
4012
4027
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
4013
4028
|
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
4014
4029
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4030
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
|
|
4015
4031
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4016
4032
|
end)
|
|
4017
4033
|
|
|
@@ -37,12 +37,18 @@ module Aws::Bedrock
|
|
|
37
37
|
# Whether to honor or ignore input tags at runtime.
|
|
38
38
|
# @return [String]
|
|
39
39
|
#
|
|
40
|
+
# @!attribute [rw] model_enforcement
|
|
41
|
+
# Model-specific information for the enforced guardrail configuration.
|
|
42
|
+
# If not present, the configuration is enforced on all models
|
|
43
|
+
# @return [Types::ModelEnforcement]
|
|
44
|
+
#
|
|
40
45
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AccountEnforcedGuardrailInferenceInputConfiguration AWS API Documentation
|
|
41
46
|
#
|
|
42
47
|
class AccountEnforcedGuardrailInferenceInputConfiguration < Struct.new(
|
|
43
48
|
:guardrail_identifier,
|
|
44
49
|
:guardrail_version,
|
|
45
|
-
:input_tags
|
|
50
|
+
:input_tags,
|
|
51
|
+
:model_enforcement)
|
|
46
52
|
SENSITIVE = []
|
|
47
53
|
include Aws::Structure
|
|
48
54
|
end
|
|
@@ -89,6 +95,10 @@ module Aws::Bedrock
|
|
|
89
95
|
# Configuration owner type.
|
|
90
96
|
# @return [String]
|
|
91
97
|
#
|
|
98
|
+
# @!attribute [rw] model_enforcement
|
|
99
|
+
# Model-specific information for the enforced guardrail configuration.
|
|
100
|
+
# @return [Types::ModelEnforcement]
|
|
101
|
+
#
|
|
92
102
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/AccountEnforcedGuardrailOutputConfiguration AWS API Documentation
|
|
93
103
|
#
|
|
94
104
|
class AccountEnforcedGuardrailOutputConfiguration < Struct.new(
|
|
@@ -101,7 +111,8 @@ module Aws::Bedrock
|
|
|
101
111
|
:created_by,
|
|
102
112
|
:updated_at,
|
|
103
113
|
:updated_by,
|
|
104
|
-
:owner
|
|
114
|
+
:owner,
|
|
115
|
+
:model_enforcement)
|
|
105
116
|
SENSITIVE = []
|
|
106
117
|
include Aws::Structure
|
|
107
118
|
end
|
|
@@ -11251,6 +11262,25 @@ module Aws::Bedrock
|
|
|
11251
11262
|
class Unknown < ModelDataSource; end
|
|
11252
11263
|
end
|
|
11253
11264
|
|
|
11265
|
+
# Model-specific information for the enforced guardrail configuration.
|
|
11266
|
+
#
|
|
11267
|
+
# @!attribute [rw] included_models
|
|
11268
|
+
# Models to enforce the guardrail on.
|
|
11269
|
+
# @return [Array<String>]
|
|
11270
|
+
#
|
|
11271
|
+
# @!attribute [rw] excluded_models
|
|
11272
|
+
# Models to exclude from enforcement of the guardrail.
|
|
11273
|
+
# @return [Array<String>]
|
|
11274
|
+
#
|
|
11275
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ModelEnforcement AWS API Documentation
|
|
11276
|
+
#
|
|
11277
|
+
class ModelEnforcement < Struct.new(
|
|
11278
|
+
:included_models,
|
|
11279
|
+
:excluded_models)
|
|
11280
|
+
SENSITIVE = []
|
|
11281
|
+
include Aws::Structure
|
|
11282
|
+
end
|
|
11283
|
+
|
|
11254
11284
|
# Information about the import job.
|
|
11255
11285
|
#
|
|
11256
11286
|
# @!attribute [rw] job_arn
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -1986,7 +1986,11 @@ module Aws
|
|
|
1986
1986
|
guardrail_inference_config: {
|
|
1987
1987
|
guardrail_identifier: ::String,
|
|
1988
1988
|
guardrail_version: ::String,
|
|
1989
|
-
input_tags: ("HONOR" | "IGNORE")
|
|
1989
|
+
input_tags: ("HONOR" | "IGNORE"),
|
|
1990
|
+
model_enforcement: {
|
|
1991
|
+
included_models: Array[::String],
|
|
1992
|
+
excluded_models: Array[::String]
|
|
1993
|
+
}?
|
|
1990
1994
|
}
|
|
1991
1995
|
) -> _PutEnforcedGuardrailConfigurationResponseSuccess
|
|
1992
1996
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutEnforcedGuardrailConfigurationResponseSuccess
|
data/sig/types.rbs
CHANGED
|
@@ -17,6 +17,7 @@ module Aws::Bedrock
|
|
|
17
17
|
attr_accessor guardrail_identifier: ::String
|
|
18
18
|
attr_accessor guardrail_version: ::String
|
|
19
19
|
attr_accessor input_tags: ("HONOR" | "IGNORE")
|
|
20
|
+
attr_accessor model_enforcement: Types::ModelEnforcement
|
|
20
21
|
SENSITIVE: []
|
|
21
22
|
end
|
|
22
23
|
|
|
@@ -31,6 +32,7 @@ module Aws::Bedrock
|
|
|
31
32
|
attr_accessor updated_at: ::Time
|
|
32
33
|
attr_accessor updated_by: ::String
|
|
33
34
|
attr_accessor owner: ("ACCOUNT")
|
|
35
|
+
attr_accessor model_enforcement: Types::ModelEnforcement
|
|
34
36
|
SENSITIVE: []
|
|
35
37
|
end
|
|
36
38
|
|
|
@@ -2840,6 +2842,12 @@ module Aws::Bedrock
|
|
|
2840
2842
|
end
|
|
2841
2843
|
end
|
|
2842
2844
|
|
|
2845
|
+
class ModelEnforcement
|
|
2846
|
+
attr_accessor included_models: ::Array[::String]
|
|
2847
|
+
attr_accessor excluded_models: ::Array[::String]
|
|
2848
|
+
SENSITIVE: []
|
|
2849
|
+
end
|
|
2850
|
+
|
|
2843
2851
|
class ModelImportJobSummary
|
|
2844
2852
|
attr_accessor job_arn: ::String
|
|
2845
2853
|
attr_accessor job_name: ::String
|