aws-sdk-pricing 1.54.0 → 1.55.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-pricing/client.rb +1 -1
- data/lib/aws-sdk-pricing/client_api.rb +9 -0
- data/lib/aws-sdk-pricing/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-pricing/errors.rb +28 -0
- data/lib/aws-sdk-pricing/types.rb +13 -0
- data/lib/aws-sdk-pricing.rb +1 -1
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +5 -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: 66f60eda358c471fd39dbd6dbd59d0ae928cee6ad4a71d368cdb9a0b7e48db90
|
4
|
+
data.tar.gz: 9e41aac5f8d0e62c2dd3da948c837e5a2e7c95ba2f60d60aeb30f12a4a1218d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '084a76618400ecab6e69d33e38998eb43e86eab2c5382c7fe1535fbea8c0dfc034a122070cd1c334f1a2cdef6f955a24caa7920b65861964a5f6be8c92c00a91'
|
7
|
+
data.tar.gz: 876eb32e6aa0eb71cc761aa9866809bbf83e8b9dbec7d7cb9a5e3ef6a6ab995eceddfa245e0385c83de871345c578f4bba89bf142cb941be4fcd8430c0d98f8e
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.55.0
|
@@ -51,6 +51,7 @@ module Aws::Pricing
|
|
51
51
|
ServiceList = Shapes::ListShape.new(name: 'ServiceList')
|
52
52
|
String = Shapes::StringShape.new(name: 'String')
|
53
53
|
SynthesizedJsonPriceListJsonItem = Shapes::StringShape.new(name: 'SynthesizedJsonPriceListJsonItem')
|
54
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
54
55
|
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
55
56
|
|
56
57
|
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
|
@@ -155,6 +156,9 @@ module Aws::Pricing
|
|
155
156
|
|
156
157
|
ServiceList.member = Shapes::ShapeRef.new(shape: Service)
|
157
158
|
|
159
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "Message"))
|
160
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
161
|
+
|
158
162
|
|
159
163
|
# @api private
|
160
164
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -185,6 +189,7 @@ module Aws::Pricing
|
|
185
189
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
186
190
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
187
191
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
192
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
188
193
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
189
194
|
o[:pager] = Aws::Pager.new(
|
190
195
|
limit_key: "max_results",
|
@@ -204,6 +209,7 @@ module Aws::Pricing
|
|
204
209
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
205
210
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
206
211
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
212
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
207
213
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
208
214
|
o[:pager] = Aws::Pager.new(
|
209
215
|
limit_key: "max_results",
|
@@ -223,6 +229,7 @@ module Aws::Pricing
|
|
223
229
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
224
230
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
225
231
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
232
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
226
233
|
end)
|
227
234
|
|
228
235
|
api.add_operation(:get_products, Seahorse::Model::Operation.new.tap do |o|
|
@@ -235,6 +242,7 @@ module Aws::Pricing
|
|
235
242
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
|
236
243
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
237
244
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
245
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
238
246
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
239
247
|
o[:pager] = Aws::Pager.new(
|
240
248
|
limit_key: "max_results",
|
@@ -255,6 +263,7 @@ module Aws::Pricing
|
|
255
263
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
256
264
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
257
265
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
258
267
|
o.errors << Shapes::ShapeRef.new(shape: ExpiredNextTokenException)
|
259
268
|
o[:pager] = Aws::Pager.new(
|
260
269
|
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,7 @@ module Aws::Pricing
|
|
33
33
|
# * {InvalidNextTokenException}
|
34
34
|
# * {InvalidParameterException}
|
35
35
|
# * {NotFoundException}
|
36
|
+
# * {ThrottlingException}
|
36
37
|
#
|
37
38
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
38
39
|
# if they are not defined above.
|
@@ -83,6 +84,10 @@ module Aws::Pricing
|
|
83
84
|
def message
|
84
85
|
@message || @data[:message]
|
85
86
|
end
|
87
|
+
|
88
|
+
def retryable?
|
89
|
+
true
|
90
|
+
end
|
86
91
|
end
|
87
92
|
|
88
93
|
class InvalidNextTokenException < ServiceError
|
@@ -130,5 +135,28 @@ module Aws::Pricing
|
|
130
135
|
end
|
131
136
|
end
|
132
137
|
|
138
|
+
class ThrottlingException < ServiceError
|
139
|
+
|
140
|
+
# @param [Seahorse::Client::RequestContext] context
|
141
|
+
# @param [String] message
|
142
|
+
# @param [Aws::Pricing::Types::ThrottlingException] data
|
143
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
144
|
+
super(context, message, data)
|
145
|
+
end
|
146
|
+
|
147
|
+
# @return [String]
|
148
|
+
def message
|
149
|
+
@message || @data[:message]
|
150
|
+
end
|
151
|
+
|
152
|
+
def retryable?
|
153
|
+
true
|
154
|
+
end
|
155
|
+
|
156
|
+
def throttling?
|
157
|
+
true
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
133
161
|
end
|
134
162
|
end
|
@@ -508,5 +508,18 @@ module Aws::Pricing
|
|
508
508
|
include Aws::Structure
|
509
509
|
end
|
510
510
|
|
511
|
+
# You've made too many requests exceeding service quotas.
|
512
|
+
#
|
513
|
+
# @!attribute [rw] message
|
514
|
+
# @return [String]
|
515
|
+
#
|
516
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/pricing-2017-10-15/ThrottlingException AWS API Documentation
|
517
|
+
#
|
518
|
+
class ThrottlingException < Struct.new(
|
519
|
+
:message)
|
520
|
+
SENSITIVE = []
|
521
|
+
include Aws::Structure
|
522
|
+
end
|
523
|
+
|
511
524
|
end
|
512
525
|
end
|
data/lib/aws-sdk-pricing.rb
CHANGED
data/sig/errors.rbs
CHANGED
data/sig/types.rbs
CHANGED
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.55.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-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|