aws-sdk-bedrock 1.88.0 → 1.89.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3580fa914665d1d9840b701f0e297881daf038e3761c4cf698ac8a18e8fee1a6
4
- data.tar.gz: 4127f6bb34a89421a6879f76889b289535944fb7eda70f3ff9af9ccb849ef2ac
3
+ metadata.gz: 3f3821900950bcf786a492730fda9604d85495315f18d095ac0471e1f291ccc2
4
+ data.tar.gz: 0bb75cd86896be712c37c2e9f48e78a5b1666282ce28038f9895a89cbbf5f818
5
5
  SHA512:
6
- metadata.gz: 7979a88caf9166147ac7af18c38a5455d8fb814d81314a39609bf8e2df82de13a839529ef03f5f638f7ed2a9d22b3421c967d50d158acb3bf5a3c4d3cfc3a1ae
7
- data.tar.gz: ddb507e6e199d1501aa06d2141045a7e96c593483f35e29b8382932f454041cd72fced20044d62ea59db5b833fbaa6e19a712290ecc433a324401fba1a5a7d07
6
+ metadata.gz: 52f1fc4f1c678f24fba75546e07e59b67f1875de28d77133be5e176db21ec8c29f747f62acaf00fe160737c2bcb51a4c3e9a4cb623852b03829d434c0ee57194
7
+ data.tar.gz: 7764294250c85344a17ab0628892812a1349e18b5760a9cdda630e3bd0fb4e3ba85a9c2d734af68988c35940d39670947358ca01fe29403dcedd2f9d8ff5e97c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.89.0 (2026-06-09)
5
+ ------------------
6
+
7
+ * Feature - Adds support for the Amazon Bedrock account-level data retention APIs PutAccountDataRetention and GetAccountDataRetention.
8
+
4
9
  1.88.0 (2026-05-29)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.88.0
1
+ 1.89.0
@@ -3429,6 +3429,27 @@ module Aws::Bedrock
3429
3429
  req.send_request(options)
3430
3430
  end
3431
3431
 
3432
+ # Returns the account-wide data retention mode for Amazon Bedrock.
3433
+ #
3434
+ # @return [Types::GetAccountDataRetentionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3435
+ #
3436
+ # * {Types::GetAccountDataRetentionResponse#mode #mode} => String
3437
+ # * {Types::GetAccountDataRetentionResponse#updated_at #updated_at} => Time
3438
+ #
3439
+ # @example Response structure
3440
+ #
3441
+ # resp.mode #=> String, one of "default", "none", "provider_data_share", "inherit"
3442
+ # resp.updated_at #=> Time
3443
+ #
3444
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAccountDataRetention AWS API Documentation
3445
+ #
3446
+ # @overload get_account_data_retention(params = {})
3447
+ # @param [Hash] params ({})
3448
+ def get_account_data_retention(params = {}, options = {})
3449
+ req = build_request(:get_account_data_retention, params)
3450
+ req.send_request(options)
3451
+ end
3452
+
3432
3453
  # Gets information about an advanced prompt optimization job.
3433
3454
  #
3434
3455
  # @option params [required, String] :job_identifier
@@ -7027,6 +7048,36 @@ module Aws::Bedrock
7027
7048
  req.send_request(options)
7028
7049
  end
7029
7050
 
7051
+ # Sets the account-wide data retention mode for Amazon Bedrock.
7052
+ #
7053
+ # @option params [required, String] :mode
7054
+ # The data retention mode to set for the account.
7055
+ #
7056
+ # @return [Types::PutAccountDataRetentionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7057
+ #
7058
+ # * {Types::PutAccountDataRetentionResponse#mode #mode} => String
7059
+ # * {Types::PutAccountDataRetentionResponse#updated_at #updated_at} => Time
7060
+ #
7061
+ # @example Request syntax with placeholder values
7062
+ #
7063
+ # resp = client.put_account_data_retention({
7064
+ # mode: "default", # required, accepts default, none, provider_data_share, inherit
7065
+ # })
7066
+ #
7067
+ # @example Response structure
7068
+ #
7069
+ # resp.mode #=> String, one of "default", "none", "provider_data_share", "inherit"
7070
+ # resp.updated_at #=> Time
7071
+ #
7072
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutAccountDataRetention AWS API Documentation
7073
+ #
7074
+ # @overload put_account_data_retention(params = {})
7075
+ # @param [Hash] params ({})
7076
+ def put_account_data_retention(params = {}, options = {})
7077
+ req = build_request(:put_account_data_retention, params)
7078
+ req.send_request(options)
7079
+ end
7080
+
7030
7081
  # Sets the account-level enforced guardrail configuration.
7031
7082
  #
7032
7083
  # @option params [String] :config_id
@@ -8295,7 +8346,7 @@ module Aws::Bedrock
8295
8346
  tracer: tracer
8296
8347
  )
8297
8348
  context[:gem_name] = 'aws-sdk-bedrock'
8298
- context[:gem_version] = '1.88.0'
8349
+ context[:gem_version] = '1.89.0'
8299
8350
  Seahorse::Client::Request.new(handlers, context)
8300
8351
  end
8301
8352
 
@@ -316,6 +316,7 @@ module Aws::Bedrock
316
316
  CustomizationConfig = Shapes::UnionShape.new(name: 'CustomizationConfig')
317
317
  CustomizationType = Shapes::StringShape.new(name: 'CustomizationType')
318
318
  DataProcessingDetails = Shapes::StructureShape.new(name: 'DataProcessingDetails')
319
+ DataRetentionMode = Shapes::StringShape.new(name: 'DataRetentionMode')
319
320
  DeleteAutomatedReasoningPolicyBuildWorkflowRequest = Shapes::StructureShape.new(name: 'DeleteAutomatedReasoningPolicyBuildWorkflowRequest')
320
321
  DeleteAutomatedReasoningPolicyBuildWorkflowResponse = Shapes::StructureShape.new(name: 'DeleteAutomatedReasoningPolicyBuildWorkflowResponse')
321
322
  DeleteAutomatedReasoningPolicyRequest = Shapes::StructureShape.new(name: 'DeleteAutomatedReasoningPolicyRequest')
@@ -424,6 +425,8 @@ module Aws::Bedrock
424
425
  FoundationModelSummary = Shapes::StructureShape.new(name: 'FoundationModelSummary')
425
426
  FoundationModelSummaryList = Shapes::ListShape.new(name: 'FoundationModelSummaryList')
426
427
  GenerationConfiguration = Shapes::StructureShape.new(name: 'GenerationConfiguration')
428
+ GetAccountDataRetentionRequest = Shapes::StructureShape.new(name: 'GetAccountDataRetentionRequest')
429
+ GetAccountDataRetentionResponse = Shapes::StructureShape.new(name: 'GetAccountDataRetentionResponse')
427
430
  GetAdvancedPromptOptimizationJobRequest = Shapes::StructureShape.new(name: 'GetAdvancedPromptOptimizationJobRequest')
428
431
  GetAdvancedPromptOptimizationJobResponse = Shapes::StructureShape.new(name: 'GetAdvancedPromptOptimizationJobResponse')
429
432
  GetAutomatedReasoningPolicyAnnotationsRequest = Shapes::StructureShape.new(name: 'GetAutomatedReasoningPolicyAnnotationsRequest')
@@ -773,6 +776,8 @@ module Aws::Bedrock
773
776
  ProvisionedModelStatus = Shapes::StringShape.new(name: 'ProvisionedModelStatus')
774
777
  ProvisionedModelSummaries = Shapes::ListShape.new(name: 'ProvisionedModelSummaries')
775
778
  ProvisionedModelSummary = Shapes::StructureShape.new(name: 'ProvisionedModelSummary')
779
+ PutAccountDataRetentionRequest = Shapes::StructureShape.new(name: 'PutAccountDataRetentionRequest')
780
+ PutAccountDataRetentionResponse = Shapes::StructureShape.new(name: 'PutAccountDataRetentionResponse')
776
781
  PutEnforcedGuardrailConfigurationRequest = Shapes::StructureShape.new(name: 'PutEnforcedGuardrailConfigurationRequest')
777
782
  PutEnforcedGuardrailConfigurationResponse = Shapes::StructureShape.new(name: 'PutEnforcedGuardrailConfigurationResponse')
778
783
  PutModelInvocationLoggingConfigurationRequest = Shapes::StructureShape.new(name: 'PutModelInvocationLoggingConfigurationRequest')
@@ -2214,6 +2219,12 @@ module Aws::Bedrock
2214
2219
  GenerationConfiguration.add_member(:additional_model_request_fields, Shapes::ShapeRef.new(shape: AdditionalModelRequestFields, location_name: "additionalModelRequestFields"))
2215
2220
  GenerationConfiguration.struct_class = Types::GenerationConfiguration
2216
2221
 
2222
+ GetAccountDataRetentionRequest.struct_class = Types::GetAccountDataRetentionRequest
2223
+
2224
+ GetAccountDataRetentionResponse.add_member(:mode, Shapes::ShapeRef.new(shape: DataRetentionMode, required: true, location_name: "mode"))
2225
+ GetAccountDataRetentionResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
2226
+ GetAccountDataRetentionResponse.struct_class = Types::GetAccountDataRetentionResponse
2227
+
2217
2228
  GetAdvancedPromptOptimizationJobRequest.add_member(:job_identifier, Shapes::ShapeRef.new(shape: AdvancedPromptOptimizationJobIdentifier, required: true, location: "uri", location_name: "jobIdentifier"))
2218
2229
  GetAdvancedPromptOptimizationJobRequest.struct_class = Types::GetAdvancedPromptOptimizationJobRequest
2219
2230
 
@@ -3392,6 +3403,13 @@ module Aws::Bedrock
3392
3403
  ProvisionedModelSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "lastModifiedTime"))
3393
3404
  ProvisionedModelSummary.struct_class = Types::ProvisionedModelSummary
3394
3405
 
3406
+ PutAccountDataRetentionRequest.add_member(:mode, Shapes::ShapeRef.new(shape: DataRetentionMode, required: true, location_name: "mode"))
3407
+ PutAccountDataRetentionRequest.struct_class = Types::PutAccountDataRetentionRequest
3408
+
3409
+ PutAccountDataRetentionResponse.add_member(:mode, Shapes::ShapeRef.new(shape: DataRetentionMode, required: true, location_name: "mode"))
3410
+ PutAccountDataRetentionResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "updatedAt"))
3411
+ PutAccountDataRetentionResponse.struct_class = Types::PutAccountDataRetentionResponse
3412
+
3395
3413
  PutEnforcedGuardrailConfigurationRequest.add_member(:config_id, Shapes::ShapeRef.new(shape: AccountEnforcedGuardrailConfigurationId, location_name: "configId"))
3396
3414
  PutEnforcedGuardrailConfigurationRequest.add_member(:guardrail_inference_config, Shapes::ShapeRef.new(shape: AccountEnforcedGuardrailInferenceInputConfiguration, required: true, location_name: "guardrailInferenceConfig"))
3397
3415
  PutEnforcedGuardrailConfigurationRequest.struct_class = Types::PutEnforcedGuardrailConfigurationRequest
@@ -4373,6 +4391,18 @@ module Aws::Bedrock
4373
4391
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
4374
4392
  end)
4375
4393
 
4394
+ api.add_operation(:get_account_data_retention, Seahorse::Model::Operation.new.tap do |o|
4395
+ o.name = "GetAccountDataRetention"
4396
+ o.http_method = "GET"
4397
+ o.http_request_uri = "/data-retention"
4398
+ o.input = Shapes::ShapeRef.new(shape: GetAccountDataRetentionRequest)
4399
+ o.output = Shapes::ShapeRef.new(shape: GetAccountDataRetentionResponse)
4400
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
4401
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
4402
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
4403
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
4404
+ end)
4405
+
4376
4406
  api.add_operation(:get_advanced_prompt_optimization_job, Seahorse::Model::Operation.new.tap do |o|
4377
4407
  o.name = "GetAdvancedPromptOptimizationJob"
4378
4408
  o.http_method = "GET"
@@ -5096,6 +5126,18 @@ module Aws::Bedrock
5096
5126
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
5097
5127
  end)
5098
5128
 
5129
+ api.add_operation(:put_account_data_retention, Seahorse::Model::Operation.new.tap do |o|
5130
+ o.name = "PutAccountDataRetention"
5131
+ o.http_method = "PUT"
5132
+ o.http_request_uri = "/data-retention"
5133
+ o.input = Shapes::ShapeRef.new(shape: PutAccountDataRetentionRequest)
5134
+ o.output = Shapes::ShapeRef.new(shape: PutAccountDataRetentionResponse)
5135
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
5136
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
5137
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
5138
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
5139
+ end)
5140
+
5099
5141
  api.add_operation(:put_enforced_guardrail_configuration, Seahorse::Model::Operation.new.tap do |o|
5100
5142
  o.name = "PutEnforcedGuardrailConfiguration"
5101
5143
  o.http_method = "PUT"
@@ -6033,6 +6033,29 @@ module Aws::Bedrock
6033
6033
  include Aws::Structure
6034
6034
  end
6035
6035
 
6036
+ # @api private
6037
+ #
6038
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAccountDataRetentionRequest AWS API Documentation
6039
+ #
6040
+ class GetAccountDataRetentionRequest < Aws::EmptyStructure; end
6041
+
6042
+ # @!attribute [rw] mode
6043
+ # The data retention mode configured for the account.
6044
+ # @return [String]
6045
+ #
6046
+ # @!attribute [rw] updated_at
6047
+ # The time at which the data retention mode was last updated.
6048
+ # @return [Time]
6049
+ #
6050
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAccountDataRetentionResponse AWS API Documentation
6051
+ #
6052
+ class GetAccountDataRetentionResponse < Struct.new(
6053
+ :mode,
6054
+ :updated_at)
6055
+ SENSITIVE = []
6056
+ include Aws::Structure
6057
+ end
6058
+
6036
6059
  # Get Advanced Prompt Optimization Job Request
6037
6060
  #
6038
6061
  # @!attribute [rw] job_identifier
@@ -12469,6 +12492,35 @@ module Aws::Bedrock
12469
12492
  include Aws::Structure
12470
12493
  end
12471
12494
 
12495
+ # @!attribute [rw] mode
12496
+ # The data retention mode to set for the account.
12497
+ # @return [String]
12498
+ #
12499
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutAccountDataRetentionRequest AWS API Documentation
12500
+ #
12501
+ class PutAccountDataRetentionRequest < Struct.new(
12502
+ :mode)
12503
+ SENSITIVE = []
12504
+ include Aws::Structure
12505
+ end
12506
+
12507
+ # @!attribute [rw] mode
12508
+ # The data retention mode set for the account.
12509
+ # @return [String]
12510
+ #
12511
+ # @!attribute [rw] updated_at
12512
+ # The time at which the data retention mode was last updated.
12513
+ # @return [Time]
12514
+ #
12515
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PutAccountDataRetentionResponse AWS API Documentation
12516
+ #
12517
+ class PutAccountDataRetentionResponse < Struct.new(
12518
+ :mode,
12519
+ :updated_at)
12520
+ SENSITIVE = []
12521
+ include Aws::Structure
12522
+ end
12523
+
12472
12524
  # @!attribute [rw] config_id
12473
12525
  # Unique ID for the account enforced configuration.
12474
12526
  # @return [String]
@@ -55,7 +55,7 @@ module Aws::Bedrock
55
55
  autoload :EndpointProvider, 'aws-sdk-bedrock/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-bedrock/endpoints'
57
57
 
58
- GEM_VERSION = '1.88.0'
58
+ GEM_VERSION = '1.89.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -924,6 +924,16 @@ module Aws
924
924
  ) -> _ExportAutomatedReasoningPolicyVersionResponseSuccess
925
925
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportAutomatedReasoningPolicyVersionResponseSuccess
926
926
 
927
+ interface _GetAccountDataRetentionResponseSuccess
928
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetAccountDataRetentionResponse]
929
+ def mode: () -> ("default" | "none" | "provider_data_share" | "inherit")
930
+ def updated_at: () -> ::Time
931
+ end
932
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#get_account_data_retention-instance_method
933
+ def get_account_data_retention: (
934
+ ) -> _GetAccountDataRetentionResponseSuccess
935
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAccountDataRetentionResponseSuccess
936
+
927
937
  interface _GetAdvancedPromptOptimizationJobResponseSuccess
928
938
  include ::Seahorse::Client::_ResponseSuccess[Types::GetAdvancedPromptOptimizationJobResponse]
929
939
  def job_arn: () -> ::String
@@ -1722,6 +1732,17 @@ module Aws
1722
1732
  ) -> _ListTagsForResourceResponseSuccess
1723
1733
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
1724
1734
 
1735
+ interface _PutAccountDataRetentionResponseSuccess
1736
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutAccountDataRetentionResponse]
1737
+ def mode: () -> ("default" | "none" | "provider_data_share" | "inherit")
1738
+ def updated_at: () -> ::Time
1739
+ end
1740
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Bedrock/Client.html#put_account_data_retention-instance_method
1741
+ def put_account_data_retention: (
1742
+ mode: ("default" | "none" | "provider_data_share" | "inherit")
1743
+ ) -> _PutAccountDataRetentionResponseSuccess
1744
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutAccountDataRetentionResponseSuccess
1745
+
1725
1746
  interface _PutEnforcedGuardrailConfigurationResponseSuccess
1726
1747
  include ::Seahorse::Client::_ResponseSuccess[Types::PutEnforcedGuardrailConfigurationResponse]
1727
1748
  def config_id: () -> ::String
data/sig/types.rbs CHANGED
@@ -1680,6 +1680,15 @@ module Aws::Bedrock
1680
1680
  SENSITIVE: []
1681
1681
  end
1682
1682
 
1683
+ class GetAccountDataRetentionRequest < Aws::EmptyStructure
1684
+ end
1685
+
1686
+ class GetAccountDataRetentionResponse
1687
+ attr_accessor mode: ("default" | "none" | "provider_data_share" | "inherit")
1688
+ attr_accessor updated_at: ::Time
1689
+ SENSITIVE: []
1690
+ end
1691
+
1683
1692
  class GetAdvancedPromptOptimizationJobRequest
1684
1693
  attr_accessor job_identifier: ::String
1685
1694
  SENSITIVE: []
@@ -3145,6 +3154,17 @@ module Aws::Bedrock
3145
3154
  SENSITIVE: []
3146
3155
  end
3147
3156
 
3157
+ class PutAccountDataRetentionRequest
3158
+ attr_accessor mode: ("default" | "none" | "provider_data_share" | "inherit")
3159
+ SENSITIVE: []
3160
+ end
3161
+
3162
+ class PutAccountDataRetentionResponse
3163
+ attr_accessor mode: ("default" | "none" | "provider_data_share" | "inherit")
3164
+ attr_accessor updated_at: ::Time
3165
+ SENSITIVE: []
3166
+ end
3167
+
3148
3168
  class PutEnforcedGuardrailConfigurationRequest
3149
3169
  attr_accessor config_id: ::String
3150
3170
  attr_accessor guardrail_inference_config: Types::AccountEnforcedGuardrailInferenceInputConfiguration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.88.0
4
+ version: 1.89.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services