aws-sdk-costoptimizationhub 1.25.0 → 1.26.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: 5e14ce6643769c97b35fbf2ad9efbb4cf6217b55b27eca57c9358d277e2d1277
4
- data.tar.gz: a9b53d25d16b4aec4cd914817da004efdec34660466dfc8b16208f79a3601f41
3
+ metadata.gz: f84b799c0a0065ddf51f92114290b4aff7796d474b9a3ccc007cf904e558fbb4
4
+ data.tar.gz: 75c4544076451a72e11c171e73d4b7ad86ac7d0152a91b6cd69fa241fcc9ee11
5
5
  SHA512:
6
- metadata.gz: 4be7e21dada302e5fefdd5e9e9a4f9957ff44ac442e7cda567e7d2416f79dae75ac5ca0cc5385352fff1a358b434d69fc937d7a40ade56935eb179890db8d0aa
7
- data.tar.gz: b8e03bc50a809105274a70d1473899a62900a65163fe8347651d49ca6c300db7d69809f54c7b231bfb4da07abc41b9e8bc40095aff490fd5ae9e16123edff88f
6
+ metadata.gz: 64204d8ffb604fbbbedab0efcaf5851012fe246e8a2aacbefd7d46319ce0e6dece223b0dfe2cc3d43a6b79c3c7290bfe768009f37fc69469803d4ae52349fb25
7
+ data.tar.gz: 92ece7d5ccd02c9fdd1ee73df3ffc608bf7c9bc6ae7e8f5094995c7d2aaeb4f0724dbb6dc6e84f40a41c3850b09f6f299c38377535800230b2aa36a16263435d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.26.0 (2025-05-28)
5
+ ------------------
6
+
7
+ * Feature - This release allows customers to modify their preferred commitment term and payment options.
8
+
4
9
  1.25.0 (2025-05-12)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.25.0
1
+ 1.26.0
@@ -486,11 +486,14 @@ module Aws::CostOptimizationHub
486
486
  #
487
487
  # * {Types::GetPreferencesResponse#savings_estimation_mode #savings_estimation_mode} => String
488
488
  # * {Types::GetPreferencesResponse#member_account_discount_visibility #member_account_discount_visibility} => String
489
+ # * {Types::GetPreferencesResponse#preferred_commitment #preferred_commitment} => Types::PreferredCommitment
489
490
  #
490
491
  # @example Response structure
491
492
  #
492
493
  # resp.savings_estimation_mode #=> String, one of "BeforeDiscounts", "AfterDiscounts"
493
494
  # resp.member_account_discount_visibility #=> String, one of "All", "None"
495
+ # resp.preferred_commitment.term #=> String, one of "OneYear", "ThreeYears"
496
+ # resp.preferred_commitment.payment_option #=> String, one of "AllUpfront", "PartialUpfront", "NoUpfront"
494
497
  #
495
498
  # @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/GetPreferences AWS API Documentation
496
499
  #
@@ -1371,22 +1374,34 @@ module Aws::CostOptimizationHub
1371
1374
  # @option params [String] :member_account_discount_visibility
1372
1375
  # Sets the "member account discount visibility" preference.
1373
1376
  #
1377
+ # @option params [Types::PreferredCommitment] :preferred_commitment
1378
+ # Sets the preferences for how Reserved Instances and Savings Plans
1379
+ # cost-saving opportunities are prioritized in terms of payment option
1380
+ # and term length.
1381
+ #
1374
1382
  # @return [Types::UpdatePreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1375
1383
  #
1376
1384
  # * {Types::UpdatePreferencesResponse#savings_estimation_mode #savings_estimation_mode} => String
1377
1385
  # * {Types::UpdatePreferencesResponse#member_account_discount_visibility #member_account_discount_visibility} => String
1386
+ # * {Types::UpdatePreferencesResponse#preferred_commitment #preferred_commitment} => Types::PreferredCommitment
1378
1387
  #
1379
1388
  # @example Request syntax with placeholder values
1380
1389
  #
1381
1390
  # resp = client.update_preferences({
1382
1391
  # savings_estimation_mode: "BeforeDiscounts", # accepts BeforeDiscounts, AfterDiscounts
1383
1392
  # member_account_discount_visibility: "All", # accepts All, None
1393
+ # preferred_commitment: {
1394
+ # term: "OneYear", # accepts OneYear, ThreeYears
1395
+ # payment_option: "AllUpfront", # accepts AllUpfront, PartialUpfront, NoUpfront
1396
+ # },
1384
1397
  # })
1385
1398
  #
1386
1399
  # @example Response structure
1387
1400
  #
1388
1401
  # resp.savings_estimation_mode #=> String, one of "BeforeDiscounts", "AfterDiscounts"
1389
1402
  # resp.member_account_discount_visibility #=> String, one of "All", "None"
1403
+ # resp.preferred_commitment.term #=> String, one of "OneYear", "ThreeYears"
1404
+ # resp.preferred_commitment.payment_option #=> String, one of "AllUpfront", "PartialUpfront", "NoUpfront"
1390
1405
  #
1391
1406
  # @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/UpdatePreferences AWS API Documentation
1392
1407
  #
@@ -1415,7 +1430,7 @@ module Aws::CostOptimizationHub
1415
1430
  tracer: tracer
1416
1431
  )
1417
1432
  context[:gem_name] = 'aws-sdk-costoptimizationhub'
1418
- context[:gem_version] = '1.25.0'
1433
+ context[:gem_version] = '1.26.0'
1419
1434
  Seahorse::Client::Request.new(handlers, context)
1420
1435
  end
1421
1436
 
@@ -79,6 +79,8 @@ module Aws::CostOptimizationHub
79
79
  OpenSearchReservedInstancesConfiguration = Shapes::StructureShape.new(name: 'OpenSearchReservedInstancesConfiguration')
80
80
  Order = Shapes::StringShape.new(name: 'Order')
81
81
  OrderBy = Shapes::StructureShape.new(name: 'OrderBy')
82
+ PaymentOption = Shapes::StringShape.new(name: 'PaymentOption')
83
+ PreferredCommitment = Shapes::StructureShape.new(name: 'PreferredCommitment')
82
84
  PrimitiveBoolean = Shapes::BooleanShape.new(name: 'PrimitiveBoolean')
83
85
  RdsDbInstance = Shapes::StructureShape.new(name: 'RdsDbInstance')
84
86
  RdsDbInstanceConfiguration = Shapes::StructureShape.new(name: 'RdsDbInstanceConfiguration')
@@ -117,6 +119,7 @@ module Aws::CostOptimizationHub
117
119
  SummaryMetricsResult = Shapes::StructureShape.new(name: 'SummaryMetricsResult')
118
120
  Tag = Shapes::StructureShape.new(name: 'Tag')
119
121
  TagList = Shapes::ListShape.new(name: 'TagList')
122
+ Term = Shapes::StringShape.new(name: 'Term')
120
123
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
121
124
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
122
125
  UpdateEnrollmentStatusRequest = Shapes::StructureShape.new(name: 'UpdateEnrollmentStatusRequest')
@@ -291,6 +294,7 @@ module Aws::CostOptimizationHub
291
294
 
292
295
  GetPreferencesResponse.add_member(:savings_estimation_mode, Shapes::ShapeRef.new(shape: SavingsEstimationMode, location_name: "savingsEstimationMode"))
293
296
  GetPreferencesResponse.add_member(:member_account_discount_visibility, Shapes::ShapeRef.new(shape: MemberAccountDiscountVisibility, location_name: "memberAccountDiscountVisibility"))
297
+ GetPreferencesResponse.add_member(:preferred_commitment, Shapes::ShapeRef.new(shape: PreferredCommitment, location_name: "preferredCommitment"))
294
298
  GetPreferencesResponse.struct_class = Types::GetPreferencesResponse
295
299
 
296
300
  GetRecommendationRequest.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "recommendationId"))
@@ -419,6 +423,10 @@ module Aws::CostOptimizationHub
419
423
  OrderBy.add_member(:order, Shapes::ShapeRef.new(shape: Order, location_name: "order"))
420
424
  OrderBy.struct_class = Types::OrderBy
421
425
 
426
+ PreferredCommitment.add_member(:term, Shapes::ShapeRef.new(shape: Term, location_name: "term"))
427
+ PreferredCommitment.add_member(:payment_option, Shapes::ShapeRef.new(shape: PaymentOption, location_name: "paymentOption"))
428
+ PreferredCommitment.struct_class = Types::PreferredCommitment
429
+
422
430
  RdsDbInstance.add_member(:configuration, Shapes::ShapeRef.new(shape: RdsDbInstanceConfiguration, location_name: "configuration"))
423
431
  RdsDbInstance.add_member(:cost_calculation, Shapes::ShapeRef.new(shape: ResourceCostCalculation, location_name: "costCalculation"))
424
432
  RdsDbInstance.struct_class = Types::RdsDbInstance
@@ -627,10 +635,12 @@ module Aws::CostOptimizationHub
627
635
 
628
636
  UpdatePreferencesRequest.add_member(:savings_estimation_mode, Shapes::ShapeRef.new(shape: SavingsEstimationMode, location_name: "savingsEstimationMode"))
629
637
  UpdatePreferencesRequest.add_member(:member_account_discount_visibility, Shapes::ShapeRef.new(shape: MemberAccountDiscountVisibility, location_name: "memberAccountDiscountVisibility"))
638
+ UpdatePreferencesRequest.add_member(:preferred_commitment, Shapes::ShapeRef.new(shape: PreferredCommitment, location_name: "preferredCommitment"))
630
639
  UpdatePreferencesRequest.struct_class = Types::UpdatePreferencesRequest
631
640
 
632
641
  UpdatePreferencesResponse.add_member(:savings_estimation_mode, Shapes::ShapeRef.new(shape: SavingsEstimationMode, location_name: "savingsEstimationMode"))
633
642
  UpdatePreferencesResponse.add_member(:member_account_discount_visibility, Shapes::ShapeRef.new(shape: MemberAccountDiscountVisibility, location_name: "memberAccountDiscountVisibility"))
643
+ UpdatePreferencesResponse.add_member(:preferred_commitment, Shapes::ShapeRef.new(shape: PreferredCommitment, location_name: "preferredCommitment"))
634
644
  UpdatePreferencesResponse.struct_class = Types::UpdatePreferencesResponse
635
645
 
636
646
  Usage.add_member(:usage_type, Shapes::ShapeRef.new(shape: String, location_name: "usageType"))
@@ -795,11 +795,18 @@ module Aws::CostOptimizationHub
795
795
  # preference.
796
796
  # @return [String]
797
797
  #
798
+ # @!attribute [rw] preferred_commitment
799
+ # Retrieves the current preferences for how Reserved Instances and
800
+ # Savings Plans cost-saving opportunities are prioritized in terms of
801
+ # payment option and term length.
802
+ # @return [Types::PreferredCommitment]
803
+ #
798
804
  # @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/GetPreferencesResponse AWS API Documentation
799
805
  #
800
806
  class GetPreferencesResponse < Struct.new(
801
807
  :savings_estimation_mode,
802
- :member_account_discount_visibility)
808
+ :member_account_discount_visibility,
809
+ :preferred_commitment)
803
810
  SENSITIVE = []
804
811
  include Aws::Structure
805
812
  end
@@ -1184,8 +1191,9 @@ module Aws::CostOptimizationHub
1184
1191
 
1185
1192
  # The MemoryDB reserved instances recommendation details.
1186
1193
  #
1187
- # <note markdown="1"> MemoryDB reserved instances are referred to as "MemoryDB reserved
1188
- # nodes" in customer-facing documentation.
1194
+ # <note markdown="1"> While the API reference uses "MemoryDB reserved instances", the user
1195
+ # guide and other documentation refer to them as "MemoryDB reserved
1196
+ # nodes", as the terms are used interchangeably.
1189
1197
  #
1190
1198
  # </note>
1191
1199
  #
@@ -1210,8 +1218,9 @@ module Aws::CostOptimizationHub
1210
1218
  # The MemoryDB reserved instances configuration used for
1211
1219
  # recommendations.
1212
1220
  #
1213
- # <note markdown="1"> MemoryDB reserved instances are referred to as "MemoryDB reserved
1214
- # nodes" in customer-facing documentation.
1221
+ # <note markdown="1"> While the API reference uses "MemoryDB reserved instances", the user
1222
+ # guide and other documentation refer to them as "MemoryDB reserved
1223
+ # nodes", as the terms are used interchangeably.
1215
1224
  #
1216
1225
  # </note>
1217
1226
  #
@@ -1419,6 +1428,30 @@ module Aws::CostOptimizationHub
1419
1428
  include Aws::Structure
1420
1429
  end
1421
1430
 
1431
+ # The preferred configuration for Reserved Instances and Savings Plans
1432
+ # commitment-based discounts, consisting of a payment option and a
1433
+ # commitment duration.
1434
+ #
1435
+ # @!attribute [rw] term
1436
+ # The preferred length of the commitment period. If the value is null,
1437
+ # it will default to `ThreeYears` (highest savings) where applicable.
1438
+ # @return [String]
1439
+ #
1440
+ # @!attribute [rw] payment_option
1441
+ # The preferred upfront payment structure for commitments. If the
1442
+ # value is null, it will default to `AllUpfront` (highest savings)
1443
+ # where applicable.
1444
+ # @return [String]
1445
+ #
1446
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/PreferredCommitment AWS API Documentation
1447
+ #
1448
+ class PreferredCommitment < Struct.new(
1449
+ :term,
1450
+ :payment_option)
1451
+ SENSITIVE = []
1452
+ include Aws::Structure
1453
+ end
1454
+
1422
1455
  # Contains the details of an Amazon RDS DB instance.
1423
1456
  #
1424
1457
  # @!attribute [rw] configuration
@@ -2299,11 +2332,18 @@ module Aws::CostOptimizationHub
2299
2332
  # Sets the "member account discount visibility" preference.
2300
2333
  # @return [String]
2301
2334
  #
2335
+ # @!attribute [rw] preferred_commitment
2336
+ # Sets the preferences for how Reserved Instances and Savings Plans
2337
+ # cost-saving opportunities are prioritized in terms of payment option
2338
+ # and term length.
2339
+ # @return [Types::PreferredCommitment]
2340
+ #
2302
2341
  # @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/UpdatePreferencesRequest AWS API Documentation
2303
2342
  #
2304
2343
  class UpdatePreferencesRequest < Struct.new(
2305
2344
  :savings_estimation_mode,
2306
- :member_account_discount_visibility)
2345
+ :member_account_discount_visibility,
2346
+ :preferred_commitment)
2307
2347
  SENSITIVE = []
2308
2348
  include Aws::Structure
2309
2349
  end
@@ -2317,11 +2357,18 @@ module Aws::CostOptimizationHub
2317
2357
  # preference.
2318
2358
  # @return [String]
2319
2359
  #
2360
+ # @!attribute [rw] preferred_commitment
2361
+ # Shows the updated preferences for how Reserved Instances and Savings
2362
+ # Plans cost-saving opportunities are prioritized in terms of payment
2363
+ # option and term length.
2364
+ # @return [Types::PreferredCommitment]
2365
+ #
2320
2366
  # @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/UpdatePreferencesResponse AWS API Documentation
2321
2367
  #
2322
2368
  class UpdatePreferencesResponse < Struct.new(
2323
2369
  :savings_estimation_mode,
2324
- :member_account_discount_visibility)
2370
+ :member_account_discount_visibility,
2371
+ :preferred_commitment)
2325
2372
  SENSITIVE = []
2326
2373
  include Aws::Structure
2327
2374
  end
@@ -55,7 +55,7 @@ module Aws::CostOptimizationHub
55
55
  autoload :EndpointProvider, 'aws-sdk-costoptimizationhub/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-costoptimizationhub/endpoints'
57
57
 
58
- GEM_VERSION = '1.25.0'
58
+ GEM_VERSION = '1.26.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -82,6 +82,7 @@ module Aws
82
82
  include ::Seahorse::Client::_ResponseSuccess[Types::GetPreferencesResponse]
83
83
  def savings_estimation_mode: () -> ("BeforeDiscounts" | "AfterDiscounts")
84
84
  def member_account_discount_visibility: () -> ("All" | "None")
85
+ def preferred_commitment: () -> Types::PreferredCommitment
85
86
  end
86
87
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#get_preferences-instance_method
87
88
  def get_preferences: (
@@ -221,11 +222,16 @@ module Aws
221
222
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdatePreferencesResponse]
222
223
  def savings_estimation_mode: () -> ("BeforeDiscounts" | "AfterDiscounts")
223
224
  def member_account_discount_visibility: () -> ("All" | "None")
225
+ def preferred_commitment: () -> Types::PreferredCommitment
224
226
  end
225
227
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CostOptimizationHub/Client.html#update_preferences-instance_method
226
228
  def update_preferences: (
227
229
  ?savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts"),
228
- ?member_account_discount_visibility: ("All" | "None")
230
+ ?member_account_discount_visibility: ("All" | "None"),
231
+ ?preferred_commitment: {
232
+ term: ("OneYear" | "ThreeYears")?,
233
+ payment_option: ("AllUpfront" | "PartialUpfront" | "NoUpfront")?
234
+ }
229
235
  ) -> _UpdatePreferencesResponseSuccess
230
236
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePreferencesResponseSuccess
231
237
  end
data/sig/types.rbs CHANGED
@@ -215,6 +215,7 @@ module Aws::CostOptimizationHub
215
215
  class GetPreferencesResponse
216
216
  attr_accessor savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
217
217
  attr_accessor member_account_discount_visibility: ("All" | "None")
218
+ attr_accessor preferred_commitment: Types::PreferredCommitment
218
219
  SENSITIVE: []
219
220
  end
220
221
 
@@ -376,6 +377,12 @@ module Aws::CostOptimizationHub
376
377
  SENSITIVE: []
377
378
  end
378
379
 
380
+ class PreferredCommitment
381
+ attr_accessor term: ("OneYear" | "ThreeYears")
382
+ attr_accessor payment_option: ("AllUpfront" | "PartialUpfront" | "NoUpfront")
383
+ SENSITIVE: []
384
+ end
385
+
379
386
  class RdsDbInstance
380
387
  attr_accessor configuration: Types::RdsDbInstanceConfiguration
381
388
  attr_accessor cost_calculation: Types::ResourceCostCalculation
@@ -638,12 +645,14 @@ module Aws::CostOptimizationHub
638
645
  class UpdatePreferencesRequest
639
646
  attr_accessor savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
640
647
  attr_accessor member_account_discount_visibility: ("All" | "None")
648
+ attr_accessor preferred_commitment: Types::PreferredCommitment
641
649
  SENSITIVE: []
642
650
  end
643
651
 
644
652
  class UpdatePreferencesResponse
645
653
  attr_accessor savings_estimation_mode: ("BeforeDiscounts" | "AfterDiscounts")
646
654
  attr_accessor member_account_discount_visibility: ("All" | "None")
655
+ attr_accessor preferred_commitment: Types::PreferredCommitment
647
656
  SENSITIVE: []
648
657
  end
649
658
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-costoptimizationhub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services