aws-sdk-savingsplans 1.10.0 → 1.11.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: b1e3af7658bbcf7f4adf97979d91371681a41c15b7b7e5a76ebe16748b6d2bf6
4
- data.tar.gz: 3dc185b3968745a6143dcdef31f79a7478e87344e82f323770e53789c9e471b7
3
+ metadata.gz: d28221e42b1236419671a66497e33c7e93bf9a2f4b44fd32774d531a140c36d7
4
+ data.tar.gz: 2e6b3b2130eb2c954908634c96c406286a3502472610ecfe5aaf0ac0e86dadd9
5
5
  SHA512:
6
- metadata.gz: 0771f886e0ac70ccea137a1170d6c003a09fb8653aa4e2deec4d74e3e78e21c11ac3e30c9f6093172263f35bb1795efd1af6db60f91afcb61120188a3452c02c
7
- data.tar.gz: 68f4f453a4551b01f688d79384fa8f914352e4a391acc32e6bf0f116e832fb40fa7c2727a77bd19e9c11dd395c76280d2036427159de580f0eee326c38e8614b
6
+ metadata.gz: 0167f0550761c41fc3ff5da75a736fe7e2be5966cb5144e316f8caf6e1130ecf49215035e6bd06ad01a259b298d7bda57a18c1bb404d7c2624e2199c03071f25
7
+ data.tar.gz: a4b6e84785eb5be36ab5b60c1e91839c88ff6ec81d85f2f5bfb855df8bc533b12028e8b7d83db54d0aa64e3268f84437e64716dfe552919117c003d1b3326cd8
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-savingsplans/customizations'
48
48
  # @!group service
49
49
  module Aws::SavingsPlans
50
50
 
51
- GEM_VERSION = '1.10.0'
51
+ GEM_VERSION = '1.11.0'
52
52
 
53
53
  end
@@ -342,6 +342,10 @@ module Aws::SavingsPlans
342
342
  # percent of the total value of the Savings Plan. This parameter is
343
343
  # supported only if the payment option is `Partial Upfront`.
344
344
  #
345
+ # @option params [Time,DateTime,Date,Integer,String] :purchase_time
346
+ # The time at which to purchase the Savings Plan, in UTC format
347
+ # (YYYY-MM-DDTHH:MM:SSZ).
348
+ #
345
349
  # @option params [String] :client_token
346
350
  # Unique, case-sensitive identifier that you provide to ensure the
347
351
  # idempotency of the request.
@@ -362,6 +366,7 @@ module Aws::SavingsPlans
362
366
  # savings_plan_offering_id: "SavingsPlanOfferingId", # required
363
367
  # commitment: "Amount", # required
364
368
  # upfront_payment_amount: "Amount",
369
+ # purchase_time: Time.now,
365
370
  # client_token: "ClientToken",
366
371
  # tags: {
367
372
  # "TagKey" => "TagValue",
@@ -381,6 +386,28 @@ module Aws::SavingsPlans
381
386
  req.send_request(options)
382
387
  end
383
388
 
389
+ # Deletes the queued purchase for the specified Savings Plan.
390
+ #
391
+ # @option params [required, String] :savings_plan_id
392
+ # The ID of the Savings Plan.
393
+ #
394
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
395
+ #
396
+ # @example Request syntax with placeholder values
397
+ #
398
+ # resp = client.delete_queued_savings_plan({
399
+ # savings_plan_id: "SavingsPlanId", # required
400
+ # })
401
+ #
402
+ # @see http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DeleteQueuedSavingsPlan AWS API Documentation
403
+ #
404
+ # @overload delete_queued_savings_plan(params = {})
405
+ # @param [Hash] params ({})
406
+ def delete_queued_savings_plan(params = {}, options = {})
407
+ req = build_request(:delete_queued_savings_plan, params)
408
+ req.send_request(options)
409
+ end
410
+
384
411
  # Describes the specified Savings Plans rates.
385
412
  #
386
413
  # @option params [required, String] :savings_plan_id
@@ -425,7 +452,7 @@ module Aws::SavingsPlans
425
452
  # resp.search_results[0].currency #=> String, one of "CNY", "USD"
426
453
  # resp.search_results[0].unit #=> String, one of "Hrs", "Lambda-GB-Second", "Request"
427
454
  # resp.search_results[0].product_type #=> String, one of "EC2", "Fargate", "Lambda"
428
- # resp.search_results[0].service_code #=> String, one of "AmazonEC2", "AmazonECS", "AmazonEKS", "AWSLambda"
455
+ # resp.search_results[0].service_code #=> String, one of "AmazonEC2", "AmazonECS", "AWSLambda"
429
456
  # resp.search_results[0].usage_type #=> String
430
457
  # resp.search_results[0].operation #=> String
431
458
  # resp.search_results[0].properties #=> Array
@@ -476,7 +503,7 @@ module Aws::SavingsPlans
476
503
  # savings_plan_ids: ["SavingsPlanId"],
477
504
  # next_token: "PaginationToken",
478
505
  # max_results: 1,
479
- # states: ["payment-pending"], # accepts payment-pending, payment-failed, active, retired
506
+ # states: ["payment-pending"], # accepts payment-pending, payment-failed, active, retired, queued, queued-deleted
480
507
  # filters: [
481
508
  # {
482
509
  # name: "region", # accepts region, ec2-instance-family, commitment, upfront, term, savings-plan-type, payment-option, start, end
@@ -494,7 +521,7 @@ module Aws::SavingsPlans
494
521
  # resp.savings_plans[0].description #=> String
495
522
  # resp.savings_plans[0].start #=> String
496
523
  # resp.savings_plans[0].end #=> String
497
- # resp.savings_plans[0].state #=> String, one of "payment-pending", "payment-failed", "active", "retired"
524
+ # resp.savings_plans[0].state #=> String, one of "payment-pending", "payment-failed", "active", "retired", "queued", "queued-deleted"
498
525
  # resp.savings_plans[0].region #=> String
499
526
  # resp.savings_plans[0].ec2_instance_family #=> String
500
527
  # resp.savings_plans[0].savings_plan_type #=> String, one of "Compute", "EC2Instance"
@@ -565,7 +592,7 @@ module Aws::SavingsPlans
565
592
  # savings_plan_payment_options: ["All Upfront"], # accepts All Upfront, Partial Upfront, No Upfront
566
593
  # savings_plan_types: ["Compute"], # accepts Compute, EC2Instance
567
594
  # products: ["EC2"], # accepts EC2, Fargate, Lambda
568
- # service_codes: ["AmazonEC2"], # accepts AmazonEC2, AmazonECS, AmazonEKS, AWSLambda
595
+ # service_codes: ["AmazonEC2"], # accepts AmazonEC2, AmazonECS, AWSLambda
569
596
  # usage_types: ["SavingsPlanRateUsageType"],
570
597
  # operations: ["SavingsPlanRateOperation"],
571
598
  # filters: [
@@ -590,7 +617,7 @@ module Aws::SavingsPlans
590
617
  # resp.search_results[0].rate #=> String
591
618
  # resp.search_results[0].unit #=> String, one of "Hrs", "Lambda-GB-Second", "Request"
592
619
  # resp.search_results[0].product_type #=> String, one of "EC2", "Fargate", "Lambda"
593
- # resp.search_results[0].service_code #=> String, one of "AmazonEC2", "AmazonECS", "AmazonEKS", "AWSLambda"
620
+ # resp.search_results[0].service_code #=> String, one of "AmazonEC2", "AmazonECS", "AWSLambda"
594
621
  # resp.search_results[0].usage_type #=> String
595
622
  # resp.search_results[0].operation #=> String
596
623
  # resp.search_results[0].properties #=> Array
@@ -803,7 +830,7 @@ module Aws::SavingsPlans
803
830
  params: params,
804
831
  config: config)
805
832
  context[:gem_name] = 'aws-sdk-savingsplans'
806
- context[:gem_version] = '1.10.0'
833
+ context[:gem_version] = '1.11.0'
807
834
  Seahorse::Client::Request.new(handlers, context)
808
835
  end
809
836
 
@@ -19,6 +19,9 @@ module Aws::SavingsPlans
19
19
  CreateSavingsPlanResponse = Shapes::StructureShape.new(name: 'CreateSavingsPlanResponse')
20
20
  CurrencyCode = Shapes::StringShape.new(name: 'CurrencyCode')
21
21
  CurrencyList = Shapes::ListShape.new(name: 'CurrencyList')
22
+ DateTime = Shapes::TimestampShape.new(name: 'DateTime')
23
+ DeleteQueuedSavingsPlanRequest = Shapes::StructureShape.new(name: 'DeleteQueuedSavingsPlanRequest')
24
+ DeleteQueuedSavingsPlanResponse = Shapes::StructureShape.new(name: 'DeleteQueuedSavingsPlanResponse')
22
25
  DescribeSavingsPlanRatesRequest = Shapes::StructureShape.new(name: 'DescribeSavingsPlanRatesRequest')
23
26
  DescribeSavingsPlanRatesResponse = Shapes::StructureShape.new(name: 'DescribeSavingsPlanRatesResponse')
24
27
  DescribeSavingsPlansOfferingRatesRequest = Shapes::StructureShape.new(name: 'DescribeSavingsPlansOfferingRatesRequest')
@@ -117,6 +120,7 @@ module Aws::SavingsPlans
117
120
  CreateSavingsPlanRequest.add_member(:savings_plan_offering_id, Shapes::ShapeRef.new(shape: SavingsPlanOfferingId, required: true, location_name: "savingsPlanOfferingId"))
118
121
  CreateSavingsPlanRequest.add_member(:commitment, Shapes::ShapeRef.new(shape: Amount, required: true, location_name: "commitment"))
119
122
  CreateSavingsPlanRequest.add_member(:upfront_payment_amount, Shapes::ShapeRef.new(shape: Amount, location_name: "upfrontPaymentAmount"))
123
+ CreateSavingsPlanRequest.add_member(:purchase_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "purchaseTime"))
120
124
  CreateSavingsPlanRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
121
125
  CreateSavingsPlanRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
122
126
  CreateSavingsPlanRequest.struct_class = Types::CreateSavingsPlanRequest
@@ -126,6 +130,11 @@ module Aws::SavingsPlans
126
130
 
127
131
  CurrencyList.member = Shapes::ShapeRef.new(shape: CurrencyCode)
128
132
 
133
+ DeleteQueuedSavingsPlanRequest.add_member(:savings_plan_id, Shapes::ShapeRef.new(shape: SavingsPlanId, required: true, location_name: "savingsPlanId"))
134
+ DeleteQueuedSavingsPlanRequest.struct_class = Types::DeleteQueuedSavingsPlanRequest
135
+
136
+ DeleteQueuedSavingsPlanResponse.struct_class = Types::DeleteQueuedSavingsPlanResponse
137
+
129
138
  DescribeSavingsPlanRatesRequest.add_member(:savings_plan_id, Shapes::ShapeRef.new(shape: SavingsPlanId, required: true, location_name: "savingsPlanId"))
130
139
  DescribeSavingsPlanRatesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: SavingsPlanRateFilterList, location_name: "filters"))
131
140
  DescribeSavingsPlanRatesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
@@ -395,6 +404,18 @@ module Aws::SavingsPlans
395
404
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
396
405
  end)
397
406
 
407
+ api.add_operation(:delete_queued_savings_plan, Seahorse::Model::Operation.new.tap do |o|
408
+ o.name = "DeleteQueuedSavingsPlan"
409
+ o.http_method = "POST"
410
+ o.http_request_uri = "/DeleteQueuedSavingsPlan"
411
+ o.input = Shapes::ShapeRef.new(shape: DeleteQueuedSavingsPlanRequest)
412
+ o.output = Shapes::ShapeRef.new(shape: DeleteQueuedSavingsPlanResponse)
413
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
414
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
415
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
416
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
417
+ end)
418
+
398
419
  api.add_operation(:describe_savings_plan_rates, Seahorse::Model::Operation.new.tap do |o|
399
420
  o.name = "DescribeSavingsPlanRates"
400
421
  o.http_method = "POST"
@@ -17,6 +17,7 @@ module Aws::SavingsPlans
17
17
  # savings_plan_offering_id: "SavingsPlanOfferingId", # required
18
18
  # commitment: "Amount", # required
19
19
  # upfront_payment_amount: "Amount",
20
+ # purchase_time: Time.now,
20
21
  # client_token: "ClientToken",
21
22
  # tags: {
22
23
  # "TagKey" => "TagValue",
@@ -39,6 +40,11 @@ module Aws::SavingsPlans
39
40
  # supported only if the payment option is `Partial Upfront`.
40
41
  # @return [String]
41
42
  #
43
+ # @!attribute [rw] purchase_time
44
+ # The time at which to purchase the Savings Plan, in UTC format
45
+ # (YYYY-MM-DDTHH:MM:SSZ).
46
+ # @return [Time]
47
+ #
42
48
  # @!attribute [rw] client_token
43
49
  # Unique, case-sensitive identifier that you provide to ensure the
44
50
  # idempotency of the request.
@@ -57,6 +63,7 @@ module Aws::SavingsPlans
57
63
  :savings_plan_offering_id,
58
64
  :commitment,
59
65
  :upfront_payment_amount,
66
+ :purchase_time,
60
67
  :client_token,
61
68
  :tags)
62
69
  SENSITIVE = []
@@ -75,6 +82,29 @@ module Aws::SavingsPlans
75
82
  include Aws::Structure
76
83
  end
77
84
 
85
+ # @note When making an API call, you may pass DeleteQueuedSavingsPlanRequest
86
+ # data as a hash:
87
+ #
88
+ # {
89
+ # savings_plan_id: "SavingsPlanId", # required
90
+ # }
91
+ #
92
+ # @!attribute [rw] savings_plan_id
93
+ # The ID of the Savings Plan.
94
+ # @return [String]
95
+ #
96
+ # @see http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DeleteQueuedSavingsPlanRequest AWS API Documentation
97
+ #
98
+ class DeleteQueuedSavingsPlanRequest < Struct.new(
99
+ :savings_plan_id)
100
+ SENSITIVE = []
101
+ include Aws::Structure
102
+ end
103
+
104
+ # @see http://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DeleteQueuedSavingsPlanResponse AWS API Documentation
105
+ #
106
+ class DeleteQueuedSavingsPlanResponse < Aws::EmptyStructure; end
107
+
78
108
  # @note When making an API call, you may pass DescribeSavingsPlanRatesRequest
79
109
  # data as a hash:
80
110
  #
@@ -150,7 +180,7 @@ module Aws::SavingsPlans
150
180
  # savings_plan_payment_options: ["All Upfront"], # accepts All Upfront, Partial Upfront, No Upfront
151
181
  # savings_plan_types: ["Compute"], # accepts Compute, EC2Instance
152
182
  # products: ["EC2"], # accepts EC2, Fargate, Lambda
153
- # service_codes: ["AmazonEC2"], # accepts AmazonEC2, AmazonECS, AmazonEKS, AWSLambda
183
+ # service_codes: ["AmazonEC2"], # accepts AmazonEC2, AmazonECS, AWSLambda
154
184
  # usage_types: ["SavingsPlanRateUsageType"],
155
185
  # operations: ["SavingsPlanRateOperation"],
156
186
  # filters: [
@@ -364,7 +394,7 @@ module Aws::SavingsPlans
364
394
  # savings_plan_ids: ["SavingsPlanId"],
365
395
  # next_token: "PaginationToken",
366
396
  # max_results: 1,
367
- # states: ["payment-pending"], # accepts payment-pending, payment-failed, active, retired
397
+ # states: ["payment-pending"], # accepts payment-pending, payment-failed, active, retired, queued, queued-deleted
368
398
  # filters: [
369
399
  # {
370
400
  # name: "region", # accepts region, ec2-instance-family, commitment, upfront, term, savings-plan-type, payment-option, start, 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.10.0
4
+ version: 1.11.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: 2020-09-15 00:00:00.000000000 Z
11
+ date: 2020-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core