Class: Aws::S3::Presigner
- Inherits:
-
Object
- Object
- Aws::S3::Presigner
- Defined in:
- lib/aws-sdk-s3/presigner.rb
Constant Summary collapse
- ONE_WEEK =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
60 * 60 * 24 * 7
- FIFTEEN_MINUTES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
60 * 15
- BLACKLISTED_HEADERS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[ 'accept', 'amz-sdk-request', 'cache-control', 'content-length', # due to a ELB bug 'expect', 'from', 'if-match', 'if-none-match', 'if-modified-since', 'if-unmodified-since', 'if-range', 'max-forwards', 'pragma', 'proxy-authorization', 'referer', 'te', 'user-agent' ].freeze
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Presigner
constructor
A new instance of Presigner.
-
#presigned_request(method, params = {}) ⇒ String, Hash
Allows you to create presigned URL requests for S3 operations.
-
#presigned_url(method, params = {}) ⇒ String
Create presigned URLs for S3 operations.
Constructor Details
Instance Method Details
#presigned_request(method, params = {}) ⇒ String, Hash
Allows you to create presigned URL requests for S3 operations. This method returns a tuple containing the URL and the signed X-amz-* headers to be used with the presigned url.
128 129 130 |
# File 'lib/aws-sdk-s3/presigner.rb', line 128 def presigned_request(method, params = {}) _presigned_request(method, params, false) end |
#presigned_url(method, params = {}) ⇒ String
Create presigned URLs for S3 operations.
78 79 80 81 |
# File 'lib/aws-sdk-s3/presigner.rb', line 78 def presigned_url(method, params = {}) url, _headers = _presigned_request(method, params) url end |