aws-sdk-s3 1.162.0 → 1.167.0

Sign up to get free protection for your applications and to get access to all the features.
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.162.0'
78
+ GEM_VERSION = '1.167.0'
77
79
 
78
80
  end
81
+
82
+ require_relative 'aws-sdk-s3/customizations'
@@ -20,6 +20,9 @@ module Aws
20
20
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#rules-instance_method
21
21
  def rules: () -> ::Array[Types::LifecycleRule]
22
22
 
23
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#transition_default_minimum_object_size-instance_method
24
+ def transition_default_minimum_object_size: () -> ("varies_by_storage_class" | "all_storage_classes_128K")
25
+
23
26
  def client: () -> Client
24
27
 
25
28
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#load-instance_method
@@ -97,9 +100,10 @@ module Aws
97
100
  },
98
101
  ]
99
102
  },
100
- ?expected_bucket_owner: ::String
101
- ) -> ::Aws::EmptyStructure
102
- | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
103
+ ?expected_bucket_owner: ::String,
104
+ ?transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
105
+ ) -> Types::PutBucketLifecycleConfigurationOutput
106
+ | (?Hash[Symbol, untyped]) -> Types::PutBucketLifecycleConfigurationOutput
103
107
 
104
108
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#bucket-instance_method
105
109
  def bucket: () -> Bucket
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,
@@ -292,12 +293,20 @@ module Aws
292
293
 
293
294
  interface _CreateSessionResponseSuccess
294
295
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateSessionOutput]
296
+ def server_side_encryption: () -> ("AES256" | "aws:kms" | "aws:kms:dsse")
297
+ def ssekms_key_id: () -> ::String
298
+ def ssekms_encryption_context: () -> ::String
299
+ def bucket_key_enabled: () -> bool
295
300
  def credentials: () -> Types::SessionCredentials
296
301
  end
297
302
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#create_session-instance_method
298
303
  def create_session: (
299
304
  ?session_mode: ("ReadOnly" | "ReadWrite"),
300
- bucket: ::String
305
+ bucket: ::String,
306
+ ?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
307
+ ?ssekms_key_id: ::String,
308
+ ?ssekms_encryption_context: ::String,
309
+ ?bucket_key_enabled: bool
301
310
  ) -> _CreateSessionResponseSuccess
302
311
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSessionResponseSuccess
303
312
 
@@ -555,6 +564,7 @@ module Aws
555
564
  interface _GetBucketLifecycleConfigurationResponseSuccess
556
565
  include ::Seahorse::Client::_ResponseSuccess[Types::GetBucketLifecycleConfigurationOutput]
557
566
  def rules: () -> ::Array[Types::LifecycleRule]
567
+ def transition_default_minimum_object_size: () -> ("varies_by_storage_class" | "all_storage_classes_128K")
558
568
  end
559
569
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#get_bucket_lifecycle_configuration-instance_method
560
570
  def get_bucket_lifecycle_configuration: (
@@ -1455,6 +1465,10 @@ module Aws
1455
1465
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1456
1466
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1457
1467
 
1468
+ interface _PutBucketLifecycleConfigurationResponseSuccess
1469
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutBucketLifecycleConfigurationOutput]
1470
+ def transition_default_minimum_object_size: () -> ("varies_by_storage_class" | "all_storage_classes_128K")
1471
+ end
1458
1472
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#put_bucket_lifecycle_configuration-instance_method
1459
1473
  def put_bucket_lifecycle_configuration: (
1460
1474
  bucket: ::String,
@@ -1514,9 +1528,10 @@ module Aws
1514
1528
  },
1515
1529
  ]
1516
1530
  },
1517
- ?expected_bucket_owner: ::String
1518
- ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1519
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1531
+ ?expected_bucket_owner: ::String,
1532
+ ?transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
1533
+ ) -> _PutBucketLifecycleConfigurationResponseSuccess
1534
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutBucketLifecycleConfigurationResponseSuccess
1520
1535
 
1521
1536
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#put_bucket_logging-instance_method
1522
1537
  def put_bucket_logging: (
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,
data/sig/types.rbs CHANGED
@@ -381,14 +381,22 @@ module Aws::S3
381
381
  end
382
382
 
383
383
  class CreateSessionOutput
384
+ attr_accessor server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse")
385
+ attr_accessor ssekms_key_id: ::String
386
+ attr_accessor ssekms_encryption_context: ::String
387
+ attr_accessor bucket_key_enabled: bool
384
388
  attr_accessor credentials: Types::SessionCredentials
385
- SENSITIVE: []
389
+ SENSITIVE: [:ssekms_key_id, :ssekms_encryption_context]
386
390
  end
387
391
 
388
392
  class CreateSessionRequest
389
393
  attr_accessor session_mode: ("ReadOnly" | "ReadWrite")
390
394
  attr_accessor bucket: ::String
391
- SENSITIVE: []
395
+ attr_accessor server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse")
396
+ attr_accessor ssekms_key_id: ::String
397
+ attr_accessor ssekms_encryption_context: ::String
398
+ attr_accessor bucket_key_enabled: bool
399
+ SENSITIVE: [:ssekms_key_id, :ssekms_encryption_context]
392
400
  end
393
401
 
394
402
  class DefaultRetention
@@ -701,6 +709,7 @@ module Aws::S3
701
709
 
702
710
  class GetBucketLifecycleConfigurationOutput
703
711
  attr_accessor rules: ::Array[Types::LifecycleRule]
712
+ attr_accessor transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
704
713
  SENSITIVE: []
705
714
  end
706
715
 
@@ -1843,11 +1852,17 @@ module Aws::S3
1843
1852
  SENSITIVE: []
1844
1853
  end
1845
1854
 
1855
+ class PutBucketLifecycleConfigurationOutput
1856
+ attr_accessor transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
1857
+ SENSITIVE: []
1858
+ end
1859
+
1846
1860
  class PutBucketLifecycleConfigurationRequest
1847
1861
  attr_accessor bucket: ::String
1848
1862
  attr_accessor checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
1849
1863
  attr_accessor lifecycle_configuration: Types::BucketLifecycleConfiguration
1850
1864
  attr_accessor expected_bucket_owner: ::String
1865
+ attr_accessor transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
1851
1866
  SENSITIVE: []
1852
1867
  end
1853
1868
 
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.162.0
4
+ version: 1.167.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-11 00:00:00.000000000 Z
11
+ date: 2024-10-02 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