aws-sdk-pricing 1.54.0 → 1.56.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-pricing/client.rb +1 -1
- data/lib/aws-sdk-pricing/client_api.rb +15 -0
- data/lib/aws-sdk-pricing/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-pricing/errors.rb +44 -0
- data/lib/aws-sdk-pricing/types.rb +26 -0
- data/lib/aws-sdk-pricing.rb +1 -1
- data/sig/errors.rbs +6 -0
- data/sig/types.rbs +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5cbfef041279b69022fb48e932dbd8d2ff2d6b24376655f876827defab400b2
|
4
|
+
data.tar.gz: 9388777dd0676d4845c991d19c41ca8e38120c702538b2b75633ba782a38593b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64706d06184d249ec8bbcfc2a7e7698d1b54afb923b6fcb3144e2de934abac365195b708b3771488a950cb5e8363a26c80a275c910f6f7303ba3990012d561ae
|
7
|
+
data.tar.gz: 63214201809f976138a86c00a37c994ac6323ab2e31765bbca5d30a0cb8dd0487544866dfc1e91dac3496cd3737a94837795cc93c71409b1ae4fe0908d2efd99
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.56.0 (2024-03-22)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Add ResourceNotFoundException to ListPriceLists and GetPriceListFileUrl APIs
|
8
|
+
|
9
|
+
1.55.0 (2024-02-09)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add Throttling Exception to all APIs.
|
13
|
+
|
4
14
|
1.54.0 (2024-01-26)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.56.0
|
@@ -46,11 +46,13 @@ module Aws::Pricing
|
|
46
46
|
PriceListJsonItems = Shapes::ListShape.new(name: 'PriceListJsonItems')
|
47
47
|
PriceLists = Shapes::ListShape.new(name: 'PriceLists')
|
48
48
|
RegionCode = Shapes::StringShape.new(name: 'RegionCode')
|
49
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
49
50
|
Service = Shapes::StructureShape.new(name: 'Service')
|
50
51
|
ServiceCode = Shapes::StringShape.new(name: 'ServiceCode')
|
51
52
|
ServiceList = Shapes::ListShape.new(name: 'ServiceList')
|
52
53
|
String = Shapes::StringShape.new(name: 'String')
|
53
54
|
SynthesizedJsonPriceListJsonItem = Shapes::StringShape.new(name: 'SynthesizedJsonPriceListJsonItem')
|
55
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
54
56
|
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
55
57
|
|
56
58
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
|
@@ -149,12 +151,18 @@ module Aws::Pricing
|
|
149
151
|
|
150
152
|
PriceLists.member = Shapes::ShapeRef.new(shape: PriceList)
|
151
153
|
|
154
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
|
155
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
156
|
+
|
152
157
|
Service.add_member(:service_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ServiceCode"))
|
153
158
|
Service.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributeNames"))
|
154
159
|
Service.struct_class = Types::Service
|
155
160
|
|
156
161
|
ServiceList.member = Shapes::ShapeRef.new(shape: Service)
|
157
162
|
|
163
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
|
164
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
165
|
+
|
158
166
|
|
159
167
|
# @api private
|
160
168
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -185,6 +193,7 @@ module Aws::Pricing
|
|
185
193
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
186
194
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
187
195
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
196
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
188
197
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
189
198
|
o[:pager] = Aws::Pager.new(
|
190
199
|
limit_key: "max_results",
|
@@ -204,6 +213,7 @@ module Aws::Pricing
|
|
204
213
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
205
214
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
206
215
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
216
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
207
217
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
208
218
|
o[:pager] = Aws::Pager.new(
|
209
219
|
limit_key: "max_results",
|
@@ -223,6 +233,8 @@ module Aws::Pricing
|
|
223
233
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
224
234
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
225
235
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
236
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
237
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
226
238
|
end)
|
227
239
|
|
228
240
|
api.add_operation(:get_products, Seahorse::Model::Operation.new.tap do |o|
|
@@ -235,6 +247,7 @@ module Aws::Pricing
|
|
235
247
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
236
248
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
237
249
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
250
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
238
251
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
239
252
|
o[:pager] = Aws::Pager.new(
|
240
253
|
limit_key: "max_results",
|
@@ -255,6 +268,8 @@ module Aws::Pricing
|
|
255
268
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
256
269
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
257
270
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
271
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
272
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
258
273
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
259
274
|
o[:pager] = Aws::Pager.new(
|
260
275
|
limit_key: "max_results",
|
@@ -32,7 +32,7 @@ module Aws::Pricing
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://api.pricing-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -33,6 +33,8 @@ module Aws::Pricing
|
|
33
33
|
# * {InvalidNextTokenException}
|
34
34
|
# * {InvalidParameterException}
|
35
35
|
# * {NotFoundException}
|
36
|
+
# * {ResourceNotFoundException}
|
37
|
+
# * {ThrottlingException}
|
36
38
|
#
|
37
39
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
38
40
|
# if they are not defined above.
|
@@ -83,6 +85,10 @@ module Aws::Pricing
|
|
83
85
|
def message
|
84
86
|
@message || @data[:message]
|
85
87
|
end
|
88
|
+
|
89
|
+
def retryable?
|
90
|
+
true
|
91
|
+
end
|
86
92
|
end
|
87
93
|
|
88
94
|
class InvalidNextTokenException < ServiceError
|
@@ -130,5 +136,43 @@ module Aws::Pricing
|
|
130
136
|
end
|
131
137
|
end
|
132
138
|
|
139
|
+
class ResourceNotFoundException < ServiceError
|
140
|
+
|
141
|
+
# @param [Seahorse::Client::RequestContext] context
|
142
|
+
# @param [String] message
|
143
|
+
# @param [Aws::Pricing::Types::ResourceNotFoundException] data
|
144
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
145
|
+
super(context, message, data)
|
146
|
+
end
|
147
|
+
|
148
|
+
# @return [String]
|
149
|
+
def message
|
150
|
+
@message || @data[:message]
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class ThrottlingException < ServiceError
|
155
|
+
|
156
|
+
# @param [Seahorse::Client::RequestContext] context
|
157
|
+
# @param [String] message
|
158
|
+
# @param [Aws::Pricing::Types::ThrottlingException] data
|
159
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
160
|
+
super(context, message, data)
|
161
|
+
end
|
162
|
+
|
163
|
+
# @return [String]
|
164
|
+
def message
|
165
|
+
@message || @data[:message]
|
166
|
+
end
|
167
|
+
|
168
|
+
def retryable?
|
169
|
+
true
|
170
|
+
end
|
171
|
+
|
172
|
+
def throttling?
|
173
|
+
true
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
133
177
|
end
|
134
178
|
end
|
@@ -488,6 +488,19 @@ module Aws::Pricing
|
|
488
488
|
include Aws::Structure
|
489
489
|
end
|
490
490
|
|
491
|
+
# The requested resource can't be found.
|
492
|
+
#
|
493
|
+
# @!attribute [rw] message
|
494
|
+
# @return [String]
|
495
|
+
#
|
496
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pricing-2017-10-15/ResourceNotFoundException AWS API Documentation
|
497
|
+
#
|
498
|
+
class ResourceNotFoundException < Struct.new(
|
499
|
+
:message)
|
500
|
+
SENSITIVE = []
|
501
|
+
include Aws::Structure
|
502
|
+
end
|
503
|
+
|
491
504
|
# The metadata for a service, such as the service code and available
|
492
505
|
# attribute names.
|
493
506
|
#
|
@@ -508,5 +521,18 @@ module Aws::Pricing
|
|
508
521
|
include Aws::Structure
|
509
522
|
end
|
510
523
|
|
524
|
+
# You've made too many requests exceeding service quotas.
|
525
|
+
#
|
526
|
+
# @!attribute [rw] message
|
527
|
+
# @return [String]
|
528
|
+
#
|
529
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pricing-2017-10-15/ThrottlingException AWS API Documentation
|
530
|
+
#
|
531
|
+
class ThrottlingException < Struct.new(
|
532
|
+
:message)
|
533
|
+
SENSITIVE = []
|
534
|
+
include Aws::Structure
|
535
|
+
end
|
536
|
+
|
511
537
|
end
|
512
538
|
end
|
data/lib/aws-sdk-pricing.rb
CHANGED
data/sig/errors.rbs
CHANGED
@@ -29,6 +29,12 @@ module Aws
|
|
29
29
|
class NotFoundException < ::Aws::Errors::ServiceError
|
30
30
|
def message: () -> ::String
|
31
31
|
end
|
32
|
+
class ResourceNotFoundException < ::Aws::Errors::ServiceError
|
33
|
+
def message: () -> ::String
|
34
|
+
end
|
35
|
+
class ThrottlingException < ::Aws::Errors::ServiceError
|
36
|
+
def message: () -> ::String
|
37
|
+
end
|
32
38
|
end
|
33
39
|
end
|
34
40
|
end
|
data/sig/types.rbs
CHANGED
@@ -130,10 +130,20 @@ module Aws::Pricing
|
|
130
130
|
SENSITIVE: []
|
131
131
|
end
|
132
132
|
|
133
|
+
class ResourceNotFoundException
|
134
|
+
attr_accessor message: ::String
|
135
|
+
SENSITIVE: []
|
136
|
+
end
|
137
|
+
|
133
138
|
class Service
|
134
139
|
attr_accessor service_code: ::String
|
135
140
|
attr_accessor attribute_names: ::Array[::String]
|
136
141
|
SENSITIVE: []
|
137
142
|
end
|
143
|
+
|
144
|
+
class ThrottlingException
|
145
|
+
attr_accessor message: ::String
|
146
|
+
SENSITIVE: []
|
147
|
+
end
|
138
148
|
end
|
139
149
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-pricing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.56.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|