aws-sdk-s3 1.167.0 → 1.168.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -344,11 +344,18 @@ module Aws::S3
344
344
  # changes to your bucket, such as editing its bucket policy.
345
345
  # @return [Time]
346
346
  #
347
+ # @!attribute [rw] bucket_region
348
+ # `BucketRegion` indicates the Amazon Web Services region where the
349
+ # bucket is located. If the request contains at least one valid
350
+ # parameter, it is included in the response.
351
+ # @return [String]
352
+ #
347
353
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Bucket AWS API Documentation
348
354
  #
349
355
  class Bucket < Struct.new(
350
356
  :name,
351
- :creation_date)
357
+ :creation_date,
358
+ :bucket_region)
352
359
  SENSITIVE = []
353
360
  include Aws::Structure
354
361
  end
@@ -1857,14 +1864,14 @@ module Aws::S3
1857
1864
  # * To encrypt new object copies to a directory bucket with SSE-KMS,
1858
1865
  # we recommend you specify SSE-KMS as the directory bucket's
1859
1866
  # default encryption configuration with a KMS key (specifically, a
1860
- # [customer managed key][4]). [Amazon Web Services managed key][5]
1861
- # (`aws/s3`) isn't supported. Your SSE-KMS configuration can only
1862
- # support 1 [customer managed key][4] per directory bucket for the
1863
- # lifetime of the bucket. After you specify a customer managed key
1864
- # for SSE-KMS, you can't override the customer managed key for the
1865
- # bucket's SSE-KMS configuration. Then, when you perform a
1866
- # `CopyObject` operation and want to specify server-side encryption
1867
- # settings for new object copies with SSE-KMS in the
1867
+ # [customer managed key][4]). The [Amazon Web Services managed
1868
+ # key][5] (`aws/s3`) isn't supported. Your SSE-KMS configuration
1869
+ # can only support 1 [customer managed key][4] per directory bucket
1870
+ # for the lifetime of the bucket. After you specify a customer
1871
+ # managed key for SSE-KMS, you can't override the customer managed
1872
+ # key for the bucket's SSE-KMS configuration. Then, when you
1873
+ # perform a `CopyObject` operation and want to specify server-side
1874
+ # encryption settings for new object copies with SSE-KMS in the
1868
1875
  # encryption-related request headers, you must ensure the encryption
1869
1876
  # key is the same customer managed key that you specified for the
1870
1877
  # directory bucket's default encryption configuration.
@@ -1990,15 +1997,20 @@ module Aws::S3
1990
1997
  # User Guide*.
1991
1998
  #
1992
1999
  # **Directory buckets** - If you specify
1993
- # `x-amz-server-side-encryption` with `aws:kms`, you must specify the
1994
- # ` x-amz-server-side-encryption-aws-kms-key-id` header with the ID
1995
- # (Key ID or Key ARN) of the KMS symmetric encryption customer managed
1996
- # key to use. Otherwise, you get an HTTP `400 Bad Request` error. Only
1997
- # use the key ID or key ARN. The key alias format of the KMS key
1998
- # isn't supported. Your SSE-KMS configuration can only support 1
1999
- # [customer managed key][2] per directory bucket for the lifetime of
2000
- # the bucket. [Amazon Web Services managed key][3] (`aws/s3`) isn't
2001
- # supported.
2000
+ # `x-amz-server-side-encryption` with `aws:kms`, the `
2001
+ # x-amz-server-side-encryption-aws-kms-key-id` header is implicitly
2002
+ # assigned the ID of the KMS symmetric encryption customer managed key
2003
+ # that's configured for your directory bucket's default encryption
2004
+ # setting. If you want to specify the `
2005
+ # x-amz-server-side-encryption-aws-kms-key-id` header explicitly, you
2006
+ # can only specify it with the ID (Key ID or Key ARN) of the KMS
2007
+ # customer managed key that's configured for your directory bucket's
2008
+ # default encryption setting. Otherwise, you get an HTTP `400 Bad
2009
+ # Request` error. Only use the key ID or key ARN. The key alias format
2010
+ # of the KMS key isn't supported. Your SSE-KMS configuration can only
2011
+ # support 1 [customer managed key][2] per directory bucket for the
2012
+ # lifetime of the bucket. The [Amazon Web Services managed key][3]
2013
+ # (`aws/s3`) isn't supported.
2002
2014
  #
2003
2015
  #
2004
2016
  #
@@ -3245,15 +3257,20 @@ module Aws::S3
3245
3257
  # Amazon Web Services managed key (`aws/s3`) to protect the data.
3246
3258
  #
3247
3259
  # **Directory buckets** - If you specify
3248
- # `x-amz-server-side-encryption` with `aws:kms`, you must specify the
3249
- # ` x-amz-server-side-encryption-aws-kms-key-id` header with the ID
3250
- # (Key ID or Key ARN) of the KMS symmetric encryption customer managed
3251
- # key to use. Otherwise, you get an HTTP `400 Bad Request` error. Only
3252
- # use the key ID or key ARN. The key alias format of the KMS key
3253
- # isn't supported. Your SSE-KMS configuration can only support 1
3254
- # [customer managed key][1] per directory bucket for the lifetime of
3255
- # the bucket. [Amazon Web Services managed key][2] (`aws/s3`) isn't
3256
- # supported.
3260
+ # `x-amz-server-side-encryption` with `aws:kms`, the `
3261
+ # x-amz-server-side-encryption-aws-kms-key-id` header is implicitly
3262
+ # assigned the ID of the KMS symmetric encryption customer managed key
3263
+ # that's configured for your directory bucket's default encryption
3264
+ # setting. If you want to specify the `
3265
+ # x-amz-server-side-encryption-aws-kms-key-id` header explicitly, you
3266
+ # can only specify it with the ID (Key ID or Key ARN) of the KMS
3267
+ # customer managed key that's configured for your directory bucket's
3268
+ # default encryption setting. Otherwise, you get an HTTP `400 Bad
3269
+ # Request` error. Only use the key ID or key ARN. The key alias format
3270
+ # of the KMS key isn't supported. Your SSE-KMS configuration can only
3271
+ # support 1 [customer managed key][1] per directory bucket for the
3272
+ # lifetime of the bucket. The [Amazon Web Services managed key][2]
3273
+ # (`aws/s3`) isn't supported.
3257
3274
  #
3258
3275
  #
3259
3276
  #
@@ -3491,8 +3508,8 @@ module Aws::S3
3491
3508
  # must use the full Key ARN not the Key ID.
3492
3509
  #
3493
3510
  # Your SSE-KMS configuration can only support 1 [customer managed
3494
- # key][1] per directory bucket for the lifetime of the bucket. [Amazon
3495
- # Web Services managed key][2] (`aws/s3`) isn't supported.
3511
+ # key][1] per directory bucket for the lifetime of the bucket. The
3512
+ # [Amazon Web Services managed key][2] (`aws/s3`) isn't supported.
3496
3513
  #
3497
3514
  #
3498
3515
  #
@@ -9818,12 +9835,21 @@ module Aws::S3
9818
9835
  # `ContinuationToken` is obfuscated and is not a real bucket.
9819
9836
  # @return [String]
9820
9837
  #
9838
+ # @!attribute [rw] prefix
9839
+ # If `Prefix` was sent with the request, it is included in the
9840
+ # response.
9841
+ #
9842
+ # All bucket names in the response begin with the specified bucket
9843
+ # name prefix.
9844
+ # @return [String]
9845
+ #
9821
9846
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketsOutput AWS API Documentation
9822
9847
  #
9823
9848
  class ListBucketsOutput < Struct.new(
9824
9849
  :buckets,
9825
9850
  :owner,
9826
- :continuation_token)
9851
+ :continuation_token,
9852
+ :prefix)
9827
9853
  SENSITIVE = []
9828
9854
  include Aws::Structure
9829
9855
  end
@@ -9845,11 +9871,38 @@ module Aws::S3
9845
9871
  # Required: No.
9846
9872
  # @return [String]
9847
9873
  #
9874
+ # @!attribute [rw] prefix
9875
+ # Limits the response to bucket names that begin with the specified
9876
+ # bucket name prefix.
9877
+ # @return [String]
9878
+ #
9879
+ # @!attribute [rw] bucket_region
9880
+ # Limits the response to buckets that are located in the specified
9881
+ # Amazon Web Services Region. The Amazon Web Services Region must be
9882
+ # expressed according to the Amazon Web Services Region code, such as
9883
+ # `us-west-2` for the US West (Oregon) Region. For a list of the valid
9884
+ # values for all of the Amazon Web Services Regions, see [Regions and
9885
+ # Endpoints][1].
9886
+ #
9887
+ # <note markdown="1"> Requests made to a Regional endpoint that is different from the
9888
+ # `bucket-region` parameter are not supported. For example, if you
9889
+ # want to limit the response to your buckets in Region `us-west-2`,
9890
+ # the request must be made to an endpoint in Region `us-west-2`.
9891
+ #
9892
+ # </note>
9893
+ #
9894
+ #
9895
+ #
9896
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
9897
+ # @return [String]
9898
+ #
9848
9899
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketsRequest AWS API Documentation
9849
9900
  #
9850
9901
  class ListBucketsRequest < Struct.new(
9851
9902
  :max_buckets,
9852
- :continuation_token)
9903
+ :continuation_token,
9904
+ :prefix,
9905
+ :bucket_region)
9853
9906
  SENSITIVE = []
9854
9907
  include Aws::Structure
9855
9908
  end
@@ -12478,7 +12531,7 @@ module Aws::S3
12478
12531
  # @!attribute [rw] restrict_public_buckets
12479
12532
  # Specifies whether Amazon S3 should restrict public bucket policies
12480
12533
  # for this bucket. Setting this element to `TRUE` restricts access to
12481
- # this bucket to only Amazon Web Servicesservice principals and
12534
+ # this bucket to only Amazon Web Services service principals and
12482
12535
  # authorized users within this account if the bucket has a public
12483
12536
  # policy.
12484
12537
  #
@@ -14357,10 +14410,11 @@ module Aws::S3
14357
14410
  # information about REST request authentication, see [REST
14358
14411
  # Authentication][1].
14359
14412
  #
14360
- # <note markdown="1"> The `Content-MD5` header is required for any request to upload an
14361
- # object with a retention period configured using Amazon S3 Object
14362
- # Lock. For more information about Amazon S3 Object Lock, see [Amazon
14363
- # S3 Object Lock Overview][2] in the *Amazon S3 User Guide*.
14413
+ # <note markdown="1"> The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is
14414
+ # required for any request to upload an object with a retention period
14415
+ # configured using Amazon S3 Object Lock. For more information, see
14416
+ # [Uploading objects to an Object Lock enabled bucket ][2] in the
14417
+ # *Amazon S3 User Guide*.
14364
14418
  #
14365
14419
  # </note>
14366
14420
  #
@@ -14371,7 +14425,7 @@ module Aws::S3
14371
14425
  #
14372
14426
  #
14373
14427
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
14374
- # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html
14428
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object
14375
14429
  # @return [String]
14376
14430
  #
14377
14431
  # @!attribute [rw] content_type
@@ -14413,15 +14467,22 @@ module Aws::S3
14413
14467
  # algorithm that matches the provided value in
14414
14468
  # `x-amz-checksum-algorithm `.
14415
14469
  #
14416
- # <note markdown="1"> For directory buckets, when you use Amazon Web Services SDKs,
14417
- # `CRC32` is the default checksum algorithm that's used for
14418
- # performance.
14470
+ # <note markdown="1"> The `Content-MD5` or `x-amz-sdk-checksum-algorithm` header is
14471
+ # required for any request to upload an object with a retention period
14472
+ # configured using Amazon S3 Object Lock. For more information, see
14473
+ # [Uploading objects to an Object Lock enabled bucket ][2] in the
14474
+ # *Amazon S3 User Guide*.
14419
14475
  #
14420
14476
  # </note>
14421
14477
  #
14478
+ # For directory buckets, when you use Amazon Web Services SDKs,
14479
+ # `CRC32` is the default checksum algorithm that's used for
14480
+ # performance.
14481
+ #
14422
14482
  #
14423
14483
  #
14424
14484
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
14485
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-put-object
14425
14486
  # @return [String]
14426
14487
  #
14427
14488
  # @!attribute [rw] checksum_crc32
@@ -14716,15 +14777,20 @@ module Aws::S3
14716
14777
  # Amazon Web Services managed key (`aws/s3`) to protect the data.
14717
14778
  #
14718
14779
  # **Directory buckets** - If you specify
14719
- # `x-amz-server-side-encryption` with `aws:kms`, you must specify the
14720
- # ` x-amz-server-side-encryption-aws-kms-key-id` header with the ID
14721
- # (Key ID or Key ARN) of the KMS symmetric encryption customer managed
14722
- # key to use. Otherwise, you get an HTTP `400 Bad Request` error. Only
14723
- # use the key ID or key ARN. The key alias format of the KMS key
14724
- # isn't supported. Your SSE-KMS configuration can only support 1
14725
- # [customer managed key][1] per directory bucket for the lifetime of
14726
- # the bucket. [Amazon Web Services managed key][2] (`aws/s3`) isn't
14727
- # supported.
14780
+ # `x-amz-server-side-encryption` with `aws:kms`, the `
14781
+ # x-amz-server-side-encryption-aws-kms-key-id` header is implicitly
14782
+ # assigned the ID of the KMS symmetric encryption customer managed key
14783
+ # that's configured for your directory bucket's default encryption
14784
+ # setting. If you want to specify the `
14785
+ # x-amz-server-side-encryption-aws-kms-key-id` header explicitly, you
14786
+ # can only specify it with the ID (Key ID or Key ARN) of the KMS
14787
+ # customer managed key that's configured for your directory bucket's
14788
+ # default encryption setting. Otherwise, you get an HTTP `400 Bad
14789
+ # Request` error. Only use the key ID or key ARN. The key alias format
14790
+ # of the KMS key isn't supported. Your SSE-KMS configuration can only
14791
+ # support 1 [customer managed key][1] per directory bucket for the
14792
+ # lifetime of the bucket. The [Amazon Web Services managed key][2]
14793
+ # (`aws/s3`) isn't supported.
14728
14794
  #
14729
14795
  #
14730
14796
  #
@@ -15835,15 +15901,7 @@ module Aws::S3
15835
15901
  # @return [Types::GlacierJobParameters]
15836
15902
  #
15837
15903
  # @!attribute [rw] type
15838
- # Amazon S3 Select is no longer available to new customers. Existing
15839
- # customers of Amazon S3 Select can continue to use the feature as
15840
- # usual. [Learn more][1]
15841
- #
15842
15904
  # Type of restore request.
15843
- #
15844
- #
15845
- #
15846
- # [1]: http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/
15847
15905
  # @return [String]
15848
15906
  #
15849
15907
  # @!attribute [rw] tier
@@ -15855,15 +15913,7 @@ module Aws::S3
15855
15913
  # @return [String]
15856
15914
  #
15857
15915
  # @!attribute [rw] select_parameters
15858
- # Amazon S3 Select is no longer available to new customers. Existing
15859
- # customers of Amazon S3 Select can continue to use the feature as
15860
- # usual. [Learn more][1]
15861
- #
15862
15916
  # Describes the parameters for Select job types.
15863
- #
15864
- #
15865
- #
15866
- # [1]: http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/
15867
15917
  # @return [Types::SelectParameters]
15868
15918
  #
15869
15919
  # @!attribute [rw] output_location
@@ -16194,12 +16244,6 @@ module Aws::S3
16194
16244
  include Aws::Structure
16195
16245
  end
16196
16246
 
16197
- # <note markdown="1"> Learn Amazon S3 Select is no longer available to new customers.
16198
- # Existing customers of Amazon S3 Select can continue to use the feature
16199
- # as usual. [Learn more][1]
16200
- #
16201
- # </note>
16202
- #
16203
16247
  # Request to filter the contents of an Amazon S3 object based on a
16204
16248
  # simple Structured Query Language (SQL) statement. In the request,
16205
16249
  # along with the SQL expression, you must specify a data serialization
@@ -16207,12 +16251,11 @@ module Aws::S3
16207
16251
  # object data into records. It returns only records that match the
16208
16252
  # specified SQL expression. You must also specify the data serialization
16209
16253
  # format for the response. For more information, see [S3Select API
16210
- # Documentation][2].
16254
+ # Documentation][1].
16211
16255
  #
16212
16256
  #
16213
16257
  #
16214
- # [1]: http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/
16215
- # [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html
16258
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html
16216
16259
  #
16217
16260
  # @!attribute [rw] bucket
16218
16261
  # The S3 bucket.
@@ -16324,21 +16367,8 @@ module Aws::S3
16324
16367
  include Aws::Structure
16325
16368
  end
16326
16369
 
16327
- # Amazon S3 Select is no longer available to new customers. Existing
16328
- # customers of Amazon S3 Select can continue to use the feature as
16329
- # usual. [Learn more][1]
16330
- #
16331
16370
  # Describes the parameters for Select job types.
16332
16371
  #
16333
- # Learn [How to optimize querying your data in Amazon S3][1] using
16334
- # [Amazon Athena][2], [S3 Object Lambda][3], or client-side filtering.
16335
- #
16336
- #
16337
- #
16338
- # [1]: http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/
16339
- # [2]: https://docs.aws.amazon.com/athena/latest/ug/what-is.html
16340
- # [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html
16341
- #
16342
16372
  # @!attribute [rw] input_serialization
16343
16373
  # Describes the serialization format of the object.
16344
16374
  # @return [Types::InputSerialization]
@@ -16348,15 +16378,7 @@ module Aws::S3
16348
16378
  # @return [String]
16349
16379
  #
16350
16380
  # @!attribute [rw] expression
16351
- # Amazon S3 Select is no longer available to new customers. Existing
16352
- # customers of Amazon S3 Select can continue to use the feature as
16353
- # usual. [Learn more][1]
16354
- #
16355
16381
  # The expression that is used to query the object.
16356
- #
16357
- #
16358
- #
16359
- # [1]: http://aws.amazon.com/blogs/storage/how-to-optimize-querying-your-data-in-amazon-s3/
16360
16382
  # @return [String]
16361
16383
  #
16362
16384
  # @!attribute [rw] output_serialization
@@ -16387,8 +16409,8 @@ module Aws::S3
16387
16409
  #
16388
16410
  # * **Directory buckets** - Your SSE-KMS configuration can only support
16389
16411
  # 1 [customer managed key][2] per directory bucket for the lifetime of
16390
- # the bucket. [Amazon Web Services managed key][3] (`aws/s3`) isn't
16391
- # supported.
16412
+ # the bucket. The [Amazon Web Services managed key][3] (`aws/s3`)
16413
+ # isn't supported.
16392
16414
  #
16393
16415
  # * **Directory buckets** - For directory buckets, there are only two
16394
16416
  # supported options for server-side encryption: SSE-S3 and SSE-KMS.
data/lib/aws-sdk-s3.rb CHANGED
@@ -75,7 +75,7 @@ module Aws::S3
75
75
  autoload :ObjectVersion, 'aws-sdk-s3/object_version'
76
76
  autoload :EventStreams, 'aws-sdk-s3/event_streams'
77
77
 
78
- GEM_VERSION = '1.167.0'
78
+ GEM_VERSION = '1.168.0'
79
79
 
80
80
  end
81
81
 
data/sig/bucket.rbs CHANGED
@@ -20,6 +20,9 @@ module Aws
20
20
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#creation_date-instance_method
21
21
  def creation_date: () -> ::Time
22
22
 
23
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#bucket_region-instance_method
24
+ def bucket_region: () -> ::String
25
+
23
26
  def client: () -> Client
24
27
 
25
28
 
data/sig/client.rbs CHANGED
@@ -1057,11 +1057,14 @@ module Aws
1057
1057
  def buckets: () -> ::Array[Types::Bucket]
1058
1058
  def owner: () -> Types::Owner
1059
1059
  def continuation_token: () -> ::String
1060
+ def prefix: () -> ::String
1060
1061
  end
1061
1062
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#list_buckets-instance_method
1062
1063
  def list_buckets: (
1063
1064
  ?max_buckets: ::Integer,
1064
- ?continuation_token: ::String
1065
+ ?continuation_token: ::String,
1066
+ ?prefix: ::String,
1067
+ ?bucket_region: ::String
1065
1068
  ) -> _ListBucketsResponseSuccess
1066
1069
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBucketsResponseSuccess
1067
1070
 
data/sig/resource.rbs CHANGED
@@ -123,6 +123,8 @@ module Aws
123
123
 
124
124
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Resource.html#buckets-instance_method
125
125
  def buckets: (
126
+ ?prefix: ::String,
127
+ ?bucket_region: ::String
126
128
  ) -> Bucket::Collection
127
129
  | (?Hash[Symbol, untyped]) -> Bucket::Collection
128
130
  end
data/sig/types.rbs CHANGED
@@ -79,6 +79,7 @@ module Aws::S3
79
79
  class Bucket
80
80
  attr_accessor name: ::String
81
81
  attr_accessor creation_date: ::Time
82
+ attr_accessor bucket_region: ::String
82
83
  SENSITIVE: []
83
84
  end
84
85
 
@@ -1369,12 +1370,15 @@ module Aws::S3
1369
1370
  attr_accessor buckets: ::Array[Types::Bucket]
1370
1371
  attr_accessor owner: Types::Owner
1371
1372
  attr_accessor continuation_token: ::String
1373
+ attr_accessor prefix: ::String
1372
1374
  SENSITIVE: []
1373
1375
  end
1374
1376
 
1375
1377
  class ListBucketsRequest
1376
1378
  attr_accessor max_buckets: ::Integer
1377
1379
  attr_accessor continuation_token: ::String
1380
+ attr_accessor prefix: ::String
1381
+ attr_accessor bucket_region: ::String
1378
1382
  SENSITIVE: []
1379
1383
  end
1380
1384
 
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.167.0
4
+ version: 1.168.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-10-02 00:00:00.000000000 Z
11
+ date: 2024-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms