aws-sdk-resources 2.0.47 → 2.0.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-resources/batch.rb +1 -1
- data/lib/aws-sdk-resources/documenter/base_operation_documenter.rb +1 -1
- data/lib/aws-sdk-resources/documenter/data_operation_documenter.rb +1 -1
- data/lib/aws-sdk-resources/documenter/operation_documenter.rb +1 -1
- data/lib/aws-sdk-resources/resource.rb +2 -2
- data/lib/aws-sdk-resources/services/s3/encryption/client.rb +2 -2
- data/lib/aws-sdk-resources/services/s3/encryption/default_key_provider.rb +1 -1
- data/lib/aws-sdk-resources/services/s3/encryption/key_provider.rb +1 -1
- data/lib/aws-sdk-resources/services/s3/file_uploader.rb +2 -2
- data/lib/aws-sdk-resources/services/s3/multipart_file_uploader.rb +3 -3
- data/lib/aws-sdk-resources/services/sqs/queue_poller.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88fe0a7962e9f135b00ec8d5629489f73b4492df
|
4
|
+
data.tar.gz: 8228380edef1723af9a73997693f01b7de75e5e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e1b0b5666c695e4a895496174d72b46a6dd8cf07742c18daf8a1aeda946bd3e763f8809108d33686b3e4e23f5438451a37cb72ac966596e62859674d1df34d9
|
7
|
+
data.tar.gz: c341c1944f105db93e1aec0fd6cdb8c436ea91305f0f9b2edb70587846aa9e124083c7e89e8261c8b38f08a6fc7a326f66b511dae8596ba086627ee6634209eb
|
@@ -24,7 +24,7 @@ module Aws
|
|
24
24
|
# You can invoke batch operations against collections and they will
|
25
25
|
# invoke them on each batch.
|
26
26
|
#
|
27
|
-
# #
|
27
|
+
# # delete all objects in this bucket in batches of 1k
|
28
28
|
# objects = s3.bucket('aws-sdk').objects
|
29
29
|
# objects.delete
|
30
30
|
#
|
@@ -13,7 +13,7 @@ module Aws
|
|
13
13
|
|
14
14
|
def return_message
|
15
15
|
if plural? && structure?
|
16
|
-
"an array of {Structure structures} with the following
|
16
|
+
"an array of {Structure structures} with the following members:\n" + data_members
|
17
17
|
elsif structure?
|
18
18
|
"a {Structure} with the following members:\n" + data_members
|
19
19
|
else
|
@@ -30,7 +30,7 @@ module Aws
|
|
30
30
|
#
|
31
31
|
# ## Basic Usage
|
32
32
|
#
|
33
|
-
# Waiter will polls until it is
|
33
|
+
# Waiter will polls until it is successful, it fails by
|
34
34
|
# entering a terminal state, or until a maximum number of attempts
|
35
35
|
# are made.
|
36
36
|
#
|
@@ -87,7 +87,7 @@ module Aws
|
|
87
87
|
# maximum number of attempts have been made, and the waiter is not
|
88
88
|
# yet successful.
|
89
89
|
#
|
90
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
90
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
|
91
91
|
# while polling for a resource that is not expected.
|
92
92
|
#
|
93
93
|
# @raise [NotImplementedError] Raised when the resource does not
|
@@ -6,7 +6,7 @@ module Aws
|
|
6
6
|
#
|
7
7
|
# This client uses a process called "envelope encryption". Your private
|
8
8
|
# encryption keys and your data's plain-text are **never** sent to
|
9
|
-
# Amazon S3. **If you loose you
|
9
|
+
# Amazon S3. **If you loose you encryption keys, you will not be able to
|
10
10
|
# un-encrypt your data.**
|
11
11
|
#
|
12
12
|
# ## Envelope Encryption Overview
|
@@ -175,7 +175,7 @@ module Aws
|
|
175
175
|
# @option options [Symbol] :envelope_location (:metadata) Where to
|
176
176
|
# store the envelope encryption keys. By default, the envelope is
|
177
177
|
# stored with the encrypted object. If you pass `:instruction_file`,
|
178
|
-
# then the envelope is stored in a
|
178
|
+
# then the envelope is stored in a separate object in Amazon S3.
|
179
179
|
#
|
180
180
|
# @option options [String] :instruction_file_suffix ('.instruction')
|
181
181
|
# When `:envelope_location` is `:instruction_file` then the
|
@@ -13,7 +13,7 @@ module Aws
|
|
13
13
|
# @option options [required, OpenSSL::PKey::RSA, String] :encryption_key
|
14
14
|
# The master key to use for encrypting objects.
|
15
15
|
# @option options [String<JSON>] :materials_description ('{}')
|
16
|
-
# A description of the
|
16
|
+
# A description of the encryption key.
|
17
17
|
def initialize(options = {})
|
18
18
|
@encryption_materials = Materials.new(
|
19
19
|
key: options[:encryption_key],
|
@@ -8,7 +8,7 @@ module Aws
|
|
8
8
|
# * Responds to {#encryption_materials} with an {Materials} object.
|
9
9
|
#
|
10
10
|
# * Responds to {#key_for}, receiving a JSON document String,
|
11
|
-
# returning an
|
11
|
+
# returning an encryption key. The returned encryption key
|
12
12
|
# must be one of:
|
13
13
|
#
|
14
14
|
# * `OpenSSL::PKey::RSA` - for asymmetric encryption
|
@@ -24,8 +24,8 @@ module Aws
|
|
24
24
|
attr_reader :multipart_threshold
|
25
25
|
|
26
26
|
# @param [String,Pathname,File,Tempfile] source
|
27
|
-
# @option options [
|
28
|
-
# @option options [
|
27
|
+
# @option options [required,String] :bucket
|
28
|
+
# @option options [required,String] :key
|
29
29
|
# @return [void]
|
30
30
|
def upload(source, options = {})
|
31
31
|
if File.size(source) >= multipart_threshold
|
@@ -23,8 +23,8 @@ module Aws
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
# @param [String,Pathname,File,Tempfile] source
|
26
|
-
# @option options [
|
27
|
-
# @option options [
|
26
|
+
# @option options [required,String] :bucket
|
27
|
+
# @option options [required,String] :key
|
28
28
|
# @return [void]
|
29
29
|
def upload(source, options = {})
|
30
30
|
if File.size(source) < MIN_PART_SIZE
|
@@ -120,7 +120,7 @@ module Aws
|
|
120
120
|
thread.abort_on_exception = true
|
121
121
|
threads << thread
|
122
122
|
end
|
123
|
-
|
123
|
+
threads.map(&:value).compact
|
124
124
|
end
|
125
125
|
|
126
126
|
def compute_default_part_size(source_size)
|
@@ -172,7 +172,7 @@ module Aws
|
|
172
172
|
# * Configure a {#before_request} callback.
|
173
173
|
#
|
174
174
|
# ```
|
175
|
-
# poller.
|
175
|
+
# poller.before_request do |stats|
|
176
176
|
# logger.info("requests: #{stats.request_count}")
|
177
177
|
# logger.info("messages: #{stats.received_message_count}")
|
178
178
|
# logger.info("last-timestamp: #{stats.last_message_received_at}")
|
@@ -223,7 +223,7 @@ module Aws
|
|
223
223
|
# Registers a callback that is invoked once before every polling
|
224
224
|
# attempt.
|
225
225
|
#
|
226
|
-
# poller.
|
226
|
+
# poller.before_request do |stats|
|
227
227
|
# logger.info("requests: #{stats.request_count}")
|
228
228
|
# logger.info("messages: #{stats.received_message_count}")
|
229
229
|
# logger.info("last-timestamp: #{stats.last_message_received_at}")
|
@@ -239,7 +239,7 @@ module Aws
|
|
239
239
|
# then the poller will exit normally before making the next long
|
240
240
|
# poll request.
|
241
241
|
#
|
242
|
-
# poller.
|
242
|
+
# poller.before_request do |stats|
|
243
243
|
# throw :stop_polling if stats.received_messages >= 100
|
244
244
|
# end
|
245
245
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.48
|
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: 2015-
|
11
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.
|
19
|
+
version: 2.0.48
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.0.
|
26
|
+
version: 2.0.48
|
27
27
|
description: Provides resource oriented interfaces and other higher-level abstractions
|
28
28
|
for many AWS services. This gem is part of the official AWS SDK for Ruby.
|
29
29
|
email:
|