aws-sdk-s3 1.67.1 → 1.68.1
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-s3.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +9 -6
- data/lib/aws-sdk-s3/client_api.rb +20 -0
- data/lib/aws-sdk-s3/plugins/md5s.rb +21 -24
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfdbbed3a219f8690462fbca974111e863bbb4b3a3677648cf77dec94af963e9
|
4
|
+
data.tar.gz: 285b62f651038d1bf38e9fc156ec48d78b6aedd21f869455cfdb942aad7d817c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaed81549dabc75fd9415706924178884c1a9b2d3cc0c8325be4540c28301dd45d6d376ba6fc75bba28f705764af6916b984818d5c2df0d360884db429578b31
|
7
|
+
data.tar.gz: 20bc2cf996bcc241fefe8beba3bb6e30d7f5678e764c23c16a05f00e91c47be098290d85b3fe48a87bdb1edf27b35ab5e632545a210e2c81b801aed682e01641
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
25
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
28
|
require 'aws-sdk-core/plugins/protocols/rest_xml.rb'
|
28
29
|
require 'aws-sdk-s3/plugins/iad_regional_endpoint.rb'
|
29
30
|
require 'aws-sdk-s3/plugins/accelerate.rb'
|
@@ -85,6 +86,7 @@ module Aws::S3
|
|
85
86
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
86
87
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
87
88
|
add_plugin(Aws::Plugins::TransferEncoding)
|
89
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
88
90
|
add_plugin(Aws::Plugins::Protocols::RestXml)
|
89
91
|
add_plugin(Aws::S3::Plugins::IADRegionalEndpoint)
|
90
92
|
add_plugin(Aws::S3::Plugins::Accelerate)
|
@@ -179,10 +181,11 @@ module Aws::S3
|
|
179
181
|
# will use the Client Side Monitoring Agent Publisher.
|
180
182
|
#
|
181
183
|
# @option options [Boolean] :compute_checksums (true)
|
182
|
-
# When `true` a MD5 checksum will be computed
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
184
|
+
# When `true` a MD5 checksum will be computed and sent in the Content Md5
|
185
|
+
# header for :put_object and :upload_part. When `false`, MD5 checksums
|
186
|
+
# will not be computed for these operations. Checksums are still computed
|
187
|
+
# for operations requiring them. Checksum errors returned by Amazon S3 are
|
188
|
+
# automatically retried up to `:retry_limit` times.
|
186
189
|
#
|
187
190
|
# @option options [Boolean] :convert_params (true)
|
188
191
|
# When `true`, an attempt is made to coerce request parameters into
|
@@ -199,7 +202,7 @@ module Aws::S3
|
|
199
202
|
# @option options [String] :endpoint
|
200
203
|
# The client endpoint is normally constructed from the `:region`
|
201
204
|
# option. You should only configure an `:endpoint` when connecting
|
202
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
205
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
203
206
|
#
|
204
207
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
205
208
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -11665,7 +11668,7 @@ module Aws::S3
|
|
11665
11668
|
params: params,
|
11666
11669
|
config: config)
|
11667
11670
|
context[:gem_name] = 'aws-sdk-s3'
|
11668
|
-
context[:gem_version] = '1.
|
11671
|
+
context[:gem_version] = '1.68.1'
|
11669
11672
|
Seahorse::Client::Request.new(handlers, context)
|
11670
11673
|
end
|
11671
11674
|
|
@@ -2378,6 +2378,7 @@ module Aws::S3
|
|
2378
2378
|
o.name = "DeleteObjects"
|
2379
2379
|
o.http_method = "POST"
|
2380
2380
|
o.http_request_uri = "/{Bucket}?delete"
|
2381
|
+
o.http_checksum_required = true
|
2381
2382
|
o.input = Shapes::ShapeRef.new(shape: DeleteObjectsRequest)
|
2382
2383
|
o.output = Shapes::ShapeRef.new(shape: DeleteObjectsOutput)
|
2383
2384
|
end)
|
@@ -2758,6 +2759,7 @@ module Aws::S3
|
|
2758
2759
|
o.name = "PutBucketAcl"
|
2759
2760
|
o.http_method = "PUT"
|
2760
2761
|
o.http_request_uri = "/{Bucket}?acl"
|
2762
|
+
o.http_checksum_required = true
|
2761
2763
|
o.input = Shapes::ShapeRef.new(shape: PutBucketAclRequest)
|
2762
2764
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2763
2765
|
end)
|
@@ -2774,6 +2776,7 @@ module Aws::S3
|
|
2774
2776
|
o.name = "PutBucketCors"
|
2775
2777
|
o.http_method = "PUT"
|
2776
2778
|
o.http_request_uri = "/{Bucket}?cors"
|
2779
|
+
o.http_checksum_required = true
|
2777
2780
|
o.input = Shapes::ShapeRef.new(shape: PutBucketCorsRequest)
|
2778
2781
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2779
2782
|
end)
|
@@ -2782,6 +2785,7 @@ module Aws::S3
|
|
2782
2785
|
o.name = "PutBucketEncryption"
|
2783
2786
|
o.http_method = "PUT"
|
2784
2787
|
o.http_request_uri = "/{Bucket}?encryption"
|
2788
|
+
o.http_checksum_required = true
|
2785
2789
|
o.input = Shapes::ShapeRef.new(shape: PutBucketEncryptionRequest)
|
2786
2790
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2787
2791
|
end)
|
@@ -2798,6 +2802,7 @@ module Aws::S3
|
|
2798
2802
|
o.name = "PutBucketLifecycle"
|
2799
2803
|
o.http_method = "PUT"
|
2800
2804
|
o.http_request_uri = "/{Bucket}?lifecycle"
|
2805
|
+
o.http_checksum_required = true
|
2801
2806
|
o.deprecated = true
|
2802
2807
|
o.input = Shapes::ShapeRef.new(shape: PutBucketLifecycleRequest)
|
2803
2808
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
@@ -2807,6 +2812,7 @@ module Aws::S3
|
|
2807
2812
|
o.name = "PutBucketLifecycleConfiguration"
|
2808
2813
|
o.http_method = "PUT"
|
2809
2814
|
o.http_request_uri = "/{Bucket}?lifecycle"
|
2815
|
+
o.http_checksum_required = true
|
2810
2816
|
o.input = Shapes::ShapeRef.new(shape: PutBucketLifecycleConfigurationRequest)
|
2811
2817
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2812
2818
|
end)
|
@@ -2815,6 +2821,7 @@ module Aws::S3
|
|
2815
2821
|
o.name = "PutBucketLogging"
|
2816
2822
|
o.http_method = "PUT"
|
2817
2823
|
o.http_request_uri = "/{Bucket}?logging"
|
2824
|
+
o.http_checksum_required = true
|
2818
2825
|
o.input = Shapes::ShapeRef.new(shape: PutBucketLoggingRequest)
|
2819
2826
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2820
2827
|
end)
|
@@ -2831,6 +2838,7 @@ module Aws::S3
|
|
2831
2838
|
o.name = "PutBucketNotification"
|
2832
2839
|
o.http_method = "PUT"
|
2833
2840
|
o.http_request_uri = "/{Bucket}?notification"
|
2841
|
+
o.http_checksum_required = true
|
2834
2842
|
o.deprecated = true
|
2835
2843
|
o.input = Shapes::ShapeRef.new(shape: PutBucketNotificationRequest)
|
2836
2844
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
@@ -2848,6 +2856,7 @@ module Aws::S3
|
|
2848
2856
|
o.name = "PutBucketPolicy"
|
2849
2857
|
o.http_method = "PUT"
|
2850
2858
|
o.http_request_uri = "/{Bucket}?policy"
|
2859
|
+
o.http_checksum_required = true
|
2851
2860
|
o.input = Shapes::ShapeRef.new(shape: PutBucketPolicyRequest)
|
2852
2861
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2853
2862
|
end)
|
@@ -2856,6 +2865,7 @@ module Aws::S3
|
|
2856
2865
|
o.name = "PutBucketReplication"
|
2857
2866
|
o.http_method = "PUT"
|
2858
2867
|
o.http_request_uri = "/{Bucket}?replication"
|
2868
|
+
o.http_checksum_required = true
|
2859
2869
|
o.input = Shapes::ShapeRef.new(shape: PutBucketReplicationRequest)
|
2860
2870
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2861
2871
|
end)
|
@@ -2864,6 +2874,7 @@ module Aws::S3
|
|
2864
2874
|
o.name = "PutBucketRequestPayment"
|
2865
2875
|
o.http_method = "PUT"
|
2866
2876
|
o.http_request_uri = "/{Bucket}?requestPayment"
|
2877
|
+
o.http_checksum_required = true
|
2867
2878
|
o.input = Shapes::ShapeRef.new(shape: PutBucketRequestPaymentRequest)
|
2868
2879
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2869
2880
|
end)
|
@@ -2872,6 +2883,7 @@ module Aws::S3
|
|
2872
2883
|
o.name = "PutBucketTagging"
|
2873
2884
|
o.http_method = "PUT"
|
2874
2885
|
o.http_request_uri = "/{Bucket}?tagging"
|
2886
|
+
o.http_checksum_required = true
|
2875
2887
|
o.input = Shapes::ShapeRef.new(shape: PutBucketTaggingRequest)
|
2876
2888
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2877
2889
|
end)
|
@@ -2880,6 +2892,7 @@ module Aws::S3
|
|
2880
2892
|
o.name = "PutBucketVersioning"
|
2881
2893
|
o.http_method = "PUT"
|
2882
2894
|
o.http_request_uri = "/{Bucket}?versioning"
|
2895
|
+
o.http_checksum_required = true
|
2883
2896
|
o.input = Shapes::ShapeRef.new(shape: PutBucketVersioningRequest)
|
2884
2897
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2885
2898
|
end)
|
@@ -2888,6 +2901,7 @@ module Aws::S3
|
|
2888
2901
|
o.name = "PutBucketWebsite"
|
2889
2902
|
o.http_method = "PUT"
|
2890
2903
|
o.http_request_uri = "/{Bucket}?website"
|
2904
|
+
o.http_checksum_required = true
|
2891
2905
|
o.input = Shapes::ShapeRef.new(shape: PutBucketWebsiteRequest)
|
2892
2906
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2893
2907
|
end)
|
@@ -2904,6 +2918,7 @@ module Aws::S3
|
|
2904
2918
|
o.name = "PutObjectAcl"
|
2905
2919
|
o.http_method = "PUT"
|
2906
2920
|
o.http_request_uri = "/{Bucket}/{Key+}?acl"
|
2921
|
+
o.http_checksum_required = true
|
2907
2922
|
o.input = Shapes::ShapeRef.new(shape: PutObjectAclRequest)
|
2908
2923
|
o.output = Shapes::ShapeRef.new(shape: PutObjectAclOutput)
|
2909
2924
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchKey)
|
@@ -2913,6 +2928,7 @@ module Aws::S3
|
|
2913
2928
|
o.name = "PutObjectLegalHold"
|
2914
2929
|
o.http_method = "PUT"
|
2915
2930
|
o.http_request_uri = "/{Bucket}/{Key+}?legal-hold"
|
2931
|
+
o.http_checksum_required = true
|
2916
2932
|
o.input = Shapes::ShapeRef.new(shape: PutObjectLegalHoldRequest)
|
2917
2933
|
o.output = Shapes::ShapeRef.new(shape: PutObjectLegalHoldOutput)
|
2918
2934
|
end)
|
@@ -2921,6 +2937,7 @@ module Aws::S3
|
|
2921
2937
|
o.name = "PutObjectLockConfiguration"
|
2922
2938
|
o.http_method = "PUT"
|
2923
2939
|
o.http_request_uri = "/{Bucket}?object-lock"
|
2940
|
+
o.http_checksum_required = true
|
2924
2941
|
o.input = Shapes::ShapeRef.new(shape: PutObjectLockConfigurationRequest)
|
2925
2942
|
o.output = Shapes::ShapeRef.new(shape: PutObjectLockConfigurationOutput)
|
2926
2943
|
end)
|
@@ -2929,6 +2946,7 @@ module Aws::S3
|
|
2929
2946
|
o.name = "PutObjectRetention"
|
2930
2947
|
o.http_method = "PUT"
|
2931
2948
|
o.http_request_uri = "/{Bucket}/{Key+}?retention"
|
2949
|
+
o.http_checksum_required = true
|
2932
2950
|
o.input = Shapes::ShapeRef.new(shape: PutObjectRetentionRequest)
|
2933
2951
|
o.output = Shapes::ShapeRef.new(shape: PutObjectRetentionOutput)
|
2934
2952
|
end)
|
@@ -2937,6 +2955,7 @@ module Aws::S3
|
|
2937
2955
|
o.name = "PutObjectTagging"
|
2938
2956
|
o.http_method = "PUT"
|
2939
2957
|
o.http_request_uri = "/{Bucket}/{Key+}?tagging"
|
2958
|
+
o.http_checksum_required = true
|
2940
2959
|
o.input = Shapes::ShapeRef.new(shape: PutObjectTaggingRequest)
|
2941
2960
|
o.output = Shapes::ShapeRef.new(shape: PutObjectTaggingOutput)
|
2942
2961
|
end)
|
@@ -2945,6 +2964,7 @@ module Aws::S3
|
|
2945
2964
|
o.name = "PutPublicAccessBlock"
|
2946
2965
|
o.http_method = "PUT"
|
2947
2966
|
o.http_request_uri = "/{Bucket}?publicAccessBlock"
|
2967
|
+
o.http_checksum_required = true
|
2948
2968
|
o.input = Shapes::ShapeRef.new(shape: PutPublicAccessBlockRequest)
|
2949
2969
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2950
2970
|
end)
|
@@ -3,20 +3,15 @@ require 'openssl'
|
|
3
3
|
module Aws
|
4
4
|
module S3
|
5
5
|
module Plugins
|
6
|
+
# @api private
|
7
|
+
# This plugin is effectively deprecated in favor of modeled
|
8
|
+
# httpChecksumRequired traits.
|
6
9
|
class Md5s < Seahorse::Client::Plugin
|
7
|
-
|
8
|
-
#
|
9
|
-
|
10
|
-
:
|
11
|
-
:
|
12
|
-
:put_bucket_lifecycle,
|
13
|
-
:put_bucket_lifecycle_configuration,
|
14
|
-
:put_bucket_policy,
|
15
|
-
:put_bucket_replication,
|
16
|
-
:put_bucket_tagging,
|
17
|
-
:put_object_legal_hold,
|
18
|
-
:put_object_lock_configuration,
|
19
|
-
:put_object_retention
|
10
|
+
# These operations allow Content MD5 but are not required by
|
11
|
+
# httpChecksumRequired. This list should not grow.
|
12
|
+
OPTIONAL_OPERATIONS = [
|
13
|
+
:put_object,
|
14
|
+
:upload_part
|
20
15
|
]
|
21
16
|
|
22
17
|
# @api private
|
@@ -63,20 +58,22 @@ module Aws
|
|
63
58
|
default: true,
|
64
59
|
doc_type: 'Boolean',
|
65
60
|
docstring: <<-DOCS)
|
66
|
-
When `true` a MD5 checksum will be computed
|
67
|
-
|
68
|
-
|
69
|
-
|
61
|
+
When `true` a MD5 checksum will be computed and sent in the Content Md5
|
62
|
+
header for :put_object and :upload_part. When `false`, MD5 checksums
|
63
|
+
will not be computed for these operations. Checksums are still computed
|
64
|
+
for operations requiring them. Checksum errors returned by Amazon S3 are
|
65
|
+
automatically retried up to `:retry_limit` times.
|
70
66
|
DOCS
|
71
67
|
|
72
68
|
def add_handlers(handlers, config)
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
69
|
+
if config.compute_checksums
|
70
|
+
# priority set low to ensure md5 is computed AFTER the request is
|
71
|
+
# built but before it is signed
|
72
|
+
handlers.add(
|
73
|
+
Handler,
|
74
|
+
priority: 10, step: :build, operations: OPTIONAL_OPERATIONS
|
75
|
+
)
|
76
|
+
end
|
80
77
|
end
|
81
78
|
|
82
79
|
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.
|
4
|
+
version: 1.68.1
|
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: 2020-06-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: '3'
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 3.
|
50
|
+
version: 3.99.0
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: '3'
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 3.
|
60
|
+
version: 3.99.0
|
61
61
|
description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
|
62
62
|
This gem is part of the AWS SDK for Ruby.
|
63
63
|
email:
|