aws-sdk-s3 1.0.0.rc8 → 1.0.0.rc9

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
  SHA1:
3
- metadata.gz: 441cc3ae4980681b11553d4f4bf5be887789809a
4
- data.tar.gz: 74ecdd4b40c61acb582f8d8022fd36fa3748d296
3
+ metadata.gz: 819838a83ffb3a1668d6206a60bb87ce60bdd3c7
4
+ data.tar.gz: 78e7f5d4cfe1ca1defe81ed593cfe042c22337ac
5
5
  SHA512:
6
- metadata.gz: 3869b018e92bd26befdf1e300d77fdf830a45802c7183270eb81f673c9cbbc5ed7ff212aad77547ad2ea61121723b56a0b02867d2c664839d9057d7d8aa6c7d8
7
- data.tar.gz: e06771a1c1dfbaaf3d580a3ce7de63b744ff4819653958aa1d232acb136a0757cdbec8f7ec34e9d2022f84a75efd4b621c4b5c68eaf7b290620c16b3e6a0e8e1
6
+ metadata.gz: 7f5373f8235052332123579e0a86bbd9699da390d576121c53eeaf2760b1545b37a16194bb7cd7a2d438231977c31ca3bf11747a50c48e5daf81848223261302
7
+ data.tar.gz: f63211eb010ece09fbb6230cb3ebad6584f42a861d049858a50635afcff0748d5da6a7040ccaf7eaeb9b1f10141fe6be65c28273c2405c740248f590f4b45066
@@ -61,6 +61,6 @@ require_relative 'aws-sdk-s3/customizations'
61
61
  # @service
62
62
  module Aws::S3
63
63
 
64
- GEM_VERSION = '1.0.0.rc8'
64
+ GEM_VERSION = '1.0.0.rc9'
65
65
 
66
66
  end
@@ -31,7 +31,7 @@ module Aws::S3
31
31
  end
32
32
 
33
33
  # The bucket policy as a JSON document.
34
- # @return [String]
34
+ # @return [IO]
35
35
  def policy
36
36
  data.policy
37
37
  end
@@ -25,6 +25,7 @@ require 'aws-sdk-s3/plugins/dualstack.rb'
25
25
  require 'aws-sdk-s3/plugins/bucket_dns.rb'
26
26
  require 'aws-sdk-s3/plugins/expect_100_continue.rb'
27
27
  require 'aws-sdk-s3/plugins/http_200_errors.rb'
28
+ require 'aws-sdk-s3/plugins/s3_host_id.rb'
28
29
  require 'aws-sdk-s3/plugins/get_bucket_location_fix.rb'
29
30
  require 'aws-sdk-s3/plugins/location_constraint.rb'
30
31
  require 'aws-sdk-s3/plugins/md5s.rb'
@@ -65,6 +66,7 @@ module Aws::S3
65
66
  add_plugin(Aws::S3::Plugins::BucketDns)
66
67
  add_plugin(Aws::S3::Plugins::Expect100Continue)
67
68
  add_plugin(Aws::S3::Plugins::Http200Errors)
69
+ add_plugin(Aws::S3::Plugins::S3HostId)
68
70
  add_plugin(Aws::S3::Plugins::GetBucketLocationFix)
69
71
  add_plugin(Aws::S3::Plugins::LocationConstraint)
70
72
  add_plugin(Aws::S3::Plugins::Md5s)
@@ -1602,7 +1604,7 @@ module Aws::S3
1602
1604
  #
1603
1605
  # @return [Types::GetBucketPolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1604
1606
  #
1605
- # * {Types::GetBucketPolicyOutput#policy #policy} => String
1607
+ # * {Types::GetBucketPolicyOutput#policy #policy} => IO
1606
1608
  #
1607
1609
  # @example Request syntax with placeholder values
1608
1610
  #
@@ -4363,7 +4365,7 @@ module Aws::S3
4363
4365
  params: params,
4364
4366
  config: config)
4365
4367
  context[:gem_name] = 'aws-sdk-s3'
4366
- context[:gem_version] = '1.0.0.rc8'
4368
+ context[:gem_version] = '1.0.0.rc9'
4367
4369
  Seahorse::Client::Request.new(handlers, context)
4368
4370
  end
4369
4371
 
@@ -0,0 +1,28 @@
1
+ module Aws
2
+ module S3
3
+ module Plugins
4
+
5
+ # Support S3 host id, more information, see:
6
+ # http://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html#sdk-request-ids
7
+ #
8
+ # This plugin adds :host_id for s3 responses when available
9
+ # @api private
10
+ class S3HostId < Seahorse::Client::Plugin
11
+
12
+ class Handler < Seahorse::Client::Handler
13
+
14
+ def call(context)
15
+ response = @handler.call(context)
16
+ h = context.http_response.headers
17
+ context[:s3_host_id] = h['x-amz-id-2']
18
+ response
19
+ end
20
+
21
+ end
22
+
23
+ handler(Handler, step: :sign)
24
+
25
+ end
26
+ end
27
+ end
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc8
4
+ version: 1.0.0.rc9
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: 2017-05-23 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.0.rc12
47
+ version: 3.0.0.rc13
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.0.0.rc12
54
+ version: 3.0.0.rc13
55
55
  description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
56
56
  This gem is part of the AWS SDK for Ruby.
57
57
  email:
@@ -120,6 +120,7 @@ files:
120
120
  - lib/aws-sdk-s3/plugins/location_constraint.rb
121
121
  - lib/aws-sdk-s3/plugins/md5s.rb
122
122
  - lib/aws-sdk-s3/plugins/redirects.rb
123
+ - lib/aws-sdk-s3/plugins/s3_host_id.rb
123
124
  - lib/aws-sdk-s3/plugins/s3_signer.rb
124
125
  - lib/aws-sdk-s3/plugins/sse_cpk.rb
125
126
  - lib/aws-sdk-s3/plugins/url_encoded_keys.rb