aws-sdk-savingsplans 1.38.0 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1162295e9f597076d8cf1416512e6011454a02756cc03320ab6726966c36c423
4
- data.tar.gz: ba552d0857c3523c6ca6f23a6df9e4aa57d8425cfa7f278cad0770b4c5812f94
3
+ metadata.gz: 2d92b8d4b25734c04293ad0e0883dbbfb3fd747f83c6cbff80a719a1cacee75e
4
+ data.tar.gz: 842efd2ef6bd07f3897f694de0df118ac7526e58d876de7be3a69a23e93c3e03
5
5
  SHA512:
6
- metadata.gz: e52b5549294b5e5cdd052f56d62440ed76ee4f96a5b92a37b4a0d86595147505751a8ee32b53a38a31c20ef6e77414b1d1d5e1703b7bebbfc5078febf4b94321
7
- data.tar.gz: d199048343d7b27259c3c00e8467f3eb91ef4888a119b1db49ca2a9743681a629f2755e79eb2fb1230c70b525d11ab78afc596b2ca22ab24de0397535b444210
6
+ metadata.gz: afc35e188dc62e8c02626f33721b4f5f73db5d062f050d2bd9c9b4aa59a7d830b4f6337c8e64e552d52b320436a728c8962d018ce4830670b3cf7732a60c428c
7
+ data.tar.gz: ec9bcc746ed07ad90dde35659bf60301d7ab722aec0693b95f38bd25252518983aea2aafb5f832de8fbd22d18a19ca14c133d4079bdb6e5e55db04b51eb336c6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.39.0 (2024-03-20)
5
+ ------------------
6
+
7
+ * Feature - Introducing the Savings Plans Return feature enabling customers to return their Savings Plans within 7 days of purchase.
8
+
4
9
  1.38.0 (2024-01-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.38.0
1
+ 1.39.0
@@ -394,21 +394,21 @@ module Aws::SavingsPlans
394
394
  # The ID of the offering.
395
395
  #
396
396
  # @option params [required, String] :commitment
397
- # The hourly commitment, in USD. This is a value between 0.001 and 1
398
- # million. You cannot specify more than five digits after the decimal
399
- # point.
397
+ # The hourly commitment, in the same currency of the
398
+ # `savingsPlanOfferingId`. This is a value between 0.001 and 1 million.
399
+ # You cannot specify more than five digits after the decimal point.
400
400
  #
401
401
  # @option params [String] :upfront_payment_amount
402
402
  # The up-front payment amount. This is a whole number between 50 and 99
403
- # percent of the total value of the Savings Plan. This parameter is
404
- # supported only if the payment option is `Partial Upfront`.
403
+ # percent of the total value of the Savings Plan. This parameter is only
404
+ # supported if the payment option is `Partial Upfront`.
405
405
  #
406
406
  # @option params [Time,DateTime,Date,Integer,String] :purchase_time
407
- # The time at which to purchase the Savings Plan, in UTC format
407
+ # The purchase time of the Savings Plan in UTC format
408
408
  # (YYYY-MM-DDTHH:MM:SSZ).
409
409
  #
410
410
  # @option params [String] :client_token
411
- # Unique, case-sensitive identifier that you provide to ensure the
411
+ # A unique, case-sensitive identifier that you provide to ensure the
412
412
  # idempotency of the request.
413
413
  #
414
414
  # **A suitable default value is auto-generated.** You should normally
@@ -469,7 +469,7 @@ module Aws::SavingsPlans
469
469
  req.send_request(options)
470
470
  end
471
471
 
472
- # Describes the specified Savings Plans rates.
472
+ # Describes the rates for the specified Savings Plan.
473
473
  #
474
474
  # @option params [required, String] :savings_plan_id
475
475
  # The ID of the Savings Plan.
@@ -547,7 +547,7 @@ module Aws::SavingsPlans
547
547
  # value.
548
548
  #
549
549
  # @option params [Array<String>] :states
550
- # The states.
550
+ # The current states of the Savings Plans.
551
551
  #
552
552
  # @option params [Array<Types::SavingsPlanFilter>] :filters
553
553
  # The filters.
@@ -564,7 +564,7 @@ module Aws::SavingsPlans
564
564
  # savings_plan_ids: ["SavingsPlanId"],
565
565
  # next_token: "PaginationToken",
566
566
  # max_results: 1,
567
- # states: ["payment-pending"], # accepts payment-pending, payment-failed, active, retired, queued, queued-deleted
567
+ # states: ["payment-pending"], # accepts payment-pending, payment-failed, active, retired, queued, queued-deleted, pending-return, returned
568
568
  # filters: [
569
569
  # {
570
570
  # name: "region", # accepts region, ec2-instance-family, commitment, upfront, term, savings-plan-type, payment-option, start, end
@@ -582,7 +582,7 @@ module Aws::SavingsPlans
582
582
  # resp.savings_plans[0].description #=> String
583
583
  # resp.savings_plans[0].start #=> String
584
584
  # resp.savings_plans[0].end #=> String
585
- # resp.savings_plans[0].state #=> String, one of "payment-pending", "payment-failed", "active", "retired", "queued", "queued-deleted"
585
+ # resp.savings_plans[0].state #=> String, one of "payment-pending", "payment-failed", "active", "retired", "queued", "queued-deleted", "pending-return", "returned"
586
586
  # resp.savings_plans[0].region #=> String
587
587
  # resp.savings_plans[0].ec2_instance_family #=> String
588
588
  # resp.savings_plans[0].savings_plan_type #=> String, one of "Compute", "EC2Instance", "SageMaker"
@@ -596,6 +596,7 @@ module Aws::SavingsPlans
596
596
  # resp.savings_plans[0].term_duration_in_seconds #=> Integer
597
597
  # resp.savings_plans[0].tags #=> Hash
598
598
  # resp.savings_plans[0].tags["TagKey"] #=> String
599
+ # resp.savings_plans[0].returnable_until #=> String
599
600
  # resp.next_token #=> String
600
601
  #
601
602
  # @see http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlans AWS API Documentation
@@ -607,7 +608,7 @@ module Aws::SavingsPlans
607
608
  req.send_request(options)
608
609
  end
609
610
 
610
- # Describes the specified Savings Plans offering rates.
611
+ # Describes the offering rates for the specified Savings Plans.
611
612
  #
612
613
  # @option params [Array<String>] :savings_plan_offering_ids
613
614
  # The IDs of the offerings.
@@ -619,7 +620,7 @@ module Aws::SavingsPlans
619
620
  # The plan types.
620
621
  #
621
622
  # @option params [Array<String>] :products
622
- # The AWS products.
623
+ # The Amazon Web Services products.
623
624
  #
624
625
  # @option params [Array<String>] :service_codes
625
626
  # The services.
@@ -628,7 +629,8 @@ module Aws::SavingsPlans
628
629
  # The usage details of the line item in the billing report.
629
630
  #
630
631
  # @option params [Array<String>] :operations
631
- # The specific AWS operation for the line item in the billing report.
632
+ # The specific Amazon Web Services operation for the line item in the
633
+ # billing report.
632
634
  #
633
635
  # @option params [Array<Types::SavingsPlanOfferingRateFilterElement>] :filters
634
636
  # The filters.
@@ -695,7 +697,7 @@ module Aws::SavingsPlans
695
697
  req.send_request(options)
696
698
  end
697
699
 
698
- # Describes the specified Savings Plans offerings.
700
+ # Describes the offerings for the specified Savings Plans.
699
701
  #
700
702
  # @option params [Array<String>] :offering_ids
701
703
  # The IDs of the offerings.
@@ -707,10 +709,10 @@ module Aws::SavingsPlans
707
709
  # The product type.
708
710
  #
709
711
  # @option params [Array<String>] :plan_types
710
- # The plan type.
712
+ # The plan types.
711
713
  #
712
714
  # @option params [Array<Integer>] :durations
713
- # The durations, in seconds.
715
+ # The duration, in seconds.
714
716
  #
715
717
  # @option params [Array<String>] :currencies
716
718
  # The currencies.
@@ -725,7 +727,8 @@ module Aws::SavingsPlans
725
727
  # The usage details of the line item in the billing report.
726
728
  #
727
729
  # @option params [Array<String>] :operations
728
- # The specific AWS operation for the line item in the billing report.
730
+ # The specific Amazon Web Services operation for the line item in the
731
+ # billing report.
729
732
  #
730
733
  # @option params [Array<Types::SavingsPlanOfferingFilterElement>] :filters
731
734
  # The filters.
@@ -823,6 +826,42 @@ module Aws::SavingsPlans
823
826
  req.send_request(options)
824
827
  end
825
828
 
829
+ # Returns the specified Savings Plan.
830
+ #
831
+ # @option params [required, String] :savings_plan_id
832
+ # The ID of the Savings Plan.
833
+ #
834
+ # @option params [String] :client_token
835
+ # A unique, case-sensitive identifier that you provide to ensure the
836
+ # idempotency of the request.
837
+ #
838
+ # **A suitable default value is auto-generated.** You should normally
839
+ # not need to pass this option.**
840
+ #
841
+ # @return [Types::ReturnSavingsPlanResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
842
+ #
843
+ # * {Types::ReturnSavingsPlanResponse#savings_plan_id #savings_plan_id} => String
844
+ #
845
+ # @example Request syntax with placeholder values
846
+ #
847
+ # resp = client.return_savings_plan({
848
+ # savings_plan_id: "SavingsPlanId", # required
849
+ # client_token: "ClientToken",
850
+ # })
851
+ #
852
+ # @example Response structure
853
+ #
854
+ # resp.savings_plan_id #=> String
855
+ #
856
+ # @see http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ReturnSavingsPlan AWS API Documentation
857
+ #
858
+ # @overload return_savings_plan(params = {})
859
+ # @param [Hash] params ({})
860
+ def return_savings_plan(params = {}, options = {})
861
+ req = build_request(:return_savings_plan, params)
862
+ req.send_request(options)
863
+ end
864
+
826
865
  # Adds the specified tags to the specified resource.
827
866
  #
828
867
  # @option params [required, String] :resource_arn
@@ -891,7 +930,7 @@ module Aws::SavingsPlans
891
930
  params: params,
892
931
  config: config)
893
932
  context[:gem_name] = 'aws-sdk-savingsplans'
894
- context[:gem_version] = '1.38.0'
933
+ context[:gem_version] = '1.39.0'
895
934
  Seahorse::Client::Request.new(handlers, context)
896
935
  end
897
936
 
@@ -44,6 +44,8 @@ module Aws::SavingsPlans
44
44
  ParentSavingsPlanOffering = Shapes::StructureShape.new(name: 'ParentSavingsPlanOffering')
45
45
  Region = Shapes::StringShape.new(name: 'Region')
46
46
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
47
+ ReturnSavingsPlanRequest = Shapes::StructureShape.new(name: 'ReturnSavingsPlanRequest')
48
+ ReturnSavingsPlanResponse = Shapes::StructureShape.new(name: 'ReturnSavingsPlanResponse')
47
49
  SavingsPlan = Shapes::StructureShape.new(name: 'SavingsPlan')
48
50
  SavingsPlanArn = Shapes::StringShape.new(name: 'SavingsPlanArn')
49
51
  SavingsPlanArnList = Shapes::ListShape.new(name: 'SavingsPlanArnList')
@@ -219,6 +221,13 @@ module Aws::SavingsPlans
219
221
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
220
222
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
221
223
 
224
+ ReturnSavingsPlanRequest.add_member(:savings_plan_id, Shapes::ShapeRef.new(shape: SavingsPlanId, required: true, location_name: "savingsPlanId"))
225
+ ReturnSavingsPlanRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
226
+ ReturnSavingsPlanRequest.struct_class = Types::ReturnSavingsPlanRequest
227
+
228
+ ReturnSavingsPlanResponse.add_member(:savings_plan_id, Shapes::ShapeRef.new(shape: SavingsPlanId, location_name: "savingsPlanId"))
229
+ ReturnSavingsPlanResponse.struct_class = Types::ReturnSavingsPlanResponse
230
+
222
231
  SavingsPlan.add_member(:offering_id, Shapes::ShapeRef.new(shape: SavingsPlanOfferingId, location_name: "offeringId"))
223
232
  SavingsPlan.add_member(:savings_plan_id, Shapes::ShapeRef.new(shape: SavingsPlanId, location_name: "savingsPlanId"))
224
233
  SavingsPlan.add_member(:savings_plan_arn, Shapes::ShapeRef.new(shape: SavingsPlanArn, location_name: "savingsPlanArn"))
@@ -237,6 +246,7 @@ module Aws::SavingsPlans
237
246
  SavingsPlan.add_member(:recurring_payment_amount, Shapes::ShapeRef.new(shape: Amount, location_name: "recurringPaymentAmount"))
238
247
  SavingsPlan.add_member(:term_duration_in_seconds, Shapes::ShapeRef.new(shape: TermDurationInSeconds, location_name: "termDurationInSeconds"))
239
248
  SavingsPlan.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
249
+ SavingsPlan.add_member(:returnable_until, Shapes::ShapeRef.new(shape: String, location_name: "returnableUntil"))
240
250
  SavingsPlan.struct_class = Types::SavingsPlan
241
251
 
242
252
  SavingsPlanArnList.member = Shapes::ShapeRef.new(shape: SavingsPlanArn)
@@ -467,6 +477,18 @@ module Aws::SavingsPlans
467
477
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
468
478
  end)
469
479
 
480
+ api.add_operation(:return_savings_plan, Seahorse::Model::Operation.new.tap do |o|
481
+ o.name = "ReturnSavingsPlan"
482
+ o.http_method = "POST"
483
+ o.http_request_uri = "/ReturnSavingsPlan"
484
+ o.input = Shapes::ShapeRef.new(shape: ReturnSavingsPlanRequest)
485
+ o.output = Shapes::ShapeRef.new(shape: ReturnSavingsPlanResponse)
486
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
487
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
488
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
489
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
490
+ end)
491
+
470
492
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
471
493
  o.name = "TagResource"
472
494
  o.http_method = "POST"
@@ -35,7 +35,7 @@ module Aws::SavingsPlans
35
35
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
36
36
  end
37
37
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
38
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
38
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
39
39
  return Aws::Endpoints::Endpoint.new(url: "https://savingsplans-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
40
  end
41
41
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -110,6 +110,20 @@ module Aws::SavingsPlans
110
110
  end
111
111
  end
112
112
 
113
+ class ReturnSavingsPlan
114
+ def self.build(context)
115
+ unless context.config.regional_endpoint
116
+ endpoint = context.config.endpoint.to_s
117
+ end
118
+ Aws::SavingsPlans::EndpointParameters.new(
119
+ region: context.config.region,
120
+ use_dual_stack: context.config.use_dualstack_endpoint,
121
+ use_fips: context.config.use_fips_endpoint,
122
+ endpoint: endpoint,
123
+ )
124
+ end
125
+ end
126
+
113
127
  class TagResource
114
128
  def self.build(context)
115
129
  unless context.config.regional_endpoint
@@ -72,6 +72,8 @@ module Aws::SavingsPlans
72
72
  Aws::SavingsPlans::Endpoints::DescribeSavingsPlansOfferings.build(context)
73
73
  when :list_tags_for_resource
74
74
  Aws::SavingsPlans::Endpoints::ListTagsForResource.build(context)
75
+ when :return_savings_plan
76
+ Aws::SavingsPlans::Endpoints::ReturnSavingsPlan.build(context)
75
77
  when :tag_resource
76
78
  Aws::SavingsPlans::Endpoints::TagResource.build(context)
77
79
  when :untag_resource
@@ -15,7 +15,8 @@ module Aws::SavingsPlans
15
15
  # @return [String]
16
16
  #
17
17
  # @!attribute [rw] commitment
18
- # The hourly commitment, in USD. This is a value between 0.001 and 1
18
+ # The hourly commitment, in the same currency of the
19
+ # `savingsPlanOfferingId`. This is a value between 0.001 and 1
19
20
  # million. You cannot specify more than five digits after the decimal
20
21
  # point.
21
22
  # @return [String]
@@ -23,16 +24,16 @@ module Aws::SavingsPlans
23
24
  # @!attribute [rw] upfront_payment_amount
24
25
  # The up-front payment amount. This is a whole number between 50 and
25
26
  # 99 percent of the total value of the Savings Plan. This parameter is
26
- # supported only if the payment option is `Partial Upfront`.
27
+ # only supported if the payment option is `Partial Upfront`.
27
28
  # @return [String]
28
29
  #
29
30
  # @!attribute [rw] purchase_time
30
- # The time at which to purchase the Savings Plan, in UTC format
31
+ # The purchase time of the Savings Plan in UTC format
31
32
  # (YYYY-MM-DDTHH:MM:SSZ).
32
33
  # @return [Time]
33
34
  #
34
35
  # @!attribute [rw] client_token
35
- # Unique, case-sensitive identifier that you provide to ensure the
36
+ # A unique, case-sensitive identifier that you provide to ensure the
36
37
  # idempotency of the request.
37
38
  #
38
39
  # **A suitable default value is auto-generated.** You should normally
@@ -118,7 +119,7 @@ module Aws::SavingsPlans
118
119
  # @return [String]
119
120
  #
120
121
  # @!attribute [rw] search_results
121
- # Information about the Savings Plans rates.
122
+ # Information about the Savings Plan rates.
122
123
  # @return [Array<Types::SavingsPlanRate>]
123
124
  #
124
125
  # @!attribute [rw] next_token
@@ -149,7 +150,7 @@ module Aws::SavingsPlans
149
150
  # @return [Array<String>]
150
151
  #
151
152
  # @!attribute [rw] products
152
- # The AWS products.
153
+ # The Amazon Web Services products.
153
154
  # @return [Array<String>]
154
155
  #
155
156
  # @!attribute [rw] service_codes
@@ -161,7 +162,8 @@ module Aws::SavingsPlans
161
162
  # @return [Array<String>]
162
163
  #
163
164
  # @!attribute [rw] operations
164
- # The specific AWS operation for the line item in the billing report.
165
+ # The specific Amazon Web Services operation for the line item in the
166
+ # billing report.
165
167
  # @return [Array<String>]
166
168
  #
167
169
  # @!attribute [rw] filters
@@ -226,11 +228,11 @@ module Aws::SavingsPlans
226
228
  # @return [String]
227
229
  #
228
230
  # @!attribute [rw] plan_types
229
- # The plan type.
231
+ # The plan types.
230
232
  # @return [Array<String>]
231
233
  #
232
234
  # @!attribute [rw] durations
233
- # The durations, in seconds.
235
+ # The duration, in seconds.
234
236
  # @return [Array<Integer>]
235
237
  #
236
238
  # @!attribute [rw] currencies
@@ -250,7 +252,8 @@ module Aws::SavingsPlans
250
252
  # @return [Array<String>]
251
253
  #
252
254
  # @!attribute [rw] operations
253
- # The specific AWS operation for the line item in the billing report.
255
+ # The specific Amazon Web Services operation for the line item in the
256
+ # billing report.
254
257
  # @return [Array<String>]
255
258
  #
256
259
  # @!attribute [rw] filters
@@ -324,7 +327,7 @@ module Aws::SavingsPlans
324
327
  # @return [Integer]
325
328
  #
326
329
  # @!attribute [rw] states
327
- # The states.
330
+ # The current states of the Savings Plans.
328
331
  # @return [Array<String>]
329
332
  #
330
333
  # @!attribute [rw] filters
@@ -451,6 +454,39 @@ module Aws::SavingsPlans
451
454
  include Aws::Structure
452
455
  end
453
456
 
457
+ # @!attribute [rw] savings_plan_id
458
+ # The ID of the Savings Plan.
459
+ # @return [String]
460
+ #
461
+ # @!attribute [rw] client_token
462
+ # A unique, case-sensitive identifier that you provide to ensure the
463
+ # idempotency of the request.
464
+ #
465
+ # **A suitable default value is auto-generated.** You should normally
466
+ # not need to pass this option.
467
+ # @return [String]
468
+ #
469
+ # @see http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ReturnSavingsPlanRequest AWS API Documentation
470
+ #
471
+ class ReturnSavingsPlanRequest < Struct.new(
472
+ :savings_plan_id,
473
+ :client_token)
474
+ SENSITIVE = []
475
+ include Aws::Structure
476
+ end
477
+
478
+ # @!attribute [rw] savings_plan_id
479
+ # The ID of the Savings Plan.
480
+ # @return [String]
481
+ #
482
+ # @see http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ReturnSavingsPlanResponse AWS API Documentation
483
+ #
484
+ class ReturnSavingsPlanResponse < Struct.new(
485
+ :savings_plan_id)
486
+ SENSITIVE = []
487
+ include Aws::Structure
488
+ end
489
+
454
490
  # Information about a Savings Plan.
455
491
  #
456
492
  # @!attribute [rw] offering_id
@@ -478,11 +514,11 @@ module Aws::SavingsPlans
478
514
  # @return [String]
479
515
  #
480
516
  # @!attribute [rw] state
481
- # The state.
517
+ # The current state.
482
518
  # @return [String]
483
519
  #
484
520
  # @!attribute [rw] region
485
- # The AWS Region.
521
+ # The Amazon Web Services Region.
486
522
  # @return [String]
487
523
  #
488
524
  # @!attribute [rw] ec2_instance_family
@@ -506,7 +542,7 @@ module Aws::SavingsPlans
506
542
  # @return [String]
507
543
  #
508
544
  # @!attribute [rw] commitment
509
- # The hourly commitment, in USD.
545
+ # The hourly commitment amount in the specified currency.
510
546
  # @return [String]
511
547
  #
512
548
  # @!attribute [rw] upfront_payment_amount
@@ -525,6 +561,12 @@ module Aws::SavingsPlans
525
561
  # One or more tags.
526
562
  # @return [Hash<String,String>]
527
563
  #
564
+ # @!attribute [rw] returnable_until
565
+ # The time until when a return for the Savings Plan can be requested.
566
+ # If the Savings Plan is not returnable, the field reflects the
567
+ # Savings Plan start time.
568
+ # @return [String]
569
+ #
528
570
  # @see http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/SavingsPlan AWS API Documentation
529
571
  #
530
572
  class SavingsPlan < Struct.new(
@@ -545,12 +587,13 @@ module Aws::SavingsPlans
545
587
  :upfront_payment_amount,
546
588
  :recurring_payment_amount,
547
589
  :term_duration_in_seconds,
548
- :tags)
590
+ :tags,
591
+ :returnable_until)
549
592
  SENSITIVE = []
550
593
  include Aws::Structure
551
594
  end
552
595
 
553
- # Information about a filter.
596
+ # Information about a Savings Plan filter.
554
597
  #
555
598
  # @!attribute [rw] name
556
599
  # The filter name.
@@ -608,7 +651,8 @@ module Aws::SavingsPlans
608
651
  # @return [String]
609
652
  #
610
653
  # @!attribute [rw] operation
611
- # The specific AWS operation for the line item in the billing report.
654
+ # The specific Amazon Web Services operation for the line item in the
655
+ # billing report.
612
656
  # @return [String]
613
657
  #
614
658
  # @!attribute [rw] properties
@@ -633,7 +677,7 @@ module Aws::SavingsPlans
633
677
  include Aws::Structure
634
678
  end
635
679
 
636
- # Information about a filter.
680
+ # Information about a Savings Plan offering filter.
637
681
  #
638
682
  # @!attribute [rw] name
639
683
  # The filter name.
@@ -652,7 +696,7 @@ module Aws::SavingsPlans
652
696
  include Aws::Structure
653
697
  end
654
698
 
655
- # Information about a property.
699
+ # Information about a Savings Plan offering property.
656
700
  #
657
701
  # @!attribute [rw] name
658
702
  # The property name.
@@ -698,7 +742,8 @@ module Aws::SavingsPlans
698
742
  # @return [String]
699
743
  #
700
744
  # @!attribute [rw] operation
701
- # The specific AWS operation for the line item in the billing report.
745
+ # The specific Amazon Web Services operation for the line item in the
746
+ # billing report.
702
747
  # @return [String]
703
748
  #
704
749
  # @!attribute [rw] properties
@@ -720,7 +765,7 @@ module Aws::SavingsPlans
720
765
  include Aws::Structure
721
766
  end
722
767
 
723
- # Information about a filter.
768
+ # Information about a Savings Plan offering rate filter.
724
769
  #
725
770
  # @!attribute [rw] name
726
771
  # The filter name.
@@ -739,7 +784,7 @@ module Aws::SavingsPlans
739
784
  include Aws::Structure
740
785
  end
741
786
 
742
- # Information about a property.
787
+ # Information about a Savings Plan offering rate property.
743
788
  #
744
789
  # @!attribute [rw] name
745
790
  # The property name.
@@ -785,7 +830,8 @@ module Aws::SavingsPlans
785
830
  # @return [String]
786
831
  #
787
832
  # @!attribute [rw] operation
788
- # The specific AWS operation for the line item in the billing report.
833
+ # The specific Amazon Web Services operation for the line item in the
834
+ # billing report.
789
835
  # @return [String]
790
836
  #
791
837
  # @!attribute [rw] properties
@@ -807,7 +853,7 @@ module Aws::SavingsPlans
807
853
  include Aws::Structure
808
854
  end
809
855
 
810
- # Information about a filter.
856
+ # Information about a Savings Plan rate filter.
811
857
  #
812
858
  # @!attribute [rw] name
813
859
  # The filter name.
@@ -826,7 +872,7 @@ module Aws::SavingsPlans
826
872
  include Aws::Structure
827
873
  end
828
874
 
829
- # Information about a property.
875
+ # Information about a Savings Plan rate property.
830
876
  #
831
877
  # @!attribute [rw] name
832
878
  # The property name.
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-savingsplans/customizations'
52
52
  # @!group service
53
53
  module Aws::SavingsPlans
54
54
 
55
- GEM_VERSION = '1.38.0'
55
+ GEM_VERSION = '1.39.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -127,7 +127,7 @@ module Aws
127
127
  ?savings_plan_ids: Array[::String],
128
128
  ?next_token: ::String,
129
129
  ?max_results: ::Integer,
130
- ?states: Array[("payment-pending" | "payment-failed" | "active" | "retired" | "queued" | "queued-deleted")],
130
+ ?states: Array[("payment-pending" | "payment-failed" | "active" | "retired" | "queued" | "queued-deleted" | "pending-return" | "returned")],
131
131
  ?filters: Array[
132
132
  {
133
133
  name: ("region" | "ec2-instance-family" | "commitment" | "upfront" | "term" | "savings-plan-type" | "payment-option" | "start" | "end")?,
@@ -200,6 +200,17 @@ module Aws
200
200
  ) -> _ListTagsForResourceResponseSuccess
201
201
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
202
202
 
203
+ interface _ReturnSavingsPlanResponseSuccess
204
+ include ::Seahorse::Client::_ResponseSuccess[Types::ReturnSavingsPlanResponse]
205
+ def savings_plan_id: () -> ::String
206
+ end
207
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#return_savings_plan-instance_method
208
+ def return_savings_plan: (
209
+ savings_plan_id: ::String,
210
+ ?client_token: ::String
211
+ ) -> _ReturnSavingsPlanResponseSuccess
212
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReturnSavingsPlanResponseSuccess
213
+
203
214
  interface _TagResourceResponseSuccess
204
215
  include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
205
216
  end
data/sig/types.rbs CHANGED
@@ -94,7 +94,7 @@ module Aws::SavingsPlans
94
94
  attr_accessor savings_plan_ids: ::Array[::String]
95
95
  attr_accessor next_token: ::String
96
96
  attr_accessor max_results: ::Integer
97
- attr_accessor states: ::Array[("payment-pending" | "payment-failed" | "active" | "retired" | "queued" | "queued-deleted")]
97
+ attr_accessor states: ::Array[("payment-pending" | "payment-failed" | "active" | "retired" | "queued" | "queued-deleted" | "pending-return" | "returned")]
98
98
  attr_accessor filters: ::Array[Types::SavingsPlanFilter]
99
99
  SENSITIVE: []
100
100
  end
@@ -135,6 +135,17 @@ module Aws::SavingsPlans
135
135
  SENSITIVE: []
136
136
  end
137
137
 
138
+ class ReturnSavingsPlanRequest
139
+ attr_accessor savings_plan_id: ::String
140
+ attr_accessor client_token: ::String
141
+ SENSITIVE: []
142
+ end
143
+
144
+ class ReturnSavingsPlanResponse
145
+ attr_accessor savings_plan_id: ::String
146
+ SENSITIVE: []
147
+ end
148
+
138
149
  class SavingsPlan
139
150
  attr_accessor offering_id: ::String
140
151
  attr_accessor savings_plan_id: ::String
@@ -142,7 +153,7 @@ module Aws::SavingsPlans
142
153
  attr_accessor description: ::String
143
154
  attr_accessor start: ::String
144
155
  attr_accessor end: ::String
145
- attr_accessor state: ("payment-pending" | "payment-failed" | "active" | "retired" | "queued" | "queued-deleted")
156
+ attr_accessor state: ("payment-pending" | "payment-failed" | "active" | "retired" | "queued" | "queued-deleted" | "pending-return" | "returned")
146
157
  attr_accessor region: ::String
147
158
  attr_accessor ec2_instance_family: ::String
148
159
  attr_accessor savings_plan_type: ("Compute" | "EC2Instance" | "SageMaker")
@@ -154,6 +165,7 @@ module Aws::SavingsPlans
154
165
  attr_accessor recurring_payment_amount: ::String
155
166
  attr_accessor term_duration_in_seconds: ::Integer
156
167
  attr_accessor tags: ::Hash[::String, ::String]
168
+ attr_accessor returnable_until: ::String
157
169
  SENSITIVE: []
158
170
  end
159
171
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-savingsplans
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core