aws-sdk-s3 1.46.0 → 1.47.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
2
  SHA1:
3
- metadata.gz: 1761a1f6e6d282324a77329d977892d80ebd805c
4
- data.tar.gz: dafd38e77e5c286a67b36dfd0cef886d2b61fef6
3
+ metadata.gz: 8a24aa598e8dac5c2bd238c3924e56fa7c7ada90
4
+ data.tar.gz: f4392ea82d795e2b860b1521428c47ccb4aa4b32
5
5
  SHA512:
6
- metadata.gz: 7b9821950adb8bf6a5b2a6b16218585e33127ff6d4cf996d5d50a7986c7e567195da6c2a0955d58008fb09fad636cf8064e3da3b8b081dd147c7ced05d72a75d
7
- data.tar.gz: 324afa1e774e39efe6769ad693e0172d698f7233ddaa0cfd97f9a6b414010142e3de2d7e7e2a2b58c8b74fe279236cd028c2a297a3e3ff7740a02ce1ea618a08
6
+ metadata.gz: 6a73262511429d42b70c28ef0c7168955151d5a056102b68c6af289da73300ff2b6c541cb99a17e52aa7862dd463c435b6e78dd9856a42845393d17ff07a35e7
7
+ data.tar.gz: ae61dbd0beeb583b6c55d5306c0b2cebdc8e982dd7cef9ba661dd579ff53707b0c69f501a5bc84e57ed671a4394d3156bbb8e73728bb56530e1505b0f98657fa
data/lib/aws-sdk-s3.rb CHANGED
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-s3/event_streams'
63
63
  # @service
64
64
  module Aws::S3
65
65
 
66
- GEM_VERSION = '1.46.0'
66
+ GEM_VERSION = '1.47.0'
67
67
 
68
68
  end
@@ -7099,7 +7099,7 @@ module Aws::S3
7099
7099
  params: params,
7100
7100
  config: config)
7101
7101
  context[:gem_name] = 'aws-sdk-s3'
7102
- context[:gem_version] = '1.46.0'
7102
+ context[:gem_version] = '1.47.0'
7103
7103
  Seahorse::Client::Request.new(handlers, context)
7104
7104
  end
7105
7105
 
@@ -31,6 +31,9 @@ module Aws
31
31
  # attempts to set this value to greater than one week (604800) will
32
32
  # raise an exception.
33
33
  #
34
+ # @option params [Time] :time (Time.now) The starting time before the
35
+ # presigned url becomes active. Defaults to Time.now.
36
+ #
34
37
  # @option params [Boolean] :secure (true) When `false`, a HTTP URL
35
38
  # is returned instead of the default HTTPS URL.
36
39
  #
@@ -49,11 +52,12 @@ module Aws
49
52
  raise ArgumentError, ":key must not be blank"
50
53
  end
51
54
  virtual_host = !!params.delete(:virtual_host)
55
+ time = params.delete(:time)
52
56
  scheme = http_scheme(params, virtual_host)
53
57
 
54
58
  req = @client.build_request(method, params)
55
59
  use_bucket_as_hostname(req) if virtual_host
56
- sign_but_dont_send(req, expires_in(params), scheme)
60
+ sign_but_dont_send(req, expires_in(params), scheme, time)
57
61
  req.send_request.data
58
62
  end
59
63
 
@@ -92,7 +96,7 @@ module Aws
92
96
  end
93
97
 
94
98
  # @param [Seahorse::Client::Request] req
95
- def sign_but_dont_send(req, expires_in, scheme)
99
+ def sign_but_dont_send(req, expires_in, scheme, time)
96
100
 
97
101
  http_req = req.context.http_request
98
102
 
@@ -128,7 +132,8 @@ module Aws
128
132
  url: http_req.endpoint,
129
133
  headers: http_req.headers,
130
134
  body_digest: 'UNSIGNED-PAYLOAD',
131
- expires_in: expires_in
135
+ expires_in: expires_in,
136
+ time: time
132
137
  ).to_s
133
138
 
134
139
  Seahorse::Client::Response.new(context: context, data: url)
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.46.0
4
+ version: 1.47.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-07-25 00:00:00.000000000 Z
11
+ date: 2019-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms