aws-sdk-savingsplans 1.8.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-savingsplans.rb +3 -2
- data/lib/aws-sdk-savingsplans/client.rb +55 -13
- data/lib/aws-sdk-savingsplans/client_api.rb +21 -0
- data/lib/aws-sdk-savingsplans/types.rb +32 -2
- 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: 8b66d657d4c1b13cb1f66d4d1d3cc80641a49234ae08cf47cb19b7776eb7a15d
|
4
|
+
data.tar.gz: e4d9b7aa0923bd0ccd4bb086ea30b278239faaac4738884fb27c9da2bba6eafe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b451e4fd2fc9ef3f576f3be1ccb7e77526437d93d85ee12e4d7f6422f34cfb32d25cde15c93d0ca7cf07a288f38a88e945f14fa2f538ae35cb03ec1ab2c250b
|
7
|
+
data.tar.gz: dc41fe90621dc53ecef19664c1913d03adb31aa1a2f8869fc2a11f93a1d1c45a7c7d4a62c3cd1919f10e2b9a62d4816cf0f187f7bace26be63c40e430bef793d
|
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.13.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
|
@@ -410,7 +452,7 @@ module Aws::SavingsPlans
|
|
410
452
|
# resp.search_results[0].currency #=> String, one of "CNY", "USD"
|
411
453
|
# resp.search_results[0].unit #=> String, one of "Hrs", "Lambda-GB-Second", "Request"
|
412
454
|
# resp.search_results[0].product_type #=> String, one of "EC2", "Fargate", "Lambda"
|
413
|
-
# resp.search_results[0].service_code #=> String, one of "AmazonEC2", "AmazonECS", "
|
455
|
+
# resp.search_results[0].service_code #=> String, one of "AmazonEC2", "AmazonECS", "AWSLambda"
|
414
456
|
# resp.search_results[0].usage_type #=> String
|
415
457
|
# resp.search_results[0].operation #=> String
|
416
458
|
# resp.search_results[0].properties #=> Array
|
@@ -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"
|
@@ -550,7 +592,7 @@ module Aws::SavingsPlans
|
|
550
592
|
# savings_plan_payment_options: ["All Upfront"], # accepts All Upfront, Partial Upfront, No Upfront
|
551
593
|
# savings_plan_types: ["Compute"], # accepts Compute, EC2Instance
|
552
594
|
# products: ["EC2"], # accepts EC2, Fargate, Lambda
|
553
|
-
# service_codes: ["AmazonEC2"], # accepts AmazonEC2, AmazonECS,
|
595
|
+
# service_codes: ["AmazonEC2"], # accepts AmazonEC2, AmazonECS, AWSLambda
|
554
596
|
# usage_types: ["SavingsPlanRateUsageType"],
|
555
597
|
# operations: ["SavingsPlanRateOperation"],
|
556
598
|
# filters: [
|
@@ -575,7 +617,7 @@ module Aws::SavingsPlans
|
|
575
617
|
# resp.search_results[0].rate #=> String
|
576
618
|
# resp.search_results[0].unit #=> String, one of "Hrs", "Lambda-GB-Second", "Request"
|
577
619
|
# resp.search_results[0].product_type #=> String, one of "EC2", "Fargate", "Lambda"
|
578
|
-
# resp.search_results[0].service_code #=> String, one of "AmazonEC2", "AmazonECS", "
|
620
|
+
# resp.search_results[0].service_code #=> String, one of "AmazonEC2", "AmazonECS", "AWSLambda"
|
579
621
|
# resp.search_results[0].usage_type #=> String
|
580
622
|
# resp.search_results[0].operation #=> String
|
581
623
|
# resp.search_results[0].properties #=> Array
|
@@ -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.13.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
|
#
|
@@ -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,
|
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.
|
4
|
+
version: 1.13.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:
|
11
|
+
date: 2021-02-02 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.112.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.112.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|