aws-sdk-bedrock 1.80.0 → 1.81.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 +89 -2
- data/lib/aws-sdk-bedrock/client_api.rb +74 -2
- data/lib/aws-sdk-bedrock/types.rb +101 -4
- data/lib/aws-sdk-bedrock.rb +1 -1
- data/sig/client.rbs +34 -1
- data/sig/types.rbs +37 -1
- 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: f9186a7c4284ab3d094917e001157c218475687d40d9c66353d418e0e59985f9
|
|
4
|
+
data.tar.gz: 76558eff7d37cba5fc18552f23e76c59414b6823f172c4bfb93458d01fa7c6ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50ef69df78a0b108fb8fbdd0cd1b36bd0da086e6180b168129e110ee8bc52dabca3850239da261c9c7fa1ea47f665ab32a049fd268f58aa13f2dda77ba6fbf6e
|
|
7
|
+
data.tar.gz: 133eb2d72e36ce60f3a37c6ed06782ba98f5739577e14f0209f38ef7127f05c857694eefb20ab28ed741514927bc63256a9e9013f9065f837f01a80ce7b60f5f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.81.0 (2026-04-03)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon Bedrock Guardrails enforcement configuration APIs now support selective guarding controls for system prompts as well as user and assistant messages, along with SDK support for Amazon Bedrock resource policy APIs.
|
|
8
|
+
|
|
4
9
|
1.80.0 (2026-04-01)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.81.0
|
|
@@ -3183,6 +3183,28 @@ module Aws::Bedrock
|
|
|
3183
3183
|
req.send_request(options)
|
|
3184
3184
|
end
|
|
3185
3185
|
|
|
3186
|
+
# Deletes a previously created Bedrock resource policy.
|
|
3187
|
+
#
|
|
3188
|
+
# @option params [required, String] :resource_arn
|
|
3189
|
+
# The ARN of the Bedrock resource to which this resource policy applies.
|
|
3190
|
+
#
|
|
3191
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
3192
|
+
#
|
|
3193
|
+
# @example Request syntax with placeholder values
|
|
3194
|
+
#
|
|
3195
|
+
# resp = client.delete_resource_policy({
|
|
3196
|
+
# resource_arn: "ResourcePolicyResourceArn", # required
|
|
3197
|
+
# })
|
|
3198
|
+
#
|
|
3199
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteResourcePolicy AWS API Documentation
|
|
3200
|
+
#
|
|
3201
|
+
# @overload delete_resource_policy(params = {})
|
|
3202
|
+
# @param [Hash] params ({})
|
|
3203
|
+
def delete_resource_policy(params = {}, options = {})
|
|
3204
|
+
req = build_request(:delete_resource_policy, params)
|
|
3205
|
+
req.send_request(options)
|
|
3206
|
+
end
|
|
3207
|
+
|
|
3186
3208
|
# Deregisters an endpoint for a model from Amazon Bedrock Marketplace.
|
|
3187
3209
|
# This operation removes the endpoint's association with Amazon Bedrock
|
|
3188
3210
|
# but does not delete the underlying Amazon SageMaker endpoint.
|
|
@@ -5038,6 +5060,34 @@ module Aws::Bedrock
|
|
|
5038
5060
|
req.send_request(options)
|
|
5039
5061
|
end
|
|
5040
5062
|
|
|
5063
|
+
# Gets the resource policy document for a Bedrock resource
|
|
5064
|
+
#
|
|
5065
|
+
# @option params [required, String] :resource_arn
|
|
5066
|
+
# The ARN of the Bedrock resource to which this resource policy applies.
|
|
5067
|
+
#
|
|
5068
|
+
# @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
5069
|
+
#
|
|
5070
|
+
# * {Types::GetResourcePolicyResponse#resource_policy #resource_policy} => String
|
|
5071
|
+
#
|
|
5072
|
+
# @example Request syntax with placeholder values
|
|
5073
|
+
#
|
|
5074
|
+
# resp = client.get_resource_policy({
|
|
5075
|
+
# resource_arn: "ResourcePolicyResourceArn", # required
|
|
5076
|
+
# })
|
|
5077
|
+
#
|
|
5078
|
+
# @example Response structure
|
|
5079
|
+
#
|
|
5080
|
+
# resp.resource_policy #=> String
|
|
5081
|
+
#
|
|
5082
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetResourcePolicy AWS API Documentation
|
|
5083
|
+
#
|
|
5084
|
+
# @overload get_resource_policy(params = {})
|
|
5085
|
+
# @param [Hash] params ({})
|
|
5086
|
+
def get_resource_policy(params = {}, options = {})
|
|
5087
|
+
req = build_request(:get_resource_policy, params)
|
|
5088
|
+
req.send_request(options)
|
|
5089
|
+
end
|
|
5090
|
+
|
|
5041
5091
|
# Get usecase for model access.
|
|
5042
5092
|
#
|
|
5043
5093
|
# @return [Types::GetUseCaseForModelAccessResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
@@ -5609,6 +5659,8 @@ module Aws::Bedrock
|
|
|
5609
5659
|
# resp.guardrails_config[0].guardrail_arn #=> String
|
|
5610
5660
|
# resp.guardrails_config[0].guardrail_id #=> String
|
|
5611
5661
|
# resp.guardrails_config[0].input_tags #=> String, one of "HONOR", "IGNORE"
|
|
5662
|
+
# resp.guardrails_config[0].selective_content_guarding.system #=> String, one of "SELECTIVE", "COMPREHENSIVE"
|
|
5663
|
+
# resp.guardrails_config[0].selective_content_guarding.messages #=> String, one of "SELECTIVE", "COMPREHENSIVE"
|
|
5612
5664
|
# resp.guardrails_config[0].guardrail_version #=> String
|
|
5613
5665
|
# resp.guardrails_config[0].created_at #=> Time
|
|
5614
5666
|
# resp.guardrails_config[0].created_by #=> String
|
|
@@ -6736,7 +6788,10 @@ module Aws::Bedrock
|
|
|
6736
6788
|
# guardrail_inference_config: { # required
|
|
6737
6789
|
# guardrail_identifier: "GuardrailIdentifier", # required
|
|
6738
6790
|
# guardrail_version: "GuardrailNumericalVersion", # required
|
|
6739
|
-
#
|
|
6791
|
+
# selective_content_guarding: {
|
|
6792
|
+
# system: "SELECTIVE", # accepts SELECTIVE, COMPREHENSIVE
|
|
6793
|
+
# messages: "SELECTIVE", # accepts SELECTIVE, COMPREHENSIVE
|
|
6794
|
+
# },
|
|
6740
6795
|
# model_enforcement: {
|
|
6741
6796
|
# included_models: ["IncludedModelId"], # required
|
|
6742
6797
|
# excluded_models: ["ExcludedModelId"], # required
|
|
@@ -6799,6 +6854,38 @@ module Aws::Bedrock
|
|
|
6799
6854
|
req.send_request(options)
|
|
6800
6855
|
end
|
|
6801
6856
|
|
|
6857
|
+
# Adds a resource policy for a Bedrock resource.
|
|
6858
|
+
#
|
|
6859
|
+
# @option params [required, String] :resource_arn
|
|
6860
|
+
# The ARN of the Bedrock resource to which this resource policy applies.
|
|
6861
|
+
#
|
|
6862
|
+
# @option params [required, String] :resource_policy
|
|
6863
|
+
# The JSON string representing the Bedrock resource policy.
|
|
6864
|
+
#
|
|
6865
|
+
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6866
|
+
#
|
|
6867
|
+
# * {Types::PutResourcePolicyResponse#resource_arn #resource_arn} => String
|
|
6868
|
+
#
|
|
6869
|
+
# @example Request syntax with placeholder values
|
|
6870
|
+
#
|
|
6871
|
+
# resp = client.put_resource_policy({
|
|
6872
|
+
# resource_arn: "ResourcePolicyResourceArn", # required
|
|
6873
|
+
# resource_policy: "ResourcePolicyDocument", # required
|
|
6874
|
+
# })
|
|
6875
|
+
#
|
|
6876
|
+
# @example Response structure
|
|
6877
|
+
#
|
|
6878
|
+
# resp.resource_arn #=> String
|
|
6879
|
+
#
|
|
6880
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutResourcePolicy AWS API Documentation
|
|
6881
|
+
#
|
|
6882
|
+
# @overload put_resource_policy(params = {})
|
|
6883
|
+
# @param [Hash] params ({})
|
|
6884
|
+
def put_resource_policy(params = {}, options = {})
|
|
6885
|
+
req = build_request(:put_resource_policy, params)
|
|
6886
|
+
req.send_request(options)
|
|
6887
|
+
end
|
|
6888
|
+
|
|
6802
6889
|
# Put usecase for model access.
|
|
6803
6890
|
#
|
|
6804
6891
|
# @option params [required, String, StringIO, File] :form_data
|
|
@@ -7915,7 +8002,7 @@ module Aws::Bedrock
|
|
|
7915
8002
|
tracer: tracer
|
|
7916
8003
|
)
|
|
7917
8004
|
context[:gem_name] = 'aws-sdk-bedrock'
|
|
7918
|
-
context[:gem_version] = '1.
|
|
8005
|
+
context[:gem_version] = '1.81.0'
|
|
7919
8006
|
Seahorse::Client::Request.new(handlers, context)
|
|
7920
8007
|
end
|
|
7921
8008
|
|
|
@@ -322,6 +322,8 @@ module Aws::Bedrock
|
|
|
322
322
|
DeletePromptRouterResponse = Shapes::StructureShape.new(name: 'DeletePromptRouterResponse')
|
|
323
323
|
DeleteProvisionedModelThroughputRequest = Shapes::StructureShape.new(name: 'DeleteProvisionedModelThroughputRequest')
|
|
324
324
|
DeleteProvisionedModelThroughputResponse = Shapes::StructureShape.new(name: 'DeleteProvisionedModelThroughputResponse')
|
|
325
|
+
DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
|
|
326
|
+
DeleteResourcePolicyResponse = Shapes::StructureShape.new(name: 'DeleteResourcePolicyResponse')
|
|
325
327
|
DeregisterMarketplaceModelEndpointRequest = Shapes::StructureShape.new(name: 'DeregisterMarketplaceModelEndpointRequest')
|
|
326
328
|
DeregisterMarketplaceModelEndpointResponse = Shapes::StructureShape.new(name: 'DeregisterMarketplaceModelEndpointResponse')
|
|
327
329
|
DimensionalPriceRate = Shapes::StructureShape.new(name: 'DimensionalPriceRate')
|
|
@@ -447,6 +449,8 @@ module Aws::Bedrock
|
|
|
447
449
|
GetPromptRouterResponse = Shapes::StructureShape.new(name: 'GetPromptRouterResponse')
|
|
448
450
|
GetProvisionedModelThroughputRequest = Shapes::StructureShape.new(name: 'GetProvisionedModelThroughputRequest')
|
|
449
451
|
GetProvisionedModelThroughputResponse = Shapes::StructureShape.new(name: 'GetProvisionedModelThroughputResponse')
|
|
452
|
+
GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
|
|
453
|
+
GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
|
|
450
454
|
GetUseCaseForModelAccessRequest = Shapes::StructureShape.new(name: 'GetUseCaseForModelAccessRequest')
|
|
451
455
|
GetUseCaseForModelAccessResponse = Shapes::StructureShape.new(name: 'GetUseCaseForModelAccessResponse')
|
|
452
456
|
GraderConfig = Shapes::UnionShape.new(name: 'GraderConfig')
|
|
@@ -737,6 +741,8 @@ module Aws::Bedrock
|
|
|
737
741
|
PutEnforcedGuardrailConfigurationResponse = Shapes::StructureShape.new(name: 'PutEnforcedGuardrailConfigurationResponse')
|
|
738
742
|
PutModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'PutModelInvocationLoggingConfigurationRequest')
|
|
739
743
|
PutModelInvocationLoggingConfigurationResponse = Shapes::StructureShape.new(name: 'PutModelInvocationLoggingConfigurationResponse')
|
|
744
|
+
PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
|
|
745
|
+
PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
|
|
740
746
|
PutUseCaseForModelAccessRequest = Shapes::StructureShape.new(name: 'PutUseCaseForModelAccessRequest')
|
|
741
747
|
PutUseCaseForModelAccessResponse = Shapes::StructureShape.new(name: 'PutUseCaseForModelAccessResponse')
|
|
742
748
|
QueryTransformationConfiguration = Shapes::StructureShape.new(name: 'QueryTransformationConfiguration')
|
|
@@ -773,6 +779,8 @@ module Aws::Bedrock
|
|
|
773
779
|
RerankingMetadataSelectiveModeConfiguration = Shapes::UnionShape.new(name: 'RerankingMetadataSelectiveModeConfiguration')
|
|
774
780
|
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
|
775
781
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
782
|
+
ResourcePolicyDocument = Shapes::StringShape.new(name: 'ResourcePolicyDocument')
|
|
783
|
+
ResourcePolicyResourceArn = Shapes::StringShape.new(name: 'ResourcePolicyResourceArn')
|
|
776
784
|
RetrievalFilter = Shapes::UnionShape.new(name: 'RetrievalFilter')
|
|
777
785
|
RetrievalFilterList = Shapes::ListShape.new(name: 'RetrievalFilterList')
|
|
778
786
|
RetrieveAndGenerateConfiguration = Shapes::StructureShape.new(name: 'RetrieveAndGenerateConfiguration')
|
|
@@ -791,6 +799,8 @@ module Aws::Bedrock
|
|
|
791
799
|
SearchType = Shapes::StringShape.new(name: 'SearchType')
|
|
792
800
|
SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
|
|
793
801
|
SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
|
|
802
|
+
SelectiveContentGuarding = Shapes::StructureShape.new(name: 'SelectiveContentGuarding')
|
|
803
|
+
SelectiveGuardingMode = Shapes::StringShape.new(name: 'SelectiveGuardingMode')
|
|
794
804
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
795
805
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
|
796
806
|
SortByProvisionedModels = Shapes::StringShape.new(name: 'SortByProvisionedModels')
|
|
@@ -872,14 +882,15 @@ module Aws::Bedrock
|
|
|
872
882
|
|
|
873
883
|
AccountEnforcedGuardrailInferenceInputConfiguration.add_member(:guardrail_identifier, Shapes::ShapeRef.new(shape: GuardrailIdentifier, required: true, location_name: "guardrailIdentifier"))
|
|
874
884
|
AccountEnforcedGuardrailInferenceInputConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailNumericalVersion, required: true, location_name: "guardrailVersion"))
|
|
875
|
-
AccountEnforcedGuardrailInferenceInputConfiguration.add_member(:
|
|
885
|
+
AccountEnforcedGuardrailInferenceInputConfiguration.add_member(:selective_content_guarding, Shapes::ShapeRef.new(shape: SelectiveContentGuarding, location_name: "selectiveContentGuarding"))
|
|
876
886
|
AccountEnforcedGuardrailInferenceInputConfiguration.add_member(:model_enforcement, Shapes::ShapeRef.new(shape: ModelEnforcement, location_name: "modelEnforcement"))
|
|
877
887
|
AccountEnforcedGuardrailInferenceInputConfiguration.struct_class = Types::AccountEnforcedGuardrailInferenceInputConfiguration
|
|
878
888
|
|
|
879
889
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:config_id, Shapes::ShapeRef.new(shape: AccountEnforcedGuardrailConfigurationId, location_name: "configId"))
|
|
880
890
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:guardrail_arn, Shapes::ShapeRef.new(shape: GuardrailArn, location_name: "guardrailArn"))
|
|
881
891
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:guardrail_id, Shapes::ShapeRef.new(shape: GuardrailId, location_name: "guardrailId"))
|
|
882
|
-
AccountEnforcedGuardrailOutputConfiguration.add_member(:input_tags, Shapes::ShapeRef.new(shape: InputTags, location_name: "inputTags"))
|
|
892
|
+
AccountEnforcedGuardrailOutputConfiguration.add_member(:input_tags, Shapes::ShapeRef.new(shape: InputTags, deprecated: true, location_name: "inputTags", metadata: {"deprecatedMessage" => "This field is being deprecated and will be removed once customers transition their existing policies to the new schema.", "deprecatedSince" => "2026-04-03"}))
|
|
893
|
+
AccountEnforcedGuardrailOutputConfiguration.add_member(:selective_content_guarding, Shapes::ShapeRef.new(shape: SelectiveContentGuarding, location_name: "selectiveContentGuarding"))
|
|
883
894
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:guardrail_version, Shapes::ShapeRef.new(shape: GuardrailNumericalVersion, location_name: "guardrailVersion"))
|
|
884
895
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
|
885
896
|
AccountEnforcedGuardrailOutputConfiguration.add_member(:created_by, Shapes::ShapeRef.new(shape: String, location_name: "createdBy"))
|
|
@@ -1878,6 +1889,11 @@ module Aws::Bedrock
|
|
|
1878
1889
|
|
|
1879
1890
|
DeleteProvisionedModelThroughputResponse.struct_class = Types::DeleteProvisionedModelThroughputResponse
|
|
1880
1891
|
|
|
1892
|
+
DeleteResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourcePolicyResourceArn, required: true, location: "uri", location_name: "resourceArn"))
|
|
1893
|
+
DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
|
|
1894
|
+
|
|
1895
|
+
DeleteResourcePolicyResponse.struct_class = Types::DeleteResourcePolicyResponse
|
|
1896
|
+
|
|
1881
1897
|
DeregisterMarketplaceModelEndpointRequest.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "endpointArn"))
|
|
1882
1898
|
DeregisterMarketplaceModelEndpointRequest.struct_class = Types::DeregisterMarketplaceModelEndpointRequest
|
|
1883
1899
|
|
|
@@ -2427,6 +2443,12 @@ module Aws::Bedrock
|
|
|
2427
2443
|
GetProvisionedModelThroughputResponse.add_member(:commitment_expiration_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "commitmentExpirationTime"))
|
|
2428
2444
|
GetProvisionedModelThroughputResponse.struct_class = Types::GetProvisionedModelThroughputResponse
|
|
2429
2445
|
|
|
2446
|
+
GetResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourcePolicyResourceArn, required: true, location: "uri", location_name: "resourceArn"))
|
|
2447
|
+
GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
|
|
2448
|
+
|
|
2449
|
+
GetResourcePolicyResponse.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicyDocument, location_name: "resourcePolicy"))
|
|
2450
|
+
GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
|
|
2451
|
+
|
|
2430
2452
|
GetUseCaseForModelAccessRequest.struct_class = Types::GetUseCaseForModelAccessRequest
|
|
2431
2453
|
|
|
2432
2454
|
GetUseCaseForModelAccessResponse.add_member(:form_data, Shapes::ShapeRef.new(shape: AcknowledgementFormDataBody, required: true, location_name: "formData"))
|
|
@@ -3236,6 +3258,13 @@ module Aws::Bedrock
|
|
|
3236
3258
|
|
|
3237
3259
|
PutModelInvocationLoggingConfigurationResponse.struct_class = Types::PutModelInvocationLoggingConfigurationResponse
|
|
3238
3260
|
|
|
3261
|
+
PutResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourcePolicyResourceArn, required: true, location_name: "resourceArn"))
|
|
3262
|
+
PutResourcePolicyRequest.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicyDocument, required: true, location_name: "resourcePolicy"))
|
|
3263
|
+
PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
|
|
3264
|
+
|
|
3265
|
+
PutResourcePolicyResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourcePolicyResourceArn, location_name: "resourceArn"))
|
|
3266
|
+
PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
|
|
3267
|
+
|
|
3239
3268
|
PutUseCaseForModelAccessRequest.add_member(:form_data, Shapes::ShapeRef.new(shape: AcknowledgementFormDataBody, required: true, location_name: "formData"))
|
|
3240
3269
|
PutUseCaseForModelAccessRequest.struct_class = Types::PutUseCaseForModelAccessRequest
|
|
3241
3270
|
|
|
@@ -3391,6 +3420,10 @@ module Aws::Bedrock
|
|
|
3391
3420
|
|
|
3392
3421
|
SecurityGroupIds.member = Shapes::ShapeRef.new(shape: SecurityGroupId)
|
|
3393
3422
|
|
|
3423
|
+
SelectiveContentGuarding.add_member(:system, Shapes::ShapeRef.new(shape: SelectiveGuardingMode, location_name: "system"))
|
|
3424
|
+
SelectiveContentGuarding.add_member(:messages, Shapes::ShapeRef.new(shape: SelectiveGuardingMode, location_name: "messages"))
|
|
3425
|
+
SelectiveContentGuarding.struct_class = Types::SelectiveContentGuarding
|
|
3426
|
+
|
|
3394
3427
|
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: NonBlankString, location_name: "message"))
|
|
3395
3428
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
3396
3429
|
|
|
@@ -4119,6 +4152,19 @@ module Aws::Bedrock
|
|
|
4119
4152
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4120
4153
|
end)
|
|
4121
4154
|
|
|
4155
|
+
api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
|
4156
|
+
o.name = "DeleteResourcePolicy"
|
|
4157
|
+
o.http_method = "DELETE"
|
|
4158
|
+
o.http_request_uri = "/resource-policy/{resourceArn}"
|
|
4159
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
|
|
4160
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteResourcePolicyResponse)
|
|
4161
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
4162
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
4163
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
4164
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4165
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4166
|
+
end)
|
|
4167
|
+
|
|
4122
4168
|
api.add_operation(:deregister_marketplace_model_endpoint, Seahorse::Model::Operation.new.tap do |o|
|
|
4123
4169
|
o.name = "DeregisterMarketplaceModelEndpoint"
|
|
4124
4170
|
o.http_method = "DELETE"
|
|
@@ -4443,6 +4489,19 @@ module Aws::Bedrock
|
|
|
4443
4489
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4444
4490
|
end)
|
|
4445
4491
|
|
|
4492
|
+
api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
|
4493
|
+
o.name = "GetResourcePolicy"
|
|
4494
|
+
o.http_method = "GET"
|
|
4495
|
+
o.http_request_uri = "/resource-policy/{resourceArn}"
|
|
4496
|
+
o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
|
|
4497
|
+
o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
|
|
4498
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
4499
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
4500
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
4501
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4502
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4503
|
+
end)
|
|
4504
|
+
|
|
4446
4505
|
api.add_operation(:get_use_case_for_model_access, Seahorse::Model::Operation.new.tap do |o|
|
|
4447
4506
|
o.name = "GetUseCaseForModelAccess"
|
|
4448
4507
|
o.http_method = "GET"
|
|
@@ -4851,6 +4910,19 @@ module Aws::Bedrock
|
|
|
4851
4910
|
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4852
4911
|
end)
|
|
4853
4912
|
|
|
4913
|
+
api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
|
|
4914
|
+
o.name = "PutResourcePolicy"
|
|
4915
|
+
o.http_method = "POST"
|
|
4916
|
+
o.http_request_uri = "/resource-policy"
|
|
4917
|
+
o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
|
|
4918
|
+
o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
|
|
4919
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
4920
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
4921
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
4922
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
4923
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
4924
|
+
end)
|
|
4925
|
+
|
|
4854
4926
|
api.add_operation(:put_use_case_for_model_access, Seahorse::Model::Operation.new.tap do |o|
|
|
4855
4927
|
o.name = "PutUseCaseForModelAccess"
|
|
4856
4928
|
o.http_method = "POST"
|
|
@@ -33,9 +33,9 @@ module Aws::Bedrock
|
|
|
33
33
|
# Numerical guardrail version.
|
|
34
34
|
# @return [String]
|
|
35
35
|
#
|
|
36
|
-
# @!attribute [rw]
|
|
37
|
-
#
|
|
38
|
-
# @return [
|
|
36
|
+
# @!attribute [rw] selective_content_guarding
|
|
37
|
+
# Selective content guarding controls for enforced guardrails.
|
|
38
|
+
# @return [Types::SelectiveContentGuarding]
|
|
39
39
|
#
|
|
40
40
|
# @!attribute [rw] model_enforcement
|
|
41
41
|
# Model-specific information for the enforced guardrail configuration.
|
|
@@ -47,7 +47,7 @@ module Aws::Bedrock
|
|
|
47
47
|
class AccountEnforcedGuardrailInferenceInputConfiguration < Struct.new(
|
|
48
48
|
:guardrail_identifier,
|
|
49
49
|
:guardrail_version,
|
|
50
|
-
:
|
|
50
|
+
:selective_content_guarding,
|
|
51
51
|
:model_enforcement)
|
|
52
52
|
SENSITIVE = []
|
|
53
53
|
include Aws::Structure
|
|
@@ -71,6 +71,10 @@ module Aws::Bedrock
|
|
|
71
71
|
# Whether to honor or ignore input tags at runtime.
|
|
72
72
|
# @return [String]
|
|
73
73
|
#
|
|
74
|
+
# @!attribute [rw] selective_content_guarding
|
|
75
|
+
# Selective content guarding controls for enforced guardrails.
|
|
76
|
+
# @return [Types::SelectiveContentGuarding]
|
|
77
|
+
#
|
|
74
78
|
# @!attribute [rw] guardrail_version
|
|
75
79
|
# Numerical guardrail version.
|
|
76
80
|
# @return [String]
|
|
@@ -106,6 +110,7 @@ module Aws::Bedrock
|
|
|
106
110
|
:guardrail_arn,
|
|
107
111
|
:guardrail_id,
|
|
108
112
|
:input_tags,
|
|
113
|
+
:selective_content_guarding,
|
|
109
114
|
:guardrail_version,
|
|
110
115
|
:created_at,
|
|
111
116
|
:created_by,
|
|
@@ -4759,6 +4764,23 @@ module Aws::Bedrock
|
|
|
4759
4764
|
#
|
|
4760
4765
|
class DeleteProvisionedModelThroughputResponse < Aws::EmptyStructure; end
|
|
4761
4766
|
|
|
4767
|
+
# @!attribute [rw] resource_arn
|
|
4768
|
+
# The ARN of the Bedrock resource to which this resource policy
|
|
4769
|
+
# applies.
|
|
4770
|
+
# @return [String]
|
|
4771
|
+
#
|
|
4772
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteResourcePolicyRequest AWS API Documentation
|
|
4773
|
+
#
|
|
4774
|
+
class DeleteResourcePolicyRequest < Struct.new(
|
|
4775
|
+
:resource_arn)
|
|
4776
|
+
SENSITIVE = []
|
|
4777
|
+
include Aws::Structure
|
|
4778
|
+
end
|
|
4779
|
+
|
|
4780
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/DeleteResourcePolicyResponse AWS API Documentation
|
|
4781
|
+
#
|
|
4782
|
+
class DeleteResourcePolicyResponse < Aws::EmptyStructure; end
|
|
4783
|
+
|
|
4762
4784
|
# @!attribute [rw] endpoint_arn
|
|
4763
4785
|
# The Amazon Resource Name (ARN) of the endpoint you want to
|
|
4764
4786
|
# deregister.
|
|
@@ -7446,6 +7468,31 @@ module Aws::Bedrock
|
|
|
7446
7468
|
include Aws::Structure
|
|
7447
7469
|
end
|
|
7448
7470
|
|
|
7471
|
+
# @!attribute [rw] resource_arn
|
|
7472
|
+
# The ARN of the Bedrock resource to which this resource policy
|
|
7473
|
+
# applies.
|
|
7474
|
+
# @return [String]
|
|
7475
|
+
#
|
|
7476
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetResourcePolicyRequest AWS API Documentation
|
|
7477
|
+
#
|
|
7478
|
+
class GetResourcePolicyRequest < Struct.new(
|
|
7479
|
+
:resource_arn)
|
|
7480
|
+
SENSITIVE = []
|
|
7481
|
+
include Aws::Structure
|
|
7482
|
+
end
|
|
7483
|
+
|
|
7484
|
+
# @!attribute [rw] resource_policy
|
|
7485
|
+
# The JSON string representing the Bedrock resource policy.
|
|
7486
|
+
# @return [String]
|
|
7487
|
+
#
|
|
7488
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetResourcePolicyResponse AWS API Documentation
|
|
7489
|
+
#
|
|
7490
|
+
class GetResourcePolicyResponse < Struct.new(
|
|
7491
|
+
:resource_policy)
|
|
7492
|
+
SENSITIVE = []
|
|
7493
|
+
include Aws::Structure
|
|
7494
|
+
end
|
|
7495
|
+
|
|
7449
7496
|
# @api private
|
|
7450
7497
|
#
|
|
7451
7498
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetUseCaseForModelAccessRequest AWS API Documentation
|
|
@@ -11958,6 +12005,37 @@ module Aws::Bedrock
|
|
|
11958
12005
|
#
|
|
11959
12006
|
class PutModelInvocationLoggingConfigurationResponse < Aws::EmptyStructure; end
|
|
11960
12007
|
|
|
12008
|
+
# @!attribute [rw] resource_arn
|
|
12009
|
+
# The ARN of the Bedrock resource to which this resource policy
|
|
12010
|
+
# applies.
|
|
12011
|
+
# @return [String]
|
|
12012
|
+
#
|
|
12013
|
+
# @!attribute [rw] resource_policy
|
|
12014
|
+
# The JSON string representing the Bedrock resource policy.
|
|
12015
|
+
# @return [String]
|
|
12016
|
+
#
|
|
12017
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutResourcePolicyRequest AWS API Documentation
|
|
12018
|
+
#
|
|
12019
|
+
class PutResourcePolicyRequest < Struct.new(
|
|
12020
|
+
:resource_arn,
|
|
12021
|
+
:resource_policy)
|
|
12022
|
+
SENSITIVE = []
|
|
12023
|
+
include Aws::Structure
|
|
12024
|
+
end
|
|
12025
|
+
|
|
12026
|
+
# @!attribute [rw] resource_arn
|
|
12027
|
+
# The ARN of the Bedrock resource to which this resource policy
|
|
12028
|
+
# applies.
|
|
12029
|
+
# @return [String]
|
|
12030
|
+
#
|
|
12031
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutResourcePolicyResponse AWS API Documentation
|
|
12032
|
+
#
|
|
12033
|
+
class PutResourcePolicyResponse < Struct.new(
|
|
12034
|
+
:resource_arn)
|
|
12035
|
+
SENSITIVE = []
|
|
12036
|
+
include Aws::Structure
|
|
12037
|
+
end
|
|
12038
|
+
|
|
11961
12039
|
# @!attribute [rw] form_data
|
|
11962
12040
|
# Put customer profile Request.
|
|
11963
12041
|
# @return [String]
|
|
@@ -12642,6 +12720,25 @@ module Aws::Bedrock
|
|
|
12642
12720
|
include Aws::Structure
|
|
12643
12721
|
end
|
|
12644
12722
|
|
|
12723
|
+
# Selective content guarding controls for enforced guardrails.
|
|
12724
|
+
#
|
|
12725
|
+
# @!attribute [rw] system
|
|
12726
|
+
# Selective guarding mode for system prompts."
|
|
12727
|
+
# @return [String]
|
|
12728
|
+
#
|
|
12729
|
+
# @!attribute [rw] messages
|
|
12730
|
+
# Selective guarding mode for user messages.
|
|
12731
|
+
# @return [String]
|
|
12732
|
+
#
|
|
12733
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/SelectiveContentGuarding AWS API Documentation
|
|
12734
|
+
#
|
|
12735
|
+
class SelectiveContentGuarding < Struct.new(
|
|
12736
|
+
:system,
|
|
12737
|
+
:messages)
|
|
12738
|
+
SENSITIVE = []
|
|
12739
|
+
include Aws::Structure
|
|
12740
|
+
end
|
|
12741
|
+
|
|
12645
12742
|
# The number of requests exceeds the service quota. Resubmit your
|
|
12646
12743
|
# request later.
|
|
12647
12744
|
#
|
data/lib/aws-sdk-bedrock.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -1205,6 +1205,15 @@ module Aws
|
|
|
1205
1205
|
) -> _DeleteProvisionedModelThroughputResponseSuccess
|
|
1206
1206
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteProvisionedModelThroughputResponseSuccess
|
|
1207
1207
|
|
|
1208
|
+
interface _DeleteResourcePolicyResponseSuccess
|
|
1209
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteResourcePolicyResponse]
|
|
1210
|
+
end
|
|
1211
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#delete_resource_policy-instance_method
|
|
1212
|
+
def delete_resource_policy: (
|
|
1213
|
+
resource_arn: ::String
|
|
1214
|
+
) -> _DeleteResourcePolicyResponseSuccess
|
|
1215
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteResourcePolicyResponseSuccess
|
|
1216
|
+
|
|
1208
1217
|
interface _DeregisterMarketplaceModelEndpointResponseSuccess
|
|
1209
1218
|
include ::Seahorse::Client::_ResponseSuccess[Types::DeregisterMarketplaceModelEndpointResponse]
|
|
1210
1219
|
end
|
|
@@ -1649,6 +1658,16 @@ module Aws
|
|
|
1649
1658
|
) -> _GetProvisionedModelThroughputResponseSuccess
|
|
1650
1659
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetProvisionedModelThroughputResponseSuccess
|
|
1651
1660
|
|
|
1661
|
+
interface _GetResourcePolicyResponseSuccess
|
|
1662
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcePolicyResponse]
|
|
1663
|
+
def resource_policy: () -> ::String
|
|
1664
|
+
end
|
|
1665
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_resource_policy-instance_method
|
|
1666
|
+
def get_resource_policy: (
|
|
1667
|
+
resource_arn: ::String
|
|
1668
|
+
) -> _GetResourcePolicyResponseSuccess
|
|
1669
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
|
|
1670
|
+
|
|
1652
1671
|
interface _GetUseCaseForModelAccessResponseSuccess
|
|
1653
1672
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetUseCaseForModelAccessResponse]
|
|
1654
1673
|
def form_data: () -> ::String
|
|
@@ -1990,7 +2009,10 @@ module Aws
|
|
|
1990
2009
|
guardrail_inference_config: {
|
|
1991
2010
|
guardrail_identifier: ::String,
|
|
1992
2011
|
guardrail_version: ::String,
|
|
1993
|
-
|
|
2012
|
+
selective_content_guarding: {
|
|
2013
|
+
system: ("SELECTIVE" | "COMPREHENSIVE")?,
|
|
2014
|
+
messages: ("SELECTIVE" | "COMPREHENSIVE")?
|
|
2015
|
+
}?,
|
|
1994
2016
|
model_enforcement: {
|
|
1995
2017
|
included_models: Array[::String],
|
|
1996
2018
|
excluded_models: Array[::String]
|
|
@@ -2026,6 +2048,17 @@ module Aws
|
|
|
2026
2048
|
) -> _PutModelInvocationLoggingConfigurationResponseSuccess
|
|
2027
2049
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutModelInvocationLoggingConfigurationResponseSuccess
|
|
2028
2050
|
|
|
2051
|
+
interface _PutResourcePolicyResponseSuccess
|
|
2052
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyResponse]
|
|
2053
|
+
def resource_arn: () -> ::String
|
|
2054
|
+
end
|
|
2055
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#put_resource_policy-instance_method
|
|
2056
|
+
def put_resource_policy: (
|
|
2057
|
+
resource_arn: ::String,
|
|
2058
|
+
resource_policy: ::String
|
|
2059
|
+
) -> _PutResourcePolicyResponseSuccess
|
|
2060
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutResourcePolicyResponseSuccess
|
|
2061
|
+
|
|
2029
2062
|
interface _PutUseCaseForModelAccessResponseSuccess
|
|
2030
2063
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutUseCaseForModelAccessResponse]
|
|
2031
2064
|
end
|
data/sig/types.rbs
CHANGED
|
@@ -16,7 +16,7 @@ module Aws::Bedrock
|
|
|
16
16
|
class AccountEnforcedGuardrailInferenceInputConfiguration
|
|
17
17
|
attr_accessor guardrail_identifier: ::String
|
|
18
18
|
attr_accessor guardrail_version: ::String
|
|
19
|
-
attr_accessor
|
|
19
|
+
attr_accessor selective_content_guarding: Types::SelectiveContentGuarding
|
|
20
20
|
attr_accessor model_enforcement: Types::ModelEnforcement
|
|
21
21
|
SENSITIVE: []
|
|
22
22
|
end
|
|
@@ -26,6 +26,7 @@ module Aws::Bedrock
|
|
|
26
26
|
attr_accessor guardrail_arn: ::String
|
|
27
27
|
attr_accessor guardrail_id: ::String
|
|
28
28
|
attr_accessor input_tags: ("HONOR" | "IGNORE")
|
|
29
|
+
attr_accessor selective_content_guarding: Types::SelectiveContentGuarding
|
|
29
30
|
attr_accessor guardrail_version: ::String
|
|
30
31
|
attr_accessor created_at: ::Time
|
|
31
32
|
attr_accessor created_by: ::String
|
|
@@ -1318,6 +1319,14 @@ module Aws::Bedrock
|
|
|
1318
1319
|
class DeleteProvisionedModelThroughputResponse < Aws::EmptyStructure
|
|
1319
1320
|
end
|
|
1320
1321
|
|
|
1322
|
+
class DeleteResourcePolicyRequest
|
|
1323
|
+
attr_accessor resource_arn: ::String
|
|
1324
|
+
SENSITIVE: []
|
|
1325
|
+
end
|
|
1326
|
+
|
|
1327
|
+
class DeleteResourcePolicyResponse < Aws::EmptyStructure
|
|
1328
|
+
end
|
|
1329
|
+
|
|
1321
1330
|
class DeregisterMarketplaceModelEndpointRequest
|
|
1322
1331
|
attr_accessor endpoint_arn: ::String
|
|
1323
1332
|
SENSITIVE: []
|
|
@@ -2014,6 +2023,16 @@ module Aws::Bedrock
|
|
|
2014
2023
|
SENSITIVE: []
|
|
2015
2024
|
end
|
|
2016
2025
|
|
|
2026
|
+
class GetResourcePolicyRequest
|
|
2027
|
+
attr_accessor resource_arn: ::String
|
|
2028
|
+
SENSITIVE: []
|
|
2029
|
+
end
|
|
2030
|
+
|
|
2031
|
+
class GetResourcePolicyResponse
|
|
2032
|
+
attr_accessor resource_policy: ::String
|
|
2033
|
+
SENSITIVE: []
|
|
2034
|
+
end
|
|
2035
|
+
|
|
2017
2036
|
class GetUseCaseForModelAccessRequest < Aws::EmptyStructure
|
|
2018
2037
|
end
|
|
2019
2038
|
|
|
@@ -3012,6 +3031,17 @@ module Aws::Bedrock
|
|
|
3012
3031
|
class PutModelInvocationLoggingConfigurationResponse < Aws::EmptyStructure
|
|
3013
3032
|
end
|
|
3014
3033
|
|
|
3034
|
+
class PutResourcePolicyRequest
|
|
3035
|
+
attr_accessor resource_arn: ::String
|
|
3036
|
+
attr_accessor resource_policy: ::String
|
|
3037
|
+
SENSITIVE: []
|
|
3038
|
+
end
|
|
3039
|
+
|
|
3040
|
+
class PutResourcePolicyResponse
|
|
3041
|
+
attr_accessor resource_arn: ::String
|
|
3042
|
+
SENSITIVE: []
|
|
3043
|
+
end
|
|
3044
|
+
|
|
3015
3045
|
class PutUseCaseForModelAccessRequest
|
|
3016
3046
|
attr_accessor form_data: ::String
|
|
3017
3047
|
SENSITIVE: []
|
|
@@ -3228,6 +3258,12 @@ module Aws::Bedrock
|
|
|
3228
3258
|
SENSITIVE: []
|
|
3229
3259
|
end
|
|
3230
3260
|
|
|
3261
|
+
class SelectiveContentGuarding
|
|
3262
|
+
attr_accessor system: ("SELECTIVE" | "COMPREHENSIVE")
|
|
3263
|
+
attr_accessor messages: ("SELECTIVE" | "COMPREHENSIVE")
|
|
3264
|
+
SENSITIVE: []
|
|
3265
|
+
end
|
|
3266
|
+
|
|
3231
3267
|
class ServiceQuotaExceededException
|
|
3232
3268
|
attr_accessor message: ::String
|
|
3233
3269
|
SENSITIVE: []
|