aws-sdk-s3 1.163.0 → 1.166.0

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
  SHA256:
3
- metadata.gz: afd4c360870e136ada49d27ff23a992d83e10cf8086d49fa60e4109a83befc49
4
- data.tar.gz: 74b212aa39f93b6233b2aaa1dfcd647339745c8ad5e54fa26ee341040c27bc22
3
+ metadata.gz: 23940562598b8073e4e1e7fb5f300a75ccedfa51af9fba10603af1537c2e50e9
4
+ data.tar.gz: b741a11a7fe934ae6b0e5e263a99075191296916b8aceecbfdeecaa57ec10bf1
5
5
  SHA512:
6
- metadata.gz: 86ea94d75b351388571d07466ea49d5243f70a31c7688d18047acb746ede2d81703ba5225a58eb221430304de7bb483ca70e6d31eaa89feb3b1b4a12e830cbb6
7
- data.tar.gz: 1aca70a5ee0e958587aa59e255ef5a2ddbce7e61f466fca44ae482d8703965d0ec30b46e6f58f76c9c97b2590f86a25d34e7aed4c81a59191442461b8641c39b
6
+ metadata.gz: 1442957d392d64949c12f0c9f8e6f409c90486538987aa4d9d5e738b4065e050104761522bcd8a38b413ca3bf554e6e328b0cbf3f43d4f79440c7e339162c4d2
7
+ data.tar.gz: e415e5c21aa9e5942b353e84372fbccb727e76deb7f3ecc4124a2ad4a680b856e1988f950e0ba7c5468102a269aa3b47214d5777a172004f789525a27d5eff3c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.166.0 (2024-09-24)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.165.0 (2024-09-23)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.164.0 (2024-09-20)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.163.0 (2024-09-18)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.163.0
1
+ 1.166.0
@@ -1552,3 +1552,6 @@ module Aws::S3
1552
1552
  class Collection < Aws::Resources::Collection; end
1553
1553
  end
1554
1554
  end
1555
+
1556
+ # Load customizations if they exist
1557
+ require 'aws-sdk-s3/customizations/bucket'
@@ -57,8 +57,6 @@ require 'aws-sdk-s3/plugins/streaming_retry.rb'
57
57
  require 'aws-sdk-s3/plugins/url_encoded_keys.rb'
58
58
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
59
59
 
60
- Aws::Plugins::GlobalConfiguration.add_identifier(:s3)
61
-
62
60
  module Aws::S3
63
61
  # An API client for S3. To construct a client, you need to configure a `:region` and `:credentials`.
64
62
  #
@@ -172,13 +170,15 @@ module Aws::S3
172
170
  # locations will be searched for credentials:
173
171
  #
174
172
  # * `Aws.config[:credentials]`
175
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
176
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
173
+ # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
174
+ # `:account_id` options.
175
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
176
+ # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
177
177
  # * `~/.aws/credentials`
178
178
  # * `~/.aws/config`
179
179
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
180
180
  # are very aggressive. Construct and pass an instance of
181
- # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
181
+ # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
182
182
  # enable retries and extended timeouts. Instance profile credential
183
183
  # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
184
184
  # to true.
@@ -207,6 +207,8 @@ module Aws::S3
207
207
  #
208
208
  # @option options [String] :access_key_id
209
209
  #
210
+ # @option options [String] :account_id
211
+ #
210
212
  # @option options [Boolean] :active_endpoint_cache (false)
211
213
  # When set to `true`, a thread polling for endpoints will be running in
212
214
  # the background every 60 secs (default). Defaults to `false`.
@@ -476,7 +478,9 @@ module Aws::S3
476
478
  # sending the request.
477
479
  #
478
480
  # @option options [Aws::S3::EndpointProvider] :endpoint_provider
479
- # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::S3::EndpointParameters`
481
+ # The endpoint provider used to resolve endpoints. Any object that responds to
482
+ # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
483
+ # `Aws::S3::EndpointParameters`.
480
484
  #
481
485
  # @option options [Float] :http_continue_timeout (1)
482
486
  # The number of seconds to wait for a 100-continue response before sending the
@@ -19808,7 +19812,7 @@ module Aws::S3
19808
19812
  tracer: tracer
19809
19813
  )
19810
19814
  context[:gem_name] = 'aws-sdk-s3'
19811
- context[:gem_version] = '1.163.0'
19815
+ context[:gem_version] = '1.166.0'
19812
19816
  Seahorse::Client::Request.new(handlers, context)
19813
19817
  end
19814
19818
 
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  module Aws::S3
11
12
  # @api private
12
13
  module ClientApi
@@ -559,6 +559,12 @@ module Aws
559
559
  end
560
560
  true
561
561
  end
562
+
563
+ class Collection < Aws::Resources::Collection
564
+ alias_method :delete, :batch_delete!
565
+ extend Aws::Deprecations
566
+ deprecated :delete, use: :batch_delete!
567
+ end
562
568
  end
563
569
  end
564
570
  end
@@ -80,6 +80,11 @@ module Aws
80
80
  object.download_file(destination, options)
81
81
  end
82
82
 
83
+ class Collection < Aws::Resources::Collection
84
+ alias_method :delete, :batch_delete!
85
+ extend Aws::Deprecations
86
+ deprecated :delete, use: :batch_delete!
87
+ end
83
88
  end
84
89
  end
85
90
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aws
4
+ module S3
5
+ class ObjectVersion
6
+ class Collection < Aws::Resources::Collection
7
+ alias_method :delete, :batch_delete!
8
+ extend Aws::Deprecations
9
+ deprecated :delete, use: :batch_delete!
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,44 +1,30 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # utility classes
4
- require 'aws-sdk-s3/bucket_region_cache'
5
- require 'aws-sdk-s3/encryption'
6
- require 'aws-sdk-s3/encryption_v2'
7
- require 'aws-sdk-s3/file_part'
8
- require 'aws-sdk-s3/file_uploader'
9
- require 'aws-sdk-s3/file_downloader'
10
- require 'aws-sdk-s3/legacy_signer'
11
- require 'aws-sdk-s3/multipart_file_uploader'
12
- require 'aws-sdk-s3/multipart_stream_uploader'
13
- require 'aws-sdk-s3/multipart_upload_error'
14
- require 'aws-sdk-s3/object_copier'
15
- require 'aws-sdk-s3/object_multipart_copier'
16
- require 'aws-sdk-s3/presigned_post'
17
- require 'aws-sdk-s3/presigner'
3
+ module Aws
4
+ module S3
5
+ # utility classes
6
+ autoload :BucketRegionCache, 'aws-sdk-s3/bucket_region_cache'
7
+ autoload :Encryption, 'aws-sdk-s3/encryption'
8
+ autoload :EncryptionV2, 'aws-sdk-s3/encryption_v2'
9
+ autoload :FilePart, 'aws-sdk-s3/file_part'
10
+ autoload :FileUploader, 'aws-sdk-s3/file_uploader'
11
+ autoload :FileDownloader, 'aws-sdk-s3/file_downloader'
12
+ autoload :LegacySigner, 'aws-sdk-s3/legacy_signer'
13
+ autoload :MultipartFileUploader, 'aws-sdk-s3/multipart_file_uploader'
14
+ autoload :MultipartStreamUploader, 'aws-sdk-s3/multipart_stream_uploader'
15
+ autoload :MultipartUploadError, 'aws-sdk-s3/multipart_upload_error'
16
+ autoload :ObjectCopier, 'aws-sdk-s3/object_copier'
17
+ autoload :ObjectMultipartCopier, 'aws-sdk-s3/object_multipart_copier'
18
+ autoload :PresignedPost, 'aws-sdk-s3/presigned_post'
19
+ autoload :Presigner, 'aws-sdk-s3/presigner'
18
20
 
19
- # s3 express session auth
20
- require 'aws-sdk-s3/express_credentials'
21
- require 'aws-sdk-s3/express_credentials_provider'
21
+ # s3 express session auth
22
+ autoload :ExpressCredentials, 'aws-sdk-s3/express_credentials'
23
+ autoload :ExpressCredentialsProvider, 'aws-sdk-s3/express_credentials_provider'
22
24
 
23
- # s3 access grants auth
24
- require 'aws-sdk-s3/access_grants_credentials'
25
- require 'aws-sdk-s3/access_grants_credentials_provider'
25
+ # s3 access grants auth
26
26
 
27
- # customizations to generated classes
28
- require 'aws-sdk-s3/customizations/bucket'
29
- require 'aws-sdk-s3/customizations/errors'
30
- require 'aws-sdk-s3/customizations/object'
31
- require 'aws-sdk-s3/customizations/object_summary'
32
- require 'aws-sdk-s3/customizations/multipart_upload'
33
- require 'aws-sdk-s3/customizations/types/list_object_versions_output'
34
- require 'aws-sdk-s3/customizations/types/permanent_redirect'
35
-
36
- [
37
- Aws::S3::Object::Collection,
38
- Aws::S3::ObjectSummary::Collection,
39
- Aws::S3::ObjectVersion::Collection,
40
- ].each do |klass|
41
- klass.send(:alias_method, :delete, :batch_delete!)
42
- klass.extend Aws::Deprecations
43
- klass.send(:deprecated, :delete, use: :batch_delete!)
27
+ autoload :AccessGrantsCredentials, 'aws-sdk-s3/access_grants_credentials'
28
+ autoload :AccessGrantsCredentialsProvider, 'aws-sdk-s3/access_grants_credentials_provider'
29
+ end
44
30
  end
@@ -134,3 +134,6 @@ module Aws::S3
134
134
 
135
135
  end
136
136
  end
137
+
138
+ # Load customizations if they exist
139
+ require 'aws-sdk-s3/customizations/errors'
@@ -609,3 +609,6 @@ module Aws::S3
609
609
  class Collection < Aws::Resources::Collection; end
610
610
  end
611
611
  end
612
+
613
+ # Load customizations if they exist
614
+ require 'aws-sdk-s3/customizations/multipart_upload'
@@ -3423,3 +3423,6 @@ module Aws::S3
3423
3423
  end
3424
3424
  end
3425
3425
  end
3426
+
3427
+ # Load customizations if they exist
3428
+ require 'aws-sdk-s3/customizations/object'
@@ -2883,3 +2883,6 @@ module Aws::S3
2883
2883
  end
2884
2884
  end
2885
2885
  end
2886
+
2887
+ # Load customizations if they exist
2888
+ require 'aws-sdk-s3/customizations/object_summary'
@@ -917,3 +917,6 @@ module Aws::S3
917
917
  end
918
918
  end
919
919
  end
920
+
921
+ # Load customizations if they exist
922
+ require 'aws-sdk-s3/customizations/object_version'
@@ -15,19 +15,22 @@ module Aws::S3
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::S3::EndpointProvider',
17
17
  rbs_type: 'untyped',
18
- docstring: 'The endpoint provider used to resolve endpoints. Any '\
19
- 'object that responds to `#resolve_endpoint(parameters)` '\
20
- 'where `parameters` is a Struct similar to '\
21
- '`Aws::S3::EndpointParameters`'
22
- ) do |cfg|
18
+ docstring: <<~DOCS) do |_cfg|
19
+ The endpoint provider used to resolve endpoints. Any object that responds to
20
+ `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
21
+ `Aws::S3::EndpointParameters`.
22
+ DOCS
23
23
  Aws::S3::EndpointProvider.new
24
24
  end
25
25
 
26
26
  option(
27
27
  :disable_s3_express_session_auth,
28
28
  doc_type: 'Boolean',
29
- default: nil,
30
- docstring: "Parameter to indicate whether S3Express session auth should be disabled")
29
+ docstring: <<~DOCS) do |cfg|
30
+ Parameter to indicate whether S3Express session auth should be disabled
31
+ DOCS
32
+ nil
33
+ end
31
34
 
32
35
  # @api private
33
36
  class Handler < Seahorse::Client::Handler
@@ -57,6 +60,9 @@ module Aws::S3
57
60
  if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
58
61
  metrics << 'SIGV4A_SIGNING'
59
62
  end
63
+ if context.config.credentials&.credentials&.account_id
64
+ metrics << 'RESOLVED_ACCOUNT_ID'
65
+ end
60
66
  Aws::Plugins::UserAgent.metric(*metrics, &block)
61
67
  end
62
68
 
@@ -18108,3 +18108,6 @@ module Aws::S3
18108
18108
 
18109
18109
  end
18110
18110
  end
18111
+
18112
+ require "aws-sdk-s3/customizations/types/list_object_versions_output"
18113
+ require "aws-sdk-s3/customizations/types/permanent_redirect"
data/lib/aws-sdk-s3.rb CHANGED
@@ -12,36 +12,7 @@ require 'aws-sdk-kms'
12
12
  require 'aws-sigv4'
13
13
  require 'aws-sdk-core'
14
14
 
15
- require_relative 'aws-sdk-s3/types'
16
- require_relative 'aws-sdk-s3/client_api'
17
- require_relative 'aws-sdk-s3/plugins/endpoints.rb'
18
- require_relative 'aws-sdk-s3/client'
19
- require_relative 'aws-sdk-s3/errors'
20
- require_relative 'aws-sdk-s3/waiters'
21
- require_relative 'aws-sdk-s3/resource'
22
- require_relative 'aws-sdk-s3/endpoint_parameters'
23
- require_relative 'aws-sdk-s3/endpoint_provider'
24
- require_relative 'aws-sdk-s3/endpoints'
25
- require_relative 'aws-sdk-s3/bucket'
26
- require_relative 'aws-sdk-s3/bucket_acl'
27
- require_relative 'aws-sdk-s3/bucket_cors'
28
- require_relative 'aws-sdk-s3/bucket_lifecycle'
29
- require_relative 'aws-sdk-s3/bucket_lifecycle_configuration'
30
- require_relative 'aws-sdk-s3/bucket_logging'
31
- require_relative 'aws-sdk-s3/bucket_notification'
32
- require_relative 'aws-sdk-s3/bucket_policy'
33
- require_relative 'aws-sdk-s3/bucket_request_payment'
34
- require_relative 'aws-sdk-s3/bucket_tagging'
35
- require_relative 'aws-sdk-s3/bucket_versioning'
36
- require_relative 'aws-sdk-s3/bucket_website'
37
- require_relative 'aws-sdk-s3/multipart_upload'
38
- require_relative 'aws-sdk-s3/multipart_upload_part'
39
- require_relative 'aws-sdk-s3/object'
40
- require_relative 'aws-sdk-s3/object_acl'
41
- require_relative 'aws-sdk-s3/object_summary'
42
- require_relative 'aws-sdk-s3/object_version'
43
- require_relative 'aws-sdk-s3/customizations'
44
- require_relative 'aws-sdk-s3/event_streams'
15
+ Aws::Plugins::GlobalConfiguration.add_identifier(:s3)
45
16
 
46
17
  # This module provides support for Amazon Simple Storage Service. This module is available in the
47
18
  # `aws-sdk-s3` gem.
@@ -72,7 +43,40 @@ require_relative 'aws-sdk-s3/event_streams'
72
43
  #
73
44
  # @!group service
74
45
  module Aws::S3
46
+ autoload :Types, 'aws-sdk-s3/types'
47
+ autoload :ClientApi, 'aws-sdk-s3/client_api'
48
+ module Plugins
49
+ autoload :Endpoints, 'aws-sdk-s3/plugins/endpoints.rb'
50
+ end
51
+ autoload :Client, 'aws-sdk-s3/client'
52
+ autoload :Errors, 'aws-sdk-s3/errors'
53
+ autoload :Waiters, 'aws-sdk-s3/waiters'
54
+ autoload :Resource, 'aws-sdk-s3/resource'
55
+ autoload :EndpointParameters, 'aws-sdk-s3/endpoint_parameters'
56
+ autoload :EndpointProvider, 'aws-sdk-s3/endpoint_provider'
57
+ autoload :Endpoints, 'aws-sdk-s3/endpoints'
58
+ autoload :Bucket, 'aws-sdk-s3/bucket'
59
+ autoload :BucketAcl, 'aws-sdk-s3/bucket_acl'
60
+ autoload :BucketCors, 'aws-sdk-s3/bucket_cors'
61
+ autoload :BucketLifecycle, 'aws-sdk-s3/bucket_lifecycle'
62
+ autoload :BucketLifecycleConfiguration, 'aws-sdk-s3/bucket_lifecycle_configuration'
63
+ autoload :BucketLogging, 'aws-sdk-s3/bucket_logging'
64
+ autoload :BucketNotification, 'aws-sdk-s3/bucket_notification'
65
+ autoload :BucketPolicy, 'aws-sdk-s3/bucket_policy'
66
+ autoload :BucketRequestPayment, 'aws-sdk-s3/bucket_request_payment'
67
+ autoload :BucketTagging, 'aws-sdk-s3/bucket_tagging'
68
+ autoload :BucketVersioning, 'aws-sdk-s3/bucket_versioning'
69
+ autoload :BucketWebsite, 'aws-sdk-s3/bucket_website'
70
+ autoload :MultipartUpload, 'aws-sdk-s3/multipart_upload'
71
+ autoload :MultipartUploadPart, 'aws-sdk-s3/multipart_upload_part'
72
+ autoload :Object, 'aws-sdk-s3/object'
73
+ autoload :ObjectAcl, 'aws-sdk-s3/object_acl'
74
+ autoload :ObjectSummary, 'aws-sdk-s3/object_summary'
75
+ autoload :ObjectVersion, 'aws-sdk-s3/object_version'
76
+ autoload :EventStreams, 'aws-sdk-s3/event_streams'
75
77
 
76
- GEM_VERSION = '1.163.0'
78
+ GEM_VERSION = '1.166.0'
77
79
 
78
80
  end
81
+
82
+ require_relative 'aws-sdk-s3/customizations'
data/sig/client.rbs CHANGED
@@ -17,6 +17,7 @@ module Aws
17
17
  ?access_grants: bool,
18
18
  ?access_grants_credentials_provider: untyped,
19
19
  ?access_key_id: String,
20
+ ?account_id: String,
20
21
  ?active_endpoint_cache: bool,
21
22
  ?adaptive_retry_wait_to_fill: bool,
22
23
  ?client_side_monitoring: bool,
data/sig/resource.rbs CHANGED
@@ -17,6 +17,7 @@ module Aws
17
17
  ?access_grants: bool,
18
18
  ?access_grants_credentials_provider: untyped,
19
19
  ?access_key_id: String,
20
+ ?account_id: String,
20
21
  ?active_endpoint_cache: bool,
21
22
  ?adaptive_retry_wait_to_fill: bool,
22
23
  ?client_side_monitoring: bool,
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.163.0
4
+ version: 1.166.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: 2024-09-18 00:00:00.000000000 Z
11
+ date: 2024-09-24 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.205.0
50
+ version: 3.207.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.205.0
60
+ version: 3.207.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:
@@ -93,6 +93,7 @@ files:
93
93
  - lib/aws-sdk-s3/customizations/multipart_upload.rb
94
94
  - lib/aws-sdk-s3/customizations/object.rb
95
95
  - lib/aws-sdk-s3/customizations/object_summary.rb
96
+ - lib/aws-sdk-s3/customizations/object_version.rb
96
97
  - lib/aws-sdk-s3/customizations/types/list_object_versions_output.rb
97
98
  - lib/aws-sdk-s3/customizations/types/permanent_redirect.rb
98
99
  - lib/aws-sdk-s3/encryption.rb