aws-sdk-savingsplans 1.7.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-savingsplans.rb +3 -2
- data/lib/aws-sdk-savingsplans/client.rb +52 -10
- data/lib/aws-sdk-savingsplans/client_api.rb +21 -0
- data/lib/aws-sdk-savingsplans/types.rb +31 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b615aec0f38e0d0e5ea3fa769a4b01b7443fb941270a64855190c34ab866a495
|
4
|
+
data.tar.gz: 51b1641f8988e42831a41eb83c82689023885d4c3140cef11968c6be81ec79a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 499c8b64a97f56daaa3c28d6b31a4c494b30295d92b5ff91d4523f2c2199ed391edf207c4a54f8446778e64a5347fd8c67eb4feb63254b321b572811bfbc5a0e
|
7
|
+
data.tar.gz: c5904048dfbbf8f0bc1fe4572873bfe727d2e97c021cd40756665e01706e1c35ecfd3defa2954c74ac9bbfbf2edc62f17e4b6bae7be0d3cb1a4371c42d4e1b41
|
data/lib/aws-sdk-savingsplans.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-savingsplans/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::SavingsPlans
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.12.0'
|
51
52
|
|
52
53
|
end
|
@@ -85,13 +85,28 @@ module Aws::SavingsPlans
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::SavingsPlans
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -327,6 +342,10 @@ module Aws::SavingsPlans
|
|
327
342
|
# percent of the total value of the Savings Plan. This parameter is
|
328
343
|
# supported only if the payment option is `Partial Upfront`.
|
329
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
|
+
#
|
330
349
|
# @option params [String] :client_token
|
331
350
|
# Unique, case-sensitive identifier that you provide to ensure the
|
332
351
|
# idempotency of the request.
|
@@ -347,6 +366,7 @@ module Aws::SavingsPlans
|
|
347
366
|
# savings_plan_offering_id: "SavingsPlanOfferingId", # required
|
348
367
|
# commitment: "Amount", # required
|
349
368
|
# upfront_payment_amount: "Amount",
|
369
|
+
# purchase_time: Time.now,
|
350
370
|
# client_token: "ClientToken",
|
351
371
|
# tags: {
|
352
372
|
# "TagKey" => "TagValue",
|
@@ -366,6 +386,28 @@ module Aws::SavingsPlans
|
|
366
386
|
req.send_request(options)
|
367
387
|
end
|
368
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
|
+
|
369
411
|
# Describes the specified Savings Plans rates.
|
370
412
|
#
|
371
413
|
# @option params [required, String] :savings_plan_id
|
@@ -461,7 +503,7 @@ module Aws::SavingsPlans
|
|
461
503
|
# savings_plan_ids: ["SavingsPlanId"],
|
462
504
|
# next_token: "PaginationToken",
|
463
505
|
# max_results: 1,
|
464
|
-
# states: ["payment-pending"], # accepts payment-pending, payment-failed, active, retired
|
506
|
+
# states: ["payment-pending"], # accepts payment-pending, payment-failed, active, retired, queued, queued-deleted
|
465
507
|
# filters: [
|
466
508
|
# {
|
467
509
|
# name: "region", # accepts region, ec2-instance-family, commitment, upfront, term, savings-plan-type, payment-option, start, end
|
@@ -479,7 +521,7 @@ module Aws::SavingsPlans
|
|
479
521
|
# resp.savings_plans[0].description #=> String
|
480
522
|
# resp.savings_plans[0].start #=> String
|
481
523
|
# resp.savings_plans[0].end #=> String
|
482
|
-
# 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"
|
483
525
|
# resp.savings_plans[0].region #=> String
|
484
526
|
# resp.savings_plans[0].ec2_instance_family #=> String
|
485
527
|
# resp.savings_plans[0].savings_plan_type #=> String, one of "Compute", "EC2Instance"
|
@@ -788,7 +830,7 @@ module Aws::SavingsPlans
|
|
788
830
|
params: params,
|
789
831
|
config: config)
|
790
832
|
context[:gem_name] = 'aws-sdk-savingsplans'
|
791
|
-
context[:gem_version] = '1.
|
833
|
+
context[:gem_version] = '1.12.0'
|
792
834
|
Seahorse::Client::Request.new(handlers, context)
|
793
835
|
end
|
794
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
|
#
|
@@ -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.
|
4
|
+
version: 1.12.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-
|
11
|
+
date: 2020-09-30 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.
|
22
|
+
version: 3.109.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.
|
32
|
+
version: 3.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|