aws-sdk-glacier 1.26.0 → 1.27.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8b1a34ce0557362251e81d5c40e56bd82f88f9fb
4
- data.tar.gz: a82a6a1393d38461263dd9b1dce7c98e69976fec
2
+ SHA256:
3
+ metadata.gz: f480a340b8cfc70e0f8fe97da80a955942c56f01c3c58a71daaa80fec2185bd9
4
+ data.tar.gz: 85357091032999177fd62fb97f6c260104585a7386932f1ced55b98e756f9e64
5
5
  SHA512:
6
- metadata.gz: f180c785206f04f08a8c3e0e10489201f735dfd8c9134a4a284f0920d203f96ee5021f614059d7f373dd2570dba497f8cfa175e670abe6c5bdc02207793d13c5
7
- data.tar.gz: 3fedd4d23221c1953b30f0ae631b678d77bf92dd91a482bbf5de02abd78c0437159fa67e892a3a2dd9eae6065898debf5c7e058824f1e385579a0a47e96b4f59
6
+ metadata.gz: 639bf4bd747ce74626dadf28d755e9e8c6059d5cdb034c810f596390a79716b1274c431bead9e4ccbdd5ae433e01f10ba739a025ee188280a61c59747abff04e
7
+ data.tar.gz: b91bcb03422a82728be18322b3749ad6fec5115addc4428f4160408d4c7a8f34a27d9c60ff4878553d89c467fe788569d8073c6408b06478234e1e096912f7ff
@@ -31,17 +31,20 @@ require_relative 'aws-sdk-glacier/customizations'
31
31
  # methods each accept a hash of request parameters and return a response
32
32
  # structure.
33
33
  #
34
+ # glacier = Aws::Glacier::Client.new
35
+ # resp = glacier.abort_multipart_upload(params)
36
+ #
34
37
  # See {Client} for more information.
35
38
  #
36
39
  # # Errors
37
40
  #
38
- # Errors returned from Amazon Glacier all
39
- # extend {Errors::ServiceError}.
41
+ # Errors returned from Amazon Glacier are defined in the
42
+ # {Errors} module and all extend {Errors::ServiceError}.
40
43
  #
41
44
  # begin
42
45
  # # do stuff
43
46
  # rescue Aws::Glacier::Errors::ServiceError
44
- # # rescues all service API errors
47
+ # # rescues all Amazon Glacier API errors
45
48
  # end
46
49
  #
47
50
  # See {Errors} for more information.
@@ -49,6 +52,6 @@ require_relative 'aws-sdk-glacier/customizations'
49
52
  # @service
50
53
  module Aws::Glacier
51
54
 
52
- GEM_VERSION = '1.26.0'
55
+ GEM_VERSION = '1.27.0'
53
56
 
54
57
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Glacier
9
+
9
10
  class Account
10
11
 
11
12
  extend Aws::Deprecations
@@ -21,6 +22,7 @@ module Aws::Glacier
21
22
  @id = extract_id(args, options)
22
23
  @data = Aws::EmptyStructure.new
23
24
  @client = options.delete(:client) || Client.new(options)
25
+ @waiter_block_warned = false
24
26
  end
25
27
 
26
28
  # @!group Read-Only Attributes
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Glacier
9
+
9
10
  class Archive
10
11
 
11
12
  extend Aws::Deprecations
@@ -27,6 +28,7 @@ module Aws::Glacier
27
28
  @id = extract_id(args, options)
28
29
  @data = Aws::EmptyStructure.new
29
30
  @client = options.delete(:client) || Client.new(options)
31
+ @waiter_block_warned = false
30
32
  end
31
33
 
32
34
  # @!group Read-Only Attributes
@@ -33,6 +33,18 @@ require 'aws-sdk-glacier/plugins/checksums.rb'
33
33
  Aws::Plugins::GlobalConfiguration.add_identifier(:glacier)
34
34
 
35
35
  module Aws::Glacier
36
+ # An API client for Glacier. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::Glacier::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
43
+ #
44
+ # For details on configuring region and credentials see
45
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
46
+ #
47
+ # See {#initialize} for a full list of supported configuration options.
36
48
  class Client < Seahorse::Client::Base
37
49
 
38
50
  include Aws::ClientStubs
@@ -119,6 +131,12 @@ module Aws::Glacier
119
131
  # When set to `true`, a thread polling for endpoints will be running in
120
132
  # the background every 60 secs (default). Defaults to `false`.
121
133
  #
134
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
135
+ # Used only in `adaptive` retry mode. When true, the request will sleep
136
+ # until there is sufficent client side capacity to retry the request.
137
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
138
+ # not retry instead of sleeping.
139
+ #
122
140
  # @option options [Boolean] :client_side_monitoring (false)
123
141
  # When `true`, client-side metrics will be collected for all API requests from
124
142
  # this client.
@@ -143,6 +161,10 @@ module Aws::Glacier
143
161
  # When `true`, an attempt is made to coerce request parameters into
144
162
  # the required types.
145
163
  #
164
+ # @option options [Boolean] :correct_clock_skew (true)
165
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
166
+ # a clock skew correction and retry requests with skewed client clocks.
167
+ #
146
168
  # @option options [Boolean] :disable_host_prefix_injection (false)
147
169
  # Set to true to disable SDK automatically adding host prefix
148
170
  # to default service endpoint when available.
@@ -177,15 +199,29 @@ module Aws::Glacier
177
199
  # The Logger instance to send log messages to. If this option
178
200
  # is not set, logging will be disabled.
179
201
  #
202
+ # @option options [Integer] :max_attempts (3)
203
+ # An integer representing the maximum number attempts that will be made for
204
+ # a single request, including the initial attempt. For example,
205
+ # setting this value to 5 will result in a request being retried up to
206
+ # 4 times. Used in `standard` and `adaptive` retry modes.
207
+ #
180
208
  # @option options [String] :profile ("default")
181
209
  # Used when loading credentials from the shared credentials file
182
210
  # at HOME/.aws/credentials. When not specified, 'default' is used.
183
211
  #
212
+ # @option options [Proc] :retry_backoff
213
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
214
+ # This option is only used in the `legacy` retry mode.
215
+ #
184
216
  # @option options [Float] :retry_base_delay (0.3)
185
- # The base delay in seconds used by the default backoff function.
217
+ # The base delay in seconds used by the default backoff function. This option
218
+ # is only used in the `legacy` retry mode.
186
219
  #
187
220
  # @option options [Symbol] :retry_jitter (:none)
188
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
221
+ # A delay randomiser function used by the default backoff function.
222
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
223
+ # otherwise a Proc that takes and returns a number. This option is only used
224
+ # in the `legacy` retry mode.
189
225
  #
190
226
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
191
227
  #
@@ -193,11 +229,30 @@ module Aws::Glacier
193
229
  # The maximum number of times to retry failed requests. Only
194
230
  # ~ 500 level server errors and certain ~ 400 level client errors
195
231
  # are retried. Generally, these are throttling errors, data
196
- # checksum errors, networking errors, timeout errors and auth
197
- # errors from expired credentials.
232
+ # checksum errors, networking errors, timeout errors, auth errors,
233
+ # endpoint discovery, and errors from expired credentials.
234
+ # This option is only used in the `legacy` retry mode.
198
235
  #
199
236
  # @option options [Integer] :retry_max_delay (0)
200
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
237
+ # The maximum number of seconds to delay between retries (0 for no limit)
238
+ # used by the default backoff function. This option is only used in the
239
+ # `legacy` retry mode.
240
+ #
241
+ # @option options [String] :retry_mode ("legacy")
242
+ # Specifies which retry algorithm to use. Values are:
243
+ #
244
+ # * `legacy` - The pre-existing retry behavior. This is default value if
245
+ # no retry mode is provided.
246
+ #
247
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
248
+ # This includes support for retry quotas, which limit the number of
249
+ # unsuccessful retries a client can make.
250
+ #
251
+ # * `adaptive` - An experimental retry mode that includes all the
252
+ # functionality of `standard` mode along with automatic client side
253
+ # throttling. This is a provisional mode that may change behavior
254
+ # in the future.
255
+ #
201
256
  #
202
257
  # @option options [String] :secret_access_key
203
258
  #
@@ -220,16 +275,16 @@ module Aws::Glacier
220
275
  # requests through. Formatted like 'http://proxy.com:123'.
221
276
  #
222
277
  # @option options [Float] :http_open_timeout (15) The number of
223
- # seconds to wait when opening a HTTP session before rasing a
278
+ # seconds to wait when opening a HTTP session before raising a
224
279
  # `Timeout::Error`.
225
280
  #
226
281
  # @option options [Integer] :http_read_timeout (60) The default
227
282
  # number of seconds to wait for response data. This value can
228
283
  # safely be set
229
- # per-request on the session yeidled by {#session_for}.
284
+ # per-request on the session yielded by {#session_for}.
230
285
  #
231
286
  # @option options [Float] :http_idle_timeout (5) The number of
232
- # seconds a connection is allowed to sit idble before it is
287
+ # seconds a connection is allowed to sit idle before it is
233
288
  # considered stale. Stale connections are closed and removed
234
289
  # from the pool before making a request.
235
290
  #
@@ -238,7 +293,7 @@ module Aws::Glacier
238
293
  # request body. This option has no effect unless the request has
239
294
  # "Expect" header set to "100-continue". Defaults to `nil` which
240
295
  # disables this behaviour. This value can safely be set per
241
- # request on the session yeidled by {#session_for}.
296
+ # request on the session yielded by {#session_for}.
242
297
  #
243
298
  # @option options [Boolean] :http_wire_trace (false) When `true`,
244
299
  # HTTP debug output will be sent to the `:logger`.
@@ -3291,7 +3346,7 @@ module Aws::Glacier
3291
3346
  params: params,
3292
3347
  config: config)
3293
3348
  context[:gem_name] = 'aws-sdk-glacier'
3294
- context[:gem_version] = '1.26.0'
3349
+ context[:gem_version] = '1.27.0'
3295
3350
  Seahorse::Client::Request.new(handlers, context)
3296
3351
  end
3297
3352
 
@@ -6,6 +6,36 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Glacier
9
+
10
+ # When Glacier returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::Glacier::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all Glacier errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::Glacier::Errors::ServiceError
18
+ # # rescues all Glacier API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {InsufficientCapacityException}
29
+ # * {InvalidParameterValueException}
30
+ # * {LimitExceededException}
31
+ # * {MissingParameterValueException}
32
+ # * {PolicyEnforcedException}
33
+ # * {RequestTimeoutException}
34
+ # * {ResourceNotFoundException}
35
+ # * {ServiceUnavailableException}
36
+ #
37
+ # Additionally, error classes are dynamically generated for service errors based on the error code
38
+ # if they are not defined above.
9
39
  module Errors
10
40
 
11
41
  extend Aws::Errors::DynamicErrors
@@ -33,7 +63,6 @@ module Aws::Glacier
33
63
  def message
34
64
  @message || @data[:message]
35
65
  end
36
-
37
66
  end
38
67
 
39
68
  class InvalidParameterValueException < ServiceError
@@ -59,7 +88,6 @@ module Aws::Glacier
59
88
  def message
60
89
  @message || @data[:message]
61
90
  end
62
-
63
91
  end
64
92
 
65
93
  class LimitExceededException < ServiceError
@@ -85,7 +113,6 @@ module Aws::Glacier
85
113
  def message
86
114
  @message || @data[:message]
87
115
  end
88
-
89
116
  end
90
117
 
91
118
  class MissingParameterValueException < ServiceError
@@ -111,7 +138,6 @@ module Aws::Glacier
111
138
  def message
112
139
  @message || @data[:message]
113
140
  end
114
-
115
141
  end
116
142
 
117
143
  class PolicyEnforcedException < ServiceError
@@ -137,7 +163,6 @@ module Aws::Glacier
137
163
  def message
138
164
  @message || @data[:message]
139
165
  end
140
-
141
166
  end
142
167
 
143
168
  class RequestTimeoutException < ServiceError
@@ -163,7 +188,6 @@ module Aws::Glacier
163
188
  def message
164
189
  @message || @data[:message]
165
190
  end
166
-
167
191
  end
168
192
 
169
193
  class ResourceNotFoundException < ServiceError
@@ -189,7 +213,6 @@ module Aws::Glacier
189
213
  def message
190
214
  @message || @data[:message]
191
215
  end
192
-
193
216
  end
194
217
 
195
218
  class ServiceUnavailableException < ServiceError
@@ -215,7 +238,6 @@ module Aws::Glacier
215
238
  def message
216
239
  @message || @data[:message]
217
240
  end
218
-
219
241
  end
220
242
 
221
243
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Glacier
9
+
9
10
  class Job
10
11
 
11
12
  extend Aws::Deprecations
@@ -27,6 +28,7 @@ module Aws::Glacier
27
28
  @id = extract_id(args, options)
28
29
  @data = options.delete(:data)
29
30
  @client = options.delete(:client) || Client.new(options)
31
+ @waiter_block_warned = false
30
32
  end
31
33
 
32
34
  # @!group Read-Only Attributes
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Glacier
9
+
9
10
  class MultipartUpload
10
11
 
11
12
  extend Aws::Deprecations
@@ -27,6 +28,7 @@ module Aws::Glacier
27
28
  @id = extract_id(args, options)
28
29
  @data = options.delete(:data)
29
30
  @client = options.delete(:client) || Client.new(options)
31
+ @waiter_block_warned = false
30
32
  end
31
33
 
32
34
  # @!group Read-Only Attributes
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Glacier
9
+
9
10
  class Notification
10
11
 
11
12
  extend Aws::Deprecations
@@ -24,6 +25,7 @@ module Aws::Glacier
24
25
  @vault_name = extract_vault_name(args, options)
25
26
  @data = options.delete(:data)
26
27
  @client = options.delete(:client) || Client.new(options)
28
+ @waiter_block_warned = false
27
29
  end
28
30
 
29
31
  # @!group Read-Only Attributes
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Glacier
9
+ # This class provides a resource oriented interface for Glacier.
10
+ # To create a resource object:
11
+ # resource = Aws::Glacier::Resource.new(region: 'us-west-2')
12
+ # You can supply a client object with custom configuration that will be used for all resource operations.
13
+ # If you do not pass +:client+, a default client will be constructed.
14
+ # client = Aws::Glacier::Client.new(region: 'us-west-2')
15
+ # resource = Aws::Glacier::Resource.new(client: client)
9
16
  class Resource
10
17
 
11
18
  # @param options ({})
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Glacier
9
+
9
10
  class Vault
10
11
 
11
12
  extend Aws::Deprecations
@@ -24,6 +25,7 @@ module Aws::Glacier
24
25
  @name = extract_name(args, options)
25
26
  @data = options.delete(:data)
26
27
  @client = options.delete(:client) || Client.new(options)
28
+ @waiter_block_warned = false
27
29
  end
28
30
 
29
31
  # @!group Read-Only Attributes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-glacier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.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: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -91,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubyforge_project:
95
- rubygems_version: 2.5.2.3
94
+ rubygems_version: 3.0.3
96
95
  signing_key:
97
96
  specification_version: 4
98
97
  summary: AWS SDK for Ruby - Amazon Glacier