aws-sdk-savingsplans 1.37.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: d30855f23fe73092b0ebdab734486d173759a96dfc827b046f609f1dd57c41b3
4
- data.tar.gz: c6fa99f42819ba98e77d5db25235d5f2354be962f25612e93910d44afc1459c8
3
+ metadata.gz: 2d92b8d4b25734c04293ad0e0883dbbfb3fd747f83c6cbff80a719a1cacee75e
4
+ data.tar.gz: 842efd2ef6bd07f3897f694de0df118ac7526e58d876de7be3a69a23e93c3e03
5
5
  SHA512:
6
- metadata.gz: 9cb7a8d3203607ece08df0a783fa1e6159be4c56dc0c5daee70911529e2f6646c5e9aed06e6e1bcd5b7abff070ad682f80fb82cbe4a5180c37d4f9de571f13ff
7
- data.tar.gz: b839f03c46f7fa25b2ff2fde960b2a42c8a7da17b88737c47aee4e38fa683c60689b1f1051374c021626617ab7b714003061b4f7a70af77686646ac325806871
6
+ metadata.gz: afc35e188dc62e8c02626f33721b4f5f73db5d062f050d2bd9c9b4aa59a7d830b4f6337c8e64e552d52b320436a728c8962d018ce4830670b3cf7732a60c428c
7
+ data.tar.gz: ec9bcc746ed07ad90dde35659bf60301d7ab722aec0693b95f38bd25252518983aea2aafb5f832de8fbd22d18a19ca14c133d4079bdb6e5e55db04b51eb336c6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.38.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.37.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.37.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.37.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
@@ -14,6 +14,7 @@ module Aws::SavingsPlans
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::SavingsPlans::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -71,6 +72,8 @@ module Aws::SavingsPlans
71
72
  Aws::SavingsPlans::Endpoints::DescribeSavingsPlansOfferings.build(context)
72
73
  when :list_tags_for_resource
73
74
  Aws::SavingsPlans::Endpoints::ListTagsForResource.build(context)
75
+ when :return_savings_plan
76
+ Aws::SavingsPlans::Endpoints::ReturnSavingsPlan.build(context)
74
77
  when :tag_resource
75
78
  Aws::SavingsPlans::Endpoints::TagResource.build(context)
76
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.37.0'
55
+ GEM_VERSION = '1.39.0'
56
56
 
57
57
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,236 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SavingsPlans
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> instance
72
+ | (?Hash[Symbol, untyped]) -> instance
73
+
74
+
75
+ interface _CreateSavingsPlanResponseSuccess
76
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateSavingsPlanResponse]
77
+ def savings_plan_id: () -> ::String
78
+ end
79
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#create_savings_plan-instance_method
80
+ def create_savings_plan: (
81
+ savings_plan_offering_id: ::String,
82
+ commitment: ::String,
83
+ ?upfront_payment_amount: ::String,
84
+ ?purchase_time: ::Time,
85
+ ?client_token: ::String,
86
+ ?tags: Hash[::String, ::String]
87
+ ) -> _CreateSavingsPlanResponseSuccess
88
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSavingsPlanResponseSuccess
89
+
90
+ interface _DeleteQueuedSavingsPlanResponseSuccess
91
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteQueuedSavingsPlanResponse]
92
+ end
93
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#delete_queued_savings_plan-instance_method
94
+ def delete_queued_savings_plan: (
95
+ savings_plan_id: ::String
96
+ ) -> _DeleteQueuedSavingsPlanResponseSuccess
97
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteQueuedSavingsPlanResponseSuccess
98
+
99
+ interface _DescribeSavingsPlanRatesResponseSuccess
100
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeSavingsPlanRatesResponse]
101
+ def savings_plan_id: () -> ::String
102
+ def search_results: () -> ::Array[Types::SavingsPlanRate]
103
+ def next_token: () -> ::String
104
+ end
105
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#describe_savings_plan_rates-instance_method
106
+ def describe_savings_plan_rates: (
107
+ savings_plan_id: ::String,
108
+ ?filters: Array[
109
+ {
110
+ name: ("region" | "instanceType" | "productDescription" | "tenancy" | "productType" | "serviceCode" | "usageType" | "operation")?,
111
+ values: Array[::String]?
112
+ },
113
+ ],
114
+ ?next_token: ::String,
115
+ ?max_results: ::Integer
116
+ ) -> _DescribeSavingsPlanRatesResponseSuccess
117
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeSavingsPlanRatesResponseSuccess
118
+
119
+ interface _DescribeSavingsPlansResponseSuccess
120
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeSavingsPlansResponse]
121
+ def savings_plans: () -> ::Array[Types::SavingsPlan]
122
+ def next_token: () -> ::String
123
+ end
124
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#describe_savings_plans-instance_method
125
+ def describe_savings_plans: (
126
+ ?savings_plan_arns: Array[::String],
127
+ ?savings_plan_ids: Array[::String],
128
+ ?next_token: ::String,
129
+ ?max_results: ::Integer,
130
+ ?states: Array[("payment-pending" | "payment-failed" | "active" | "retired" | "queued" | "queued-deleted" | "pending-return" | "returned")],
131
+ ?filters: Array[
132
+ {
133
+ name: ("region" | "ec2-instance-family" | "commitment" | "upfront" | "term" | "savings-plan-type" | "payment-option" | "start" | "end")?,
134
+ values: Array[::String]?
135
+ },
136
+ ]
137
+ ) -> _DescribeSavingsPlansResponseSuccess
138
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeSavingsPlansResponseSuccess
139
+
140
+ interface _DescribeSavingsPlansOfferingRatesResponseSuccess
141
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeSavingsPlansOfferingRatesResponse]
142
+ def search_results: () -> ::Array[Types::SavingsPlanOfferingRate]
143
+ def next_token: () -> ::String
144
+ end
145
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#describe_savings_plans_offering_rates-instance_method
146
+ def describe_savings_plans_offering_rates: (
147
+ ?savings_plan_offering_ids: Array[::String],
148
+ ?savings_plan_payment_options: Array[("All Upfront" | "Partial Upfront" | "No Upfront")],
149
+ ?savings_plan_types: Array[("Compute" | "EC2Instance" | "SageMaker")],
150
+ ?products: Array[("EC2" | "Fargate" | "Lambda" | "SageMaker")],
151
+ ?service_codes: Array[("AmazonEC2" | "AmazonECS" | "AmazonEKS" | "AWSLambda" | "AmazonSageMaker")],
152
+ ?usage_types: Array[::String],
153
+ ?operations: Array[::String],
154
+ ?filters: Array[
155
+ {
156
+ name: ("region" | "instanceFamily" | "instanceType" | "productDescription" | "tenancy" | "productId")?,
157
+ values: Array[::String]?
158
+ },
159
+ ],
160
+ ?next_token: ::String,
161
+ ?max_results: ::Integer
162
+ ) -> _DescribeSavingsPlansOfferingRatesResponseSuccess
163
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeSavingsPlansOfferingRatesResponseSuccess
164
+
165
+ interface _DescribeSavingsPlansOfferingsResponseSuccess
166
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeSavingsPlansOfferingsResponse]
167
+ def search_results: () -> ::Array[Types::SavingsPlanOffering]
168
+ def next_token: () -> ::String
169
+ end
170
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#describe_savings_plans_offerings-instance_method
171
+ def describe_savings_plans_offerings: (
172
+ ?offering_ids: Array[::String],
173
+ ?payment_options: Array[("All Upfront" | "Partial Upfront" | "No Upfront")],
174
+ ?product_type: ("EC2" | "Fargate" | "Lambda" | "SageMaker"),
175
+ ?plan_types: Array[("Compute" | "EC2Instance" | "SageMaker")],
176
+ ?durations: Array[::Integer],
177
+ ?currencies: Array[("CNY" | "USD")],
178
+ ?descriptions: Array[::String],
179
+ ?service_codes: Array[::String],
180
+ ?usage_types: Array[::String],
181
+ ?operations: Array[::String],
182
+ ?filters: Array[
183
+ {
184
+ name: ("region" | "instanceFamily")?,
185
+ values: Array[::String]?
186
+ },
187
+ ],
188
+ ?next_token: ::String,
189
+ ?max_results: ::Integer
190
+ ) -> _DescribeSavingsPlansOfferingsResponseSuccess
191
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeSavingsPlansOfferingsResponseSuccess
192
+
193
+ interface _ListTagsForResourceResponseSuccess
194
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
195
+ def tags: () -> ::Hash[::String, ::String]
196
+ end
197
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#list_tags_for_resource-instance_method
198
+ def list_tags_for_resource: (
199
+ resource_arn: ::String
200
+ ) -> _ListTagsForResourceResponseSuccess
201
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
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
+
214
+ interface _TagResourceResponseSuccess
215
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
216
+ end
217
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#tag_resource-instance_method
218
+ def tag_resource: (
219
+ resource_arn: ::String,
220
+ tags: Hash[::String, ::String]
221
+ ) -> _TagResourceResponseSuccess
222
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
223
+
224
+ interface _UntagResourceResponseSuccess
225
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
226
+ end
227
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Client.html#untag_resource-instance_method
228
+ def untag_resource: (
229
+ resource_arn: ::String,
230
+ tag_keys: Array[::String]
231
+ ) -> _UntagResourceResponseSuccess
232
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
233
+ end
234
+ end
235
+ end
236
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,28 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SavingsPlans
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class InternalServerException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class ValidationException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ end
27
+ end
28
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,79 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SavingsPlans
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SavingsPlans/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> void
72
+ | (?Hash[Symbol, untyped]) -> void
73
+
74
+ def client: () -> Client
75
+
76
+
77
+ end
78
+ end
79
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,281 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::SavingsPlans
9
+ module Types
10
+
11
+ class CreateSavingsPlanRequest
12
+ attr_accessor savings_plan_offering_id: ::String
13
+ attr_accessor commitment: ::String
14
+ attr_accessor upfront_payment_amount: ::String
15
+ attr_accessor purchase_time: ::Time
16
+ attr_accessor client_token: ::String
17
+ attr_accessor tags: ::Hash[::String, ::String]
18
+ SENSITIVE: []
19
+ end
20
+
21
+ class CreateSavingsPlanResponse
22
+ attr_accessor savings_plan_id: ::String
23
+ SENSITIVE: []
24
+ end
25
+
26
+ class DeleteQueuedSavingsPlanRequest
27
+ attr_accessor savings_plan_id: ::String
28
+ SENSITIVE: []
29
+ end
30
+
31
+ class DeleteQueuedSavingsPlanResponse < Aws::EmptyStructure
32
+ end
33
+
34
+ class DescribeSavingsPlanRatesRequest
35
+ attr_accessor savings_plan_id: ::String
36
+ attr_accessor filters: ::Array[Types::SavingsPlanRateFilter]
37
+ attr_accessor next_token: ::String
38
+ attr_accessor max_results: ::Integer
39
+ SENSITIVE: []
40
+ end
41
+
42
+ class DescribeSavingsPlanRatesResponse
43
+ attr_accessor savings_plan_id: ::String
44
+ attr_accessor search_results: ::Array[Types::SavingsPlanRate]
45
+ attr_accessor next_token: ::String
46
+ SENSITIVE: []
47
+ end
48
+
49
+ class DescribeSavingsPlansOfferingRatesRequest
50
+ attr_accessor savings_plan_offering_ids: ::Array[::String]
51
+ attr_accessor savings_plan_payment_options: ::Array[("All Upfront" | "Partial Upfront" | "No Upfront")]
52
+ attr_accessor savings_plan_types: ::Array[("Compute" | "EC2Instance" | "SageMaker")]
53
+ attr_accessor products: ::Array[("EC2" | "Fargate" | "Lambda" | "SageMaker")]
54
+ attr_accessor service_codes: ::Array[("AmazonEC2" | "AmazonECS" | "AmazonEKS" | "AWSLambda" | "AmazonSageMaker")]
55
+ attr_accessor usage_types: ::Array[::String]
56
+ attr_accessor operations: ::Array[::String]
57
+ attr_accessor filters: ::Array[Types::SavingsPlanOfferingRateFilterElement]
58
+ attr_accessor next_token: ::String
59
+ attr_accessor max_results: ::Integer
60
+ SENSITIVE: []
61
+ end
62
+
63
+ class DescribeSavingsPlansOfferingRatesResponse
64
+ attr_accessor search_results: ::Array[Types::SavingsPlanOfferingRate]
65
+ attr_accessor next_token: ::String
66
+ SENSITIVE: []
67
+ end
68
+
69
+ class DescribeSavingsPlansOfferingsRequest
70
+ attr_accessor offering_ids: ::Array[::String]
71
+ attr_accessor payment_options: ::Array[("All Upfront" | "Partial Upfront" | "No Upfront")]
72
+ attr_accessor product_type: ("EC2" | "Fargate" | "Lambda" | "SageMaker")
73
+ attr_accessor plan_types: ::Array[("Compute" | "EC2Instance" | "SageMaker")]
74
+ attr_accessor durations: ::Array[::Integer]
75
+ attr_accessor currencies: ::Array[("CNY" | "USD")]
76
+ attr_accessor descriptions: ::Array[::String]
77
+ attr_accessor service_codes: ::Array[::String]
78
+ attr_accessor usage_types: ::Array[::String]
79
+ attr_accessor operations: ::Array[::String]
80
+ attr_accessor filters: ::Array[Types::SavingsPlanOfferingFilterElement]
81
+ attr_accessor next_token: ::String
82
+ attr_accessor max_results: ::Integer
83
+ SENSITIVE: []
84
+ end
85
+
86
+ class DescribeSavingsPlansOfferingsResponse
87
+ attr_accessor search_results: ::Array[Types::SavingsPlanOffering]
88
+ attr_accessor next_token: ::String
89
+ SENSITIVE: []
90
+ end
91
+
92
+ class DescribeSavingsPlansRequest
93
+ attr_accessor savings_plan_arns: ::Array[::String]
94
+ attr_accessor savings_plan_ids: ::Array[::String]
95
+ attr_accessor next_token: ::String
96
+ attr_accessor max_results: ::Integer
97
+ attr_accessor states: ::Array[("payment-pending" | "payment-failed" | "active" | "retired" | "queued" | "queued-deleted" | "pending-return" | "returned")]
98
+ attr_accessor filters: ::Array[Types::SavingsPlanFilter]
99
+ SENSITIVE: []
100
+ end
101
+
102
+ class DescribeSavingsPlansResponse
103
+ attr_accessor savings_plans: ::Array[Types::SavingsPlan]
104
+ attr_accessor next_token: ::String
105
+ SENSITIVE: []
106
+ end
107
+
108
+ class InternalServerException
109
+ attr_accessor message: ::String
110
+ SENSITIVE: []
111
+ end
112
+
113
+ class ListTagsForResourceRequest
114
+ attr_accessor resource_arn: ::String
115
+ SENSITIVE: []
116
+ end
117
+
118
+ class ListTagsForResourceResponse
119
+ attr_accessor tags: ::Hash[::String, ::String]
120
+ SENSITIVE: []
121
+ end
122
+
123
+ class ParentSavingsPlanOffering
124
+ attr_accessor offering_id: ::String
125
+ attr_accessor payment_option: ("All Upfront" | "Partial Upfront" | "No Upfront")
126
+ attr_accessor plan_type: ("Compute" | "EC2Instance" | "SageMaker")
127
+ attr_accessor duration_seconds: ::Integer
128
+ attr_accessor currency: ("CNY" | "USD")
129
+ attr_accessor plan_description: ::String
130
+ SENSITIVE: []
131
+ end
132
+
133
+ class ResourceNotFoundException
134
+ attr_accessor message: ::String
135
+ SENSITIVE: []
136
+ end
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
+
149
+ class SavingsPlan
150
+ attr_accessor offering_id: ::String
151
+ attr_accessor savings_plan_id: ::String
152
+ attr_accessor savings_plan_arn: ::String
153
+ attr_accessor description: ::String
154
+ attr_accessor start: ::String
155
+ attr_accessor end: ::String
156
+ attr_accessor state: ("payment-pending" | "payment-failed" | "active" | "retired" | "queued" | "queued-deleted" | "pending-return" | "returned")
157
+ attr_accessor region: ::String
158
+ attr_accessor ec2_instance_family: ::String
159
+ attr_accessor savings_plan_type: ("Compute" | "EC2Instance" | "SageMaker")
160
+ attr_accessor payment_option: ("All Upfront" | "Partial Upfront" | "No Upfront")
161
+ attr_accessor product_types: ::Array[("EC2" | "Fargate" | "Lambda" | "SageMaker")]
162
+ attr_accessor currency: ("CNY" | "USD")
163
+ attr_accessor commitment: ::String
164
+ attr_accessor upfront_payment_amount: ::String
165
+ attr_accessor recurring_payment_amount: ::String
166
+ attr_accessor term_duration_in_seconds: ::Integer
167
+ attr_accessor tags: ::Hash[::String, ::String]
168
+ attr_accessor returnable_until: ::String
169
+ SENSITIVE: []
170
+ end
171
+
172
+ class SavingsPlanFilter
173
+ attr_accessor name: ("region" | "ec2-instance-family" | "commitment" | "upfront" | "term" | "savings-plan-type" | "payment-option" | "start" | "end")
174
+ attr_accessor values: ::Array[::String]
175
+ SENSITIVE: []
176
+ end
177
+
178
+ class SavingsPlanOffering
179
+ attr_accessor offering_id: ::String
180
+ attr_accessor product_types: ::Array[("EC2" | "Fargate" | "Lambda" | "SageMaker")]
181
+ attr_accessor plan_type: ("Compute" | "EC2Instance" | "SageMaker")
182
+ attr_accessor description: ::String
183
+ attr_accessor payment_option: ("All Upfront" | "Partial Upfront" | "No Upfront")
184
+ attr_accessor duration_seconds: ::Integer
185
+ attr_accessor currency: ("CNY" | "USD")
186
+ attr_accessor service_code: ::String
187
+ attr_accessor usage_type: ::String
188
+ attr_accessor operation: ::String
189
+ attr_accessor properties: ::Array[Types::SavingsPlanOfferingProperty]
190
+ SENSITIVE: []
191
+ end
192
+
193
+ class SavingsPlanOfferingFilterElement
194
+ attr_accessor name: ("region" | "instanceFamily")
195
+ attr_accessor values: ::Array[::String]
196
+ SENSITIVE: []
197
+ end
198
+
199
+ class SavingsPlanOfferingProperty
200
+ attr_accessor name: ("region" | "instanceFamily")
201
+ attr_accessor value: ::String
202
+ SENSITIVE: []
203
+ end
204
+
205
+ class SavingsPlanOfferingRate
206
+ attr_accessor savings_plan_offering: Types::ParentSavingsPlanOffering
207
+ attr_accessor rate: ::String
208
+ attr_accessor unit: ("Hrs" | "Lambda-GB-Second" | "Request")
209
+ attr_accessor product_type: ("EC2" | "Fargate" | "Lambda" | "SageMaker")
210
+ attr_accessor service_code: ("AmazonEC2" | "AmazonECS" | "AmazonEKS" | "AWSLambda" | "AmazonSageMaker")
211
+ attr_accessor usage_type: ::String
212
+ attr_accessor operation: ::String
213
+ attr_accessor properties: ::Array[Types::SavingsPlanOfferingRateProperty]
214
+ SENSITIVE: []
215
+ end
216
+
217
+ class SavingsPlanOfferingRateFilterElement
218
+ attr_accessor name: ("region" | "instanceFamily" | "instanceType" | "productDescription" | "tenancy" | "productId")
219
+ attr_accessor values: ::Array[::String]
220
+ SENSITIVE: []
221
+ end
222
+
223
+ class SavingsPlanOfferingRateProperty
224
+ attr_accessor name: ::String
225
+ attr_accessor value: ::String
226
+ SENSITIVE: []
227
+ end
228
+
229
+ class SavingsPlanRate
230
+ attr_accessor rate: ::String
231
+ attr_accessor currency: ("CNY" | "USD")
232
+ attr_accessor unit: ("Hrs" | "Lambda-GB-Second" | "Request")
233
+ attr_accessor product_type: ("EC2" | "Fargate" | "Lambda" | "SageMaker")
234
+ attr_accessor service_code: ("AmazonEC2" | "AmazonECS" | "AmazonEKS" | "AWSLambda" | "AmazonSageMaker")
235
+ attr_accessor usage_type: ::String
236
+ attr_accessor operation: ::String
237
+ attr_accessor properties: ::Array[Types::SavingsPlanRateProperty]
238
+ SENSITIVE: []
239
+ end
240
+
241
+ class SavingsPlanRateFilter
242
+ attr_accessor name: ("region" | "instanceType" | "productDescription" | "tenancy" | "productType" | "serviceCode" | "usageType" | "operation")
243
+ attr_accessor values: ::Array[::String]
244
+ SENSITIVE: []
245
+ end
246
+
247
+ class SavingsPlanRateProperty
248
+ attr_accessor name: ("region" | "instanceType" | "instanceFamily" | "productDescription" | "tenancy")
249
+ attr_accessor value: ::String
250
+ SENSITIVE: []
251
+ end
252
+
253
+ class ServiceQuotaExceededException
254
+ attr_accessor message: ::String
255
+ SENSITIVE: []
256
+ end
257
+
258
+ class TagResourceRequest
259
+ attr_accessor resource_arn: ::String
260
+ attr_accessor tags: ::Hash[::String, ::String]
261
+ SENSITIVE: []
262
+ end
263
+
264
+ class TagResourceResponse < Aws::EmptyStructure
265
+ end
266
+
267
+ class UntagResourceRequest
268
+ attr_accessor resource_arn: ::String
269
+ attr_accessor tag_keys: ::Array[::String]
270
+ SENSITIVE: []
271
+ end
272
+
273
+ class UntagResourceResponse < Aws::EmptyStructure
274
+ end
275
+
276
+ class ValidationException
277
+ attr_accessor message: ::String
278
+ SENSITIVE: []
279
+ end
280
+ end
281
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SavingsPlans
10
+ module Waiters
11
+ end
12
+ end
13
+ end
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.37.0
4
+ version: 1.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.188.0
22
+ version: 3.191.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.188.0
32
+ version: 3.191.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -66,13 +66,18 @@ files:
66
66
  - lib/aws-sdk-savingsplans/plugins/endpoints.rb
67
67
  - lib/aws-sdk-savingsplans/resource.rb
68
68
  - lib/aws-sdk-savingsplans/types.rb
69
+ - sig/client.rbs
70
+ - sig/errors.rbs
71
+ - sig/resource.rbs
72
+ - sig/types.rbs
73
+ - sig/waiters.rbs
69
74
  homepage: https://github.com/aws/aws-sdk-ruby
70
75
  licenses:
71
76
  - Apache-2.0
72
77
  metadata:
73
78
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-savingsplans
74
79
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-savingsplans/CHANGELOG.md
75
- post_install_message:
80
+ post_install_message:
76
81
  rdoc_options: []
77
82
  require_paths:
78
83
  - lib
@@ -87,8 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
92
  - !ruby/object:Gem::Version
88
93
  version: '0'
89
94
  requirements: []
90
- rubygems_version: 3.1.6
91
- signing_key:
95
+ rubygems_version: 3.4.10
96
+ signing_key:
92
97
  specification_version: 4
93
98
  summary: AWS SDK for Ruby - AWSSavingsPlans
94
99
  test_files: []