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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9b0b3c508ef3506b5c1cf7df0b4c97d82b04a2e0556d9a4aa1b5f0e61d5b43b
4
- data.tar.gz: f26412a43e7e58c3bfdf6437b65d4107a6c161c4107e7c36cd339bb130e35f10
3
+ metadata.gz: 66f60eda358c471fd39dbd6dbd59d0ae928cee6ad4a71d368cdb9a0b7e48db90
4
+ data.tar.gz: 9e41aac5f8d0e62c2dd3da948c837e5a2e7c95ba2f60d60aeb30f12a4a1218d0
5
5
  SHA512:
6
- metadata.gz: 86d8bf180f3cf2e59a5359bb1fa26f987de9125ce02d28e7b840c1fbcf5f7dd26171e07c84abb141d5eb9d9f18892e1211a5d8fec743d6018221d6fc4c61e1fc
7
- data.tar.gz: c53935ed53633dd4161bc3091db68a30ceda8f754b8d867421fafec87bfcf4bd78bae7e61c48083f4495c3812083b351d9fe6612f594e7be64f478087174ba7e
6
+ metadata.gz: '084a76618400ecab6e69d33e38998eb43e86eab2c5382c7fe1535fbea8c0dfc034a122070cd1c334f1a2cdef6f955a24caa7920b65861964a5f6be8c92c00a91'
7
+ data.tar.gz: 876eb32e6aa0eb71cc761aa9866809bbf83e8b9dbec7d7cb9a5e3ef6a6ab995eceddfa245e0385c83de871345c578f4bba89bf142cb941be4fcd8430c0d98f8e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.55.0 (2024-02-09)
5
+ ------------------
6
+
7
+ * Feature - Add Throttling Exception to all APIs.
8
+
4
9
  1.54.0 (2024-01-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.54.0
1
+ 1.55.0
@@ -743,7 +743,7 @@ module Aws::Pricing
743
743
  params: params,
744
744
  config: config)
745
745
  context[:gem_name] = 'aws-sdk-pricing'
746
- context[:gem_version] = '1.54.0'
746
+ context[:gem_version] = '1.55.0'
747
747
  Seahorse::Client::Request.new(handlers, context)
748
748
  end
749
749
 
@@ -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?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
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
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-pricing/customizations'
53
53
  # @!group service
54
54
  module Aws::Pricing
55
55
 
56
- GEM_VERSION = '1.54.0'
56
+ GEM_VERSION = '1.55.0'
57
57
 
58
58
  end
data/sig/errors.rbs CHANGED
@@ -29,6 +29,9 @@ module Aws
29
29
  class NotFoundException < ::Aws::Errors::ServiceError
30
30
  def message: () -> ::String
31
31
  end
32
+ class ThrottlingException < ::Aws::Errors::ServiceError
33
+ def message: () -> ::String
34
+ end
32
35
  end
33
36
  end
34
37
  end
data/sig/types.rbs CHANGED
@@ -135,5 +135,10 @@ module Aws::Pricing
135
135
  attr_accessor attribute_names: ::Array[::String]
136
136
  SENSITIVE: []
137
137
  end
138
+
139
+ class ThrottlingException
140
+ attr_accessor message: ::String
141
+ SENSITIVE: []
142
+ end
138
143
  end
139
144
  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.54.0
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-01-26 00:00:00.000000000 Z
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