aws-sdk-s3 1.179.0 → 1.180.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +12 -15
- data/lib/aws-sdk-s3/bucket_acl.rb +1 -1
- data/lib/aws-sdk-s3/bucket_cors.rb +1 -1
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +1 -1
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +1 -1
- data/lib/aws-sdk-s3/bucket_logging.rb +1 -1
- data/lib/aws-sdk-s3/bucket_policy.rb +1 -1
- data/lib/aws-sdk-s3/bucket_request_payment.rb +1 -1
- data/lib/aws-sdk-s3/bucket_tagging.rb +1 -1
- data/lib/aws-sdk-s3/bucket_versioning.rb +3 -3
- data/lib/aws-sdk-s3/bucket_website.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +488 -470
- data/lib/aws-sdk-s3/endpoint_provider.rb +260 -277
- data/lib/aws-sdk-s3/object.rb +34 -52
- data/lib/aws-sdk-s3/object_summary.rb +34 -52
- data/lib/aws-sdk-s3/object_version.rb +1 -10
- data/lib/aws-sdk-s3/resource.rb +1 -1
- data/lib/aws-sdk-s3/types.rb +290 -264
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +1 -1
- data/sig/client.rbs +2 -2
- data/sig/resource.rbs +1 -1
- data/sig/types.rbs +2 -2
- metadata +2 -2
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -597,13 +597,13 @@ module Aws::S3
|
|
597
597
|
# * **Directory buckets** - For directory buckets, you must make
|
598
598
|
# requests for this API operation to the Zonal endpoint. These
|
599
599
|
# endpoints support virtual-hosted-style requests in the format
|
600
|
-
# `https://bucket
|
600
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
601
601
|
# `. Path-style requests are not supported. For more information about
|
602
602
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
603
603
|
# for directory buckets in Availability Zones][2] in the *Amazon S3
|
604
604
|
# User Guide*. For more information about endpoints in Local Zones,
|
605
|
-
# see [
|
606
|
-
# S3 User Guide*.
|
605
|
+
# see [Concepts for directory buckets in Local Zones][3] in the
|
606
|
+
# *Amazon S3 User Guide*.
|
607
607
|
#
|
608
608
|
# </note>
|
609
609
|
#
|
@@ -647,7 +647,7 @@ module Aws::S3
|
|
647
647
|
#
|
648
648
|
#
|
649
649
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html
|
650
|
-
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
650
|
+
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
651
651
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
652
652
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html
|
653
653
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
@@ -665,7 +665,7 @@ module Aws::S3
|
|
665
665
|
# requests are not supported. Directory bucket names must be unique in
|
666
666
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
667
667
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
668
|
-
#
|
668
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
669
669
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
670
670
|
# *Amazon S3 User Guide*.
|
671
671
|
#
|
@@ -685,14 +685,14 @@ module Aws::S3
|
|
685
685
|
#
|
686
686
|
# </note>
|
687
687
|
#
|
688
|
-
# **S3 on Outposts** - When you use this action with
|
689
|
-
#
|
690
|
-
#
|
688
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
689
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
690
|
+
# Outposts hostname takes the form `
|
691
691
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
692
|
-
# When you use this action with S3 on Outposts
|
693
|
-
#
|
694
|
-
#
|
695
|
-
#
|
692
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
693
|
+
# must be the Outposts access point ARN or the access point alias. For
|
694
|
+
# more information about S3 on Outposts, see [What is S3 on
|
695
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
696
696
|
#
|
697
697
|
#
|
698
698
|
#
|
@@ -830,13 +830,13 @@ module Aws::S3
|
|
830
830
|
# <note markdown="1"> **Directory buckets** - For directory buckets, you must make requests
|
831
831
|
# for this API operation to the Zonal endpoint. These endpoints support
|
832
832
|
# virtual-hosted-style requests in the format
|
833
|
-
# `https://bucket
|
833
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
834
834
|
# `. Path-style requests are not supported. For more information about
|
835
835
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints for
|
836
836
|
# directory buckets in Availability Zones][5] in the *Amazon S3 User
|
837
837
|
# Guide*. For more information about endpoints in Local Zones, see
|
838
|
-
# [
|
839
|
-
# Guide*.
|
838
|
+
# [Concepts for directory buckets in Local Zones][6] in the *Amazon S3
|
839
|
+
# User Guide*.
|
840
840
|
#
|
841
841
|
# </note>
|
842
842
|
#
|
@@ -923,7 +923,7 @@ module Aws::S3
|
|
923
923
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
|
924
924
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html
|
925
925
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html
|
926
|
-
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
926
|
+
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
927
927
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
928
928
|
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html
|
929
929
|
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html
|
@@ -942,7 +942,7 @@ module Aws::S3
|
|
942
942
|
# requests are not supported. Directory bucket names must be unique in
|
943
943
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
944
944
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
945
|
-
#
|
945
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
946
946
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
947
947
|
# *Amazon S3 User Guide*.
|
948
948
|
#
|
@@ -962,14 +962,14 @@ module Aws::S3
|
|
962
962
|
#
|
963
963
|
# </note>
|
964
964
|
#
|
965
|
-
# **S3 on Outposts** - When you use this action with
|
966
|
-
#
|
967
|
-
#
|
965
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
966
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
967
|
+
# Outposts hostname takes the form `
|
968
968
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
969
|
-
# When you use this action with S3 on Outposts
|
970
|
-
#
|
971
|
-
#
|
972
|
-
#
|
969
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
970
|
+
# must be the Outposts access point ARN or the access point alias. For
|
971
|
+
# more information about S3 on Outposts, see [What is S3 on
|
972
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
973
973
|
#
|
974
974
|
#
|
975
975
|
#
|
@@ -1299,13 +1299,13 @@ module Aws::S3
|
|
1299
1299
|
# * <b>Directory buckets </b> - For directory buckets, you must make
|
1300
1300
|
# requests for this API operation to the Zonal endpoint. These
|
1301
1301
|
# endpoints support virtual-hosted-style requests in the format
|
1302
|
-
# `https://bucket
|
1302
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
1303
1303
|
# `. Path-style requests are not supported. For more information about
|
1304
1304
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
1305
1305
|
# for directory buckets in Availability Zones][2] in the *Amazon S3
|
1306
1306
|
# User Guide*. For more information about endpoints in Local Zones,
|
1307
|
-
# see [
|
1308
|
-
# S3 User Guide*.
|
1307
|
+
# see [Concepts for directory buckets in Local Zones][3] in the
|
1308
|
+
# *Amazon S3 User Guide*.
|
1309
1309
|
#
|
1310
1310
|
# * VPC endpoints don't support cross-Region requests (including
|
1311
1311
|
# copies). If you're using VPC endpoints, your source and destination
|
@@ -1431,9 +1431,15 @@ module Aws::S3
|
|
1431
1431
|
# account. For pricing information, see [Amazon S3 pricing][10].
|
1432
1432
|
#
|
1433
1433
|
# HTTP Host header syntax
|
1434
|
+
# : * <b>Directory buckets </b> - The HTTP Host header syntax is `
|
1435
|
+
# Bucket-name.s3express-zone-id.region-code.amazonaws.com`.
|
1434
1436
|
#
|
1435
|
-
#
|
1436
|
-
#
|
1437
|
+
# * **Amazon S3 on Outposts** - When you use this action with S3 on
|
1438
|
+
# Outposts through the REST API, you must direct requests to the S3
|
1439
|
+
# on Outposts hostname. The S3 on Outposts hostname takes the form `
|
1440
|
+
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
1441
|
+
# The hostname isn't required when you use the Amazon Web Services
|
1442
|
+
# CLI or SDKs.
|
1437
1443
|
#
|
1438
1444
|
# The following operations are related to `CopyObject`:
|
1439
1445
|
#
|
@@ -1444,7 +1450,7 @@ module Aws::S3
|
|
1444
1450
|
#
|
1445
1451
|
#
|
1446
1452
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjctsUsingRESTMPUapi.html
|
1447
|
-
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
1453
|
+
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
1448
1454
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
1449
1455
|
# [4]: https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-regions.html#manage-acct-regions-enable-standalone
|
1450
1456
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html
|
@@ -1498,7 +1504,7 @@ module Aws::S3
|
|
1498
1504
|
# requests are not supported. Directory bucket names must be unique in
|
1499
1505
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
1500
1506
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
1501
|
-
#
|
1507
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
1502
1508
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
1503
1509
|
# *Amazon S3 User Guide*.
|
1504
1510
|
#
|
@@ -1526,14 +1532,19 @@ module Aws::S3
|
|
1526
1532
|
#
|
1527
1533
|
# </note>
|
1528
1534
|
#
|
1529
|
-
# **S3 on Outposts** - When you use this action with
|
1530
|
-
#
|
1531
|
-
#
|
1535
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
1536
|
+
# must use the Outpost bucket access point ARN or the access point alias
|
1537
|
+
# for the destination bucket. You can only copy objects within the same
|
1538
|
+
# Outpost bucket. It's not supported to copy objects across different
|
1539
|
+
# Amazon Web Services Outposts, between buckets on the same Outposts, or
|
1540
|
+
# between Outposts buckets and any other bucket types. For more
|
1541
|
+
# information about S3 on Outposts, see [What is S3 on Outposts?][3] in
|
1542
|
+
# the *S3 on Outposts guide*. When you use this action with S3 on
|
1543
|
+
# Outposts through the REST API, you must direct requests to the S3 on
|
1544
|
+
# Outposts hostname, in the format `
|
1532
1545
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
1533
|
-
#
|
1534
|
-
#
|
1535
|
-
# the bucket name. For more information about S3 on Outposts ARNs, see
|
1536
|
-
# [What is S3 on Outposts?][3] in the *Amazon S3 User Guide*.
|
1546
|
+
# The hostname isn't required when you use the Amazon Web Services CLI
|
1547
|
+
# or SDKs.
|
1537
1548
|
#
|
1538
1549
|
#
|
1539
1550
|
#
|
@@ -2012,20 +2023,17 @@ module Aws::S3
|
|
2012
2023
|
# Signature Version in Request Authentication][1] in the *Amazon S3 User
|
2013
2024
|
# Guide*.
|
2014
2025
|
#
|
2015
|
-
# **Directory buckets** -
|
2016
|
-
#
|
2017
|
-
#
|
2018
|
-
#
|
2019
|
-
#
|
2020
|
-
# x-amz-server-side-encryption-aws-kms-key-id` header
|
2021
|
-
#
|
2022
|
-
#
|
2023
|
-
#
|
2024
|
-
#
|
2025
|
-
#
|
2026
|
-
# support 1 [customer managed key][2] per directory bucket for the
|
2027
|
-
# lifetime of the bucket. The [Amazon Web Services managed key][3]
|
2028
|
-
# (`aws/s3`) isn't supported.
|
2026
|
+
# **Directory buckets** - To encrypt data using SSE-KMS, it's
|
2027
|
+
# recommended to specify the `x-amz-server-side-encryption` header to
|
2028
|
+
# `aws:kms`. Then, the `x-amz-server-side-encryption-aws-kms-key-id`
|
2029
|
+
# header implicitly uses the bucket's default KMS customer managed key
|
2030
|
+
# ID. If you want to explicitly set the `
|
2031
|
+
# x-amz-server-side-encryption-aws-kms-key-id` header, it must match the
|
2032
|
+
# bucket's default customer managed key (using key ID or ARN, not
|
2033
|
+
# alias). Your SSE-KMS configuration can only support 1 [customer
|
2034
|
+
# managed key][2] per directory bucket's lifetime. The [Amazon Web
|
2035
|
+
# Services managed key][3] (`aws/s3`) isn't supported. Incorrect key
|
2036
|
+
# specification results in an HTTP `400 Bad Request` error.
|
2029
2037
|
#
|
2030
2038
|
#
|
2031
2039
|
#
|
@@ -2369,8 +2377,8 @@ module Aws::S3
|
|
2369
2377
|
# information about endpoints in Availability Zones, see [Regional and
|
2370
2378
|
# Zonal endpoints for directory buckets in Availability Zones][4] in
|
2371
2379
|
# the *Amazon S3 User Guide*. For more information about endpoints in
|
2372
|
-
# Local Zones, see [
|
2373
|
-
# the *Amazon S3 User Guide*.
|
2380
|
+
# Local Zones, see [Concepts for directory buckets in Local Zones][5]
|
2381
|
+
# in the *Amazon S3 User Guide*.
|
2374
2382
|
#
|
2375
2383
|
# </note>
|
2376
2384
|
#
|
@@ -2462,7 +2470,7 @@ module Aws::S3
|
|
2462
2470
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateBucket.html
|
2463
2471
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html
|
2464
2472
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html
|
2465
|
-
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
2473
|
+
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
2466
2474
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
2467
2475
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html
|
2468
2476
|
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html
|
@@ -2593,33 +2601,33 @@ module Aws::S3
|
|
2593
2601
|
# * {Types::CreateBucketOutput#location #location} => String
|
2594
2602
|
#
|
2595
2603
|
#
|
2596
|
-
# @example Example: To create a bucket
|
2604
|
+
# @example Example: To create a bucket in a specific region
|
2597
2605
|
#
|
2598
|
-
# # The following example creates a bucket.
|
2606
|
+
# # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
2599
2607
|
#
|
2600
2608
|
# resp = client.create_bucket({
|
2601
2609
|
# bucket: "examplebucket",
|
2610
|
+
# create_bucket_configuration: {
|
2611
|
+
# location_constraint: "eu-west-1",
|
2612
|
+
# },
|
2602
2613
|
# })
|
2603
2614
|
#
|
2604
2615
|
# resp.to_h outputs the following:
|
2605
2616
|
# {
|
2606
|
-
# location: "/
|
2617
|
+
# location: "http://examplebucket.<Region>.s3.amazonaws.com/",
|
2607
2618
|
# }
|
2608
2619
|
#
|
2609
|
-
# @example Example: To create a bucket
|
2620
|
+
# @example Example: To create a bucket
|
2610
2621
|
#
|
2611
|
-
# # The following example creates a bucket.
|
2622
|
+
# # The following example creates a bucket.
|
2612
2623
|
#
|
2613
2624
|
# resp = client.create_bucket({
|
2614
2625
|
# bucket: "examplebucket",
|
2615
|
-
# create_bucket_configuration: {
|
2616
|
-
# location_constraint: "eu-west-1",
|
2617
|
-
# },
|
2618
2626
|
# })
|
2619
2627
|
#
|
2620
2628
|
# resp.to_h outputs the following:
|
2621
2629
|
# {
|
2622
|
-
# location: "
|
2630
|
+
# location: "/examplebucket",
|
2623
2631
|
# }
|
2624
2632
|
#
|
2625
2633
|
# @example Request syntax with placeholder values
|
@@ -2628,7 +2636,7 @@ module Aws::S3
|
|
2628
2636
|
# acl: "private", # accepts private, public-read, public-read-write, authenticated-read
|
2629
2637
|
# bucket: "BucketName", # required
|
2630
2638
|
# create_bucket_configuration: {
|
2631
|
-
# location_constraint: "af-south-1", # accepts af-south-1, ap-east-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-south-2, ap-southeast-1, ap-southeast-2, ap-southeast-3, ca-central-1, cn-north-1, cn-northwest-1, EU, eu-central-1, eu-north-1, eu-south-1, eu-south-2, eu-west-1, eu-west-2, eu-west-3, me-south-1, sa-east-1, us-east-2, us-gov-east-1, us-gov-west-1, us-west-1, us-west-2
|
2639
|
+
# location_constraint: "af-south-1", # accepts af-south-1, ap-east-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-south-2, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-4, ap-southeast-5, ca-central-1, cn-north-1, cn-northwest-1, EU, eu-central-1, eu-central-2, eu-north-1, eu-south-1, eu-south-2, eu-west-1, eu-west-2, eu-west-3, il-central-1, me-central-1, me-south-1, sa-east-1, us-east-2, us-gov-east-1, us-gov-west-1, us-west-1, us-west-2
|
2632
2640
|
# location: {
|
2633
2641
|
# type: "AvailabilityZone", # accepts AvailabilityZone, LocalZone
|
2634
2642
|
# name: "LocationNameAsString",
|
@@ -2775,13 +2783,13 @@ module Aws::S3
|
|
2775
2783
|
# * <b>Directory buckets </b> - For directory buckets, you must make
|
2776
2784
|
# requests for this API operation to the Zonal endpoint. These
|
2777
2785
|
# endpoints support virtual-hosted-style requests in the format
|
2778
|
-
# `https://bucket
|
2786
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
2779
2787
|
# `. Path-style requests are not supported. For more information about
|
2780
2788
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
2781
2789
|
# for directory buckets in Availability Zones][4] in the *Amazon S3
|
2782
2790
|
# User Guide*. For more information about endpoints in Local Zones,
|
2783
|
-
# see [
|
2784
|
-
# S3 User Guide*.
|
2791
|
+
# see [Concepts for directory buckets in Local Zones][5] in the
|
2792
|
+
# *Amazon S3 User Guide*.
|
2785
2793
|
#
|
2786
2794
|
# </note>
|
2787
2795
|
#
|
@@ -2983,7 +2991,7 @@ module Aws::S3
|
|
2983
2991
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html
|
2984
2992
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html
|
2985
2993
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config
|
2986
|
-
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
2994
|
+
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
2987
2995
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
2988
2996
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
|
2989
2997
|
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions
|
@@ -3035,7 +3043,7 @@ module Aws::S3
|
|
3035
3043
|
# requests are not supported. Directory bucket names must be unique in
|
3036
3044
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
3037
3045
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
3038
|
-
#
|
3046
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
3039
3047
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
3040
3048
|
# *Amazon S3 User Guide*.
|
3041
3049
|
#
|
@@ -3055,14 +3063,14 @@ module Aws::S3
|
|
3055
3063
|
#
|
3056
3064
|
# </note>
|
3057
3065
|
#
|
3058
|
-
# **S3 on Outposts** - When you use this action with
|
3059
|
-
#
|
3060
|
-
#
|
3066
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
3067
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
3068
|
+
# Outposts hostname takes the form `
|
3061
3069
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
3062
|
-
# When you use this action with S3 on Outposts
|
3063
|
-
#
|
3064
|
-
#
|
3065
|
-
#
|
3070
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
3071
|
+
# must be the Outposts access point ARN or the access point alias. For
|
3072
|
+
# more information about S3 on Outposts, see [What is S3 on
|
3073
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
3066
3074
|
#
|
3067
3075
|
#
|
3068
3076
|
#
|
@@ -3478,20 +3486,17 @@ module Aws::S3
|
|
3478
3486
|
# `x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the
|
3479
3487
|
# Amazon Web Services managed key (`aws/s3`) to protect the data.
|
3480
3488
|
#
|
3481
|
-
# **Directory buckets** -
|
3482
|
-
#
|
3483
|
-
#
|
3484
|
-
#
|
3485
|
-
#
|
3486
|
-
# x-amz-server-side-encryption-aws-kms-key-id` header
|
3487
|
-
#
|
3488
|
-
#
|
3489
|
-
#
|
3490
|
-
#
|
3491
|
-
#
|
3492
|
-
# support 1 [customer managed key][1] per directory bucket for the
|
3493
|
-
# lifetime of the bucket. The [Amazon Web Services managed key][2]
|
3494
|
-
# (`aws/s3`) isn't supported.
|
3489
|
+
# **Directory buckets** - To encrypt data using SSE-KMS, it's
|
3490
|
+
# recommended to specify the `x-amz-server-side-encryption` header to
|
3491
|
+
# `aws:kms`. Then, the `x-amz-server-side-encryption-aws-kms-key-id`
|
3492
|
+
# header implicitly uses the bucket's default KMS customer managed key
|
3493
|
+
# ID. If you want to explicitly set the `
|
3494
|
+
# x-amz-server-side-encryption-aws-kms-key-id` header, it must match the
|
3495
|
+
# bucket's default customer managed key (using key ID or ARN, not
|
3496
|
+
# alias). Your SSE-KMS configuration can only support 1 [customer
|
3497
|
+
# managed key][1] per directory bucket's lifetime. The [Amazon Web
|
3498
|
+
# Services managed key][2] (`aws/s3`) isn't supported. Incorrect key
|
3499
|
+
# specification results in an HTTP `400 Bad Request` error.
|
3495
3500
|
#
|
3496
3501
|
#
|
3497
3502
|
#
|
@@ -3748,8 +3753,8 @@ module Aws::S3
|
|
3748
3753
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
3749
3754
|
# for directory buckets in Availability Zones][3] in the *Amazon S3
|
3750
3755
|
# User Guide*. For more information about endpoints in Local Zones,
|
3751
|
-
# see [
|
3752
|
-
# S3 User Guide*.
|
3756
|
+
# see [Concepts for directory buckets in Local Zones][4] in the
|
3757
|
+
# *Amazon S3 User Guide*.
|
3753
3758
|
#
|
3754
3759
|
# * <b> <code>CopyObject</code> API operation</b> - Unlike other Zonal
|
3755
3760
|
# endpoint API operations, the `CopyObject` API operation doesn't use
|
@@ -3855,7 +3860,7 @@ module Aws::S3
|
|
3855
3860
|
#
|
3856
3861
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-APIs.html
|
3857
3862
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-optimizing-performance-guidelines-design-patterns.html#s3-express-optimizing-performance-session-authentication
|
3858
|
-
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
3863
|
+
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
3859
3864
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
3860
3865
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
|
3861
3866
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html
|
@@ -3895,7 +3900,7 @@ module Aws::S3
|
|
3895
3900
|
#
|
3896
3901
|
#
|
3897
3902
|
#
|
3898
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
3903
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/serv-side-encryption.html
|
3899
3904
|
#
|
3900
3905
|
# @option params [String] :ssekms_key_id
|
3901
3906
|
# If you specify `x-amz-server-side-encryption` with `aws:kms`, you must
|
@@ -3908,8 +3913,8 @@ module Aws::S3
|
|
3908
3913
|
# the Key ID.
|
3909
3914
|
#
|
3910
3915
|
# Your SSE-KMS configuration can only support 1 [customer managed
|
3911
|
-
# key][1] per directory bucket
|
3912
|
-
#
|
3916
|
+
# key][1] per directory bucket's lifetime. The [Amazon Web Services
|
3917
|
+
# managed key][2] (`aws/s3`) isn't supported.
|
3913
3918
|
#
|
3914
3919
|
#
|
3915
3920
|
#
|
@@ -4015,8 +4020,8 @@ module Aws::S3
|
|
4015
4020
|
# information about endpoints in Availability Zones, see [Regional and
|
4016
4021
|
# Zonal endpoints for directory buckets in Availability Zones][1] in
|
4017
4022
|
# the *Amazon S3 User Guide*. For more information about endpoints in
|
4018
|
-
# Local Zones, see [
|
4019
|
-
# the *Amazon S3 User Guide*.
|
4023
|
+
# Local Zones, see [Concepts for directory buckets in Local Zones][2]
|
4024
|
+
# in the *Amazon S3 User Guide*.
|
4020
4025
|
#
|
4021
4026
|
# </note>
|
4022
4027
|
#
|
@@ -4047,7 +4052,7 @@ module Aws::S3
|
|
4047
4052
|
#
|
4048
4053
|
#
|
4049
4054
|
#
|
4050
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
4055
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
4051
4056
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
4052
4057
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
4053
4058
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html
|
@@ -4512,8 +4517,8 @@ module Aws::S3
|
|
4512
4517
|
# information about endpoints in Availability Zones, see [Regional
|
4513
4518
|
# and Zonal endpoints for directory buckets in Availability
|
4514
4519
|
# Zones][3] in the *Amazon S3 User Guide*. For more information
|
4515
|
-
# about endpoints in Local Zones, see [
|
4516
|
-
#
|
4520
|
+
# about endpoints in Local Zones, see [Concepts for directory
|
4521
|
+
# buckets in Local Zones][4] in the *Amazon S3 User Guide*.
|
4517
4522
|
#
|
4518
4523
|
# </note>
|
4519
4524
|
# ^
|
@@ -4536,7 +4541,7 @@ module Aws::S3
|
|
4536
4541
|
#
|
4537
4542
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html
|
4538
4543
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
4539
|
-
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
4544
|
+
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
4540
4545
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
4541
4546
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions
|
4542
4547
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html
|
@@ -4763,7 +4768,7 @@ module Aws::S3
|
|
4763
4768
|
# about endpoints in Availability Zones, see [Regional and Zonal
|
4764
4769
|
# endpoints for directory buckets in Availability Zones][1] in the
|
4765
4770
|
# *Amazon S3 User Guide*. For more information about endpoints in Local
|
4766
|
-
# Zones, see [
|
4771
|
+
# Zones, see [Concepts for directory buckets in Local Zones][2] in the
|
4767
4772
|
# *Amazon S3 User Guide*.
|
4768
4773
|
#
|
4769
4774
|
# </note>
|
@@ -4820,7 +4825,7 @@ module Aws::S3
|
|
4820
4825
|
#
|
4821
4826
|
#
|
4822
4827
|
#
|
4823
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
4828
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
4824
4829
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
4825
4830
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html
|
4826
4831
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
@@ -5108,13 +5113,13 @@ module Aws::S3
|
|
5108
5113
|
# * **Directory buckets** - For directory buckets, you must make
|
5109
5114
|
# requests for this API operation to the Zonal endpoint. These
|
5110
5115
|
# endpoints support virtual-hosted-style requests in the format
|
5111
|
-
# `https://bucket
|
5116
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
5112
5117
|
# `. Path-style requests are not supported. For more information about
|
5113
5118
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
5114
5119
|
# for directory buckets in Availability Zones][3] in the *Amazon S3
|
5115
5120
|
# User Guide*. For more information about endpoints in Local Zones,
|
5116
|
-
# see [
|
5117
|
-
# S3 User Guide*.
|
5121
|
+
# see [Concepts for directory buckets in Local Zones][4] in the
|
5122
|
+
# *Amazon S3 User Guide*.
|
5118
5123
|
#
|
5119
5124
|
# </note>
|
5120
5125
|
#
|
@@ -5187,7 +5192,7 @@ module Aws::S3
|
|
5187
5192
|
#
|
5188
5193
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectVersions.html
|
5189
5194
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectsfromVersioningSuspendedBuckets.html
|
5190
|
-
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
5195
|
+
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
5191
5196
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
5192
5197
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMFADelete.html
|
5193
5198
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectDELETE.html#ExampleVersionObjectDelete
|
@@ -5204,7 +5209,7 @@ module Aws::S3
|
|
5204
5209
|
# requests are not supported. Directory bucket names must be unique in
|
5205
5210
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
5206
5211
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
5207
|
-
#
|
5212
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
5208
5213
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
5209
5214
|
# *Amazon S3 User Guide*.
|
5210
5215
|
#
|
@@ -5224,14 +5229,14 @@ module Aws::S3
|
|
5224
5229
|
#
|
5225
5230
|
# </note>
|
5226
5231
|
#
|
5227
|
-
# **S3 on Outposts** - When you use this action with
|
5228
|
-
#
|
5229
|
-
#
|
5232
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
5233
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
5234
|
+
# Outposts hostname takes the form `
|
5230
5235
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
5231
|
-
# When you use this action with S3 on Outposts
|
5232
|
-
#
|
5233
|
-
#
|
5234
|
-
#
|
5236
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
5237
|
+
# must be the Outposts access point ARN or the access point alias. For
|
5238
|
+
# more information about S3 on Outposts, see [What is S3 on
|
5239
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
5235
5240
|
#
|
5236
5241
|
#
|
5237
5242
|
#
|
@@ -5306,7 +5311,7 @@ module Aws::S3
|
|
5306
5311
|
#
|
5307
5312
|
#
|
5308
5313
|
#
|
5309
|
-
# [1]: https://
|
5314
|
+
# [1]: https://tools.ietf.org/html/rfc7232
|
5310
5315
|
#
|
5311
5316
|
# @option params [Time,DateTime,Date,Integer,String] :if_match_last_modified_time
|
5312
5317
|
# If present, the object is deleted only if its modification times
|
@@ -5341,15 +5346,6 @@ module Aws::S3
|
|
5341
5346
|
# * {Types::DeleteObjectOutput#request_charged #request_charged} => String
|
5342
5347
|
#
|
5343
5348
|
#
|
5344
|
-
# @example Example: To delete an object (from a non-versioned bucket)
|
5345
|
-
#
|
5346
|
-
# # The following example deletes an object from a non-versioned bucket.
|
5347
|
-
#
|
5348
|
-
# resp = client.delete_object({
|
5349
|
-
# bucket: "ExampleBucket",
|
5350
|
-
# key: "HappyFace.jpg",
|
5351
|
-
# })
|
5352
|
-
#
|
5353
5349
|
# @example Example: To delete an object
|
5354
5350
|
#
|
5355
5351
|
# # The following example deletes an object from an S3 bucket.
|
@@ -5363,6 +5359,15 @@ module Aws::S3
|
|
5363
5359
|
# {
|
5364
5360
|
# }
|
5365
5361
|
#
|
5362
|
+
# @example Example: To delete an object (from a non-versioned bucket)
|
5363
|
+
#
|
5364
|
+
# # The following example deletes an object from a non-versioned bucket.
|
5365
|
+
#
|
5366
|
+
# resp = client.delete_object({
|
5367
|
+
# bucket: "ExampleBucket",
|
5368
|
+
# key: "HappyFace.jpg",
|
5369
|
+
# })
|
5370
|
+
#
|
5366
5371
|
# @example Request syntax with placeholder values
|
5367
5372
|
#
|
5368
5373
|
# resp = client.delete_object({
|
@@ -5433,14 +5438,14 @@ module Aws::S3
|
|
5433
5438
|
# name. For more information about access point ARNs, see [Using access
|
5434
5439
|
# points][1] in the *Amazon S3 User Guide*.
|
5435
5440
|
#
|
5436
|
-
# **S3 on Outposts** - When you use this action with
|
5437
|
-
#
|
5438
|
-
#
|
5441
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
5442
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
5443
|
+
# Outposts hostname takes the form `
|
5439
5444
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
5440
|
-
# When you use this action with S3 on Outposts
|
5441
|
-
#
|
5442
|
-
#
|
5443
|
-
#
|
5445
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
5446
|
+
# must be the Outposts access point ARN or the access point alias. For
|
5447
|
+
# more information about S3 on Outposts, see [What is S3 on
|
5448
|
+
# Outposts?][2] in the *Amazon S3 User Guide*.
|
5444
5449
|
#
|
5445
5450
|
#
|
5446
5451
|
#
|
@@ -5464,35 +5469,35 @@ module Aws::S3
|
|
5464
5469
|
# * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
|
5465
5470
|
#
|
5466
5471
|
#
|
5467
|
-
# @example Example: To remove tag set from an object
|
5472
|
+
# @example Example: To remove tag set from an object version
|
5468
5473
|
#
|
5469
|
-
# # The following example removes tag set associated with the specified object.
|
5470
|
-
# #
|
5474
|
+
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
5475
|
+
# # object key and object version.
|
5471
5476
|
#
|
5472
5477
|
# resp = client.delete_object_tagging({
|
5473
5478
|
# bucket: "examplebucket",
|
5474
5479
|
# key: "HappyFace.jpg",
|
5480
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
5475
5481
|
# })
|
5476
5482
|
#
|
5477
5483
|
# resp.to_h outputs the following:
|
5478
5484
|
# {
|
5479
|
-
# version_id: "
|
5485
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
5480
5486
|
# }
|
5481
5487
|
#
|
5482
|
-
# @example Example: To remove tag set from an object
|
5488
|
+
# @example Example: To remove tag set from an object
|
5483
5489
|
#
|
5484
|
-
# # The following example removes tag set associated with the specified object
|
5485
|
-
# #
|
5490
|
+
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
5491
|
+
# # operation removes tag set from the latest object version.
|
5486
5492
|
#
|
5487
5493
|
# resp = client.delete_object_tagging({
|
5488
5494
|
# bucket: "examplebucket",
|
5489
5495
|
# key: "HappyFace.jpg",
|
5490
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
5491
5496
|
# })
|
5492
5497
|
#
|
5493
5498
|
# resp.to_h outputs the following:
|
5494
5499
|
# {
|
5495
|
-
# version_id: "
|
5500
|
+
# version_id: "null",
|
5496
5501
|
# }
|
5497
5502
|
#
|
5498
5503
|
# @example Request syntax with placeholder values
|
@@ -5522,13 +5527,14 @@ module Aws::S3
|
|
5522
5527
|
# to delete, then this operation provides a suitable alternative to
|
5523
5528
|
# sending individual delete requests, reducing per-request overhead.
|
5524
5529
|
#
|
5525
|
-
# The request can contain a list of up to
|
5530
|
+
# The request can contain a list of up to 1,000 keys that you want to
|
5526
5531
|
# delete. In the XML, you provide the object key names, and optionally,
|
5527
5532
|
# version IDs if you want to delete a specific version of the object
|
5528
5533
|
# from a versioning-enabled bucket. For each key, Amazon S3 performs a
|
5529
5534
|
# delete operation and returns the result of that delete, success or
|
5530
|
-
# failure, in the response.
|
5531
|
-
#
|
5535
|
+
# failure, in the response. If the object specified in the request
|
5536
|
+
# isn't found, Amazon S3 confirms the deletion by returning the result
|
5537
|
+
# as deleted.
|
5532
5538
|
#
|
5533
5539
|
# <note markdown="1"> * **Directory buckets** - S3 Versioning isn't enabled and supported
|
5534
5540
|
# for directory buckets.
|
@@ -5536,13 +5542,13 @@ module Aws::S3
|
|
5536
5542
|
# * **Directory buckets** - For directory buckets, you must make
|
5537
5543
|
# requests for this API operation to the Zonal endpoint. These
|
5538
5544
|
# endpoints support virtual-hosted-style requests in the format
|
5539
|
-
# `https://bucket
|
5545
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
5540
5546
|
# `. Path-style requests are not supported. For more information about
|
5541
5547
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
5542
5548
|
# for directory buckets in Availability Zones][1] in the *Amazon S3
|
5543
5549
|
# User Guide*. For more information about endpoints in Local Zones,
|
5544
|
-
# see [
|
5545
|
-
# S3 User Guide*.
|
5550
|
+
# see [Concepts for directory buckets in Local Zones][2] in the
|
5551
|
+
# *Amazon S3 User Guide*.
|
5546
5552
|
#
|
5547
5553
|
# </note>
|
5548
5554
|
#
|
@@ -5626,7 +5632,7 @@ module Aws::S3
|
|
5626
5632
|
#
|
5627
5633
|
#
|
5628
5634
|
#
|
5629
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
5635
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
5630
5636
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
5631
5637
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html#MultiFactorAuthenticationDelete
|
5632
5638
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
@@ -5645,7 +5651,7 @@ module Aws::S3
|
|
5645
5651
|
# requests are not supported. Directory bucket names must be unique in
|
5646
5652
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
5647
5653
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
5648
|
-
#
|
5654
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
5649
5655
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
5650
5656
|
# *Amazon S3 User Guide*.
|
5651
5657
|
#
|
@@ -5665,14 +5671,14 @@ module Aws::S3
|
|
5665
5671
|
#
|
5666
5672
|
# </note>
|
5667
5673
|
#
|
5668
|
-
# **S3 on Outposts** - When you use this action with
|
5669
|
-
#
|
5670
|
-
#
|
5674
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
5675
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
5676
|
+
# Outposts hostname takes the form `
|
5671
5677
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
5672
|
-
# When you use this action with S3 on Outposts
|
5673
|
-
#
|
5674
|
-
#
|
5675
|
-
#
|
5678
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
5679
|
+
# must be the Outposts access point ARN or the access point alias. For
|
5680
|
+
# more information about S3 on Outposts, see [What is S3 on
|
5681
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
5676
5682
|
#
|
5677
5683
|
#
|
5678
5684
|
#
|
@@ -5780,20 +5786,22 @@ module Aws::S3
|
|
5780
5786
|
# * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
|
5781
5787
|
#
|
5782
5788
|
#
|
5783
|
-
# @example Example: To delete multiple
|
5789
|
+
# @example Example: To delete multiple object versions from a versioned bucket
|
5784
5790
|
#
|
5785
|
-
# # The following example deletes objects from a bucket. The
|
5786
|
-
# #
|
5791
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
5792
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
5787
5793
|
#
|
5788
5794
|
# resp = client.delete_objects({
|
5789
5795
|
# bucket: "examplebucket",
|
5790
5796
|
# delete: {
|
5791
5797
|
# objects: [
|
5792
5798
|
# {
|
5793
|
-
# key: "
|
5799
|
+
# key: "HappyFace.jpg",
|
5800
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
5794
5801
|
# },
|
5795
5802
|
# {
|
5796
|
-
# key: "
|
5803
|
+
# key: "HappyFace.jpg",
|
5804
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
5797
5805
|
# },
|
5798
5806
|
# ],
|
5799
5807
|
# quiet: false,
|
@@ -5804,34 +5812,30 @@ module Aws::S3
|
|
5804
5812
|
# {
|
5805
5813
|
# deleted: [
|
5806
5814
|
# {
|
5807
|
-
#
|
5808
|
-
#
|
5809
|
-
# key: "objectkey1",
|
5815
|
+
# key: "HappyFace.jpg",
|
5816
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
5810
5817
|
# },
|
5811
5818
|
# {
|
5812
|
-
#
|
5813
|
-
#
|
5814
|
-
# key: "objectkey2",
|
5819
|
+
# key: "HappyFace.jpg",
|
5820
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
5815
5821
|
# },
|
5816
5822
|
# ],
|
5817
5823
|
# }
|
5818
5824
|
#
|
5819
|
-
# @example Example: To delete multiple
|
5825
|
+
# @example Example: To delete multiple objects from a versioned bucket
|
5820
5826
|
#
|
5821
|
-
# # The following example deletes objects from a bucket. The
|
5822
|
-
# #
|
5827
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
5828
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
5823
5829
|
#
|
5824
5830
|
# resp = client.delete_objects({
|
5825
5831
|
# bucket: "examplebucket",
|
5826
5832
|
# delete: {
|
5827
5833
|
# objects: [
|
5828
5834
|
# {
|
5829
|
-
# key: "
|
5830
|
-
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
5835
|
+
# key: "objectkey1",
|
5831
5836
|
# },
|
5832
5837
|
# {
|
5833
|
-
# key: "
|
5834
|
-
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
5838
|
+
# key: "objectkey2",
|
5835
5839
|
# },
|
5836
5840
|
# ],
|
5837
5841
|
# quiet: false,
|
@@ -5842,12 +5846,14 @@ module Aws::S3
|
|
5842
5846
|
# {
|
5843
5847
|
# deleted: [
|
5844
5848
|
# {
|
5845
|
-
#
|
5846
|
-
#
|
5849
|
+
# delete_marker: true,
|
5850
|
+
# delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
5851
|
+
# key: "objectkey1",
|
5847
5852
|
# },
|
5848
5853
|
# {
|
5849
|
-
#
|
5850
|
-
#
|
5854
|
+
# delete_marker: true,
|
5855
|
+
# delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
5856
|
+
# key: "objectkey2",
|
5851
5857
|
# },
|
5852
5858
|
# ],
|
5853
5859
|
# }
|
@@ -6805,8 +6811,8 @@ module Aws::S3
|
|
6805
6811
|
# information about endpoints in Availability Zones, see [Regional
|
6806
6812
|
# and Zonal endpoints for directory buckets in Availability
|
6807
6813
|
# Zones][5] in the *Amazon S3 User Guide*. For more information
|
6808
|
-
# about endpoints in Local Zones, see [
|
6809
|
-
#
|
6814
|
+
# about endpoints in Local Zones, see [Concepts for directory
|
6815
|
+
# buckets in Local Zones][6] in the *Amazon S3 User Guide*.
|
6810
6816
|
#
|
6811
6817
|
# </note>
|
6812
6818
|
#
|
@@ -6840,7 +6846,7 @@ module Aws::S3
|
|
6840
6846
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycle.html
|
6841
6847
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html
|
6842
6848
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
6843
|
-
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
6849
|
+
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
6844
6850
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
6845
6851
|
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html
|
6846
6852
|
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html
|
@@ -7024,7 +7030,7 @@ module Aws::S3
|
|
7024
7030
|
#
|
7025
7031
|
# @example Response structure
|
7026
7032
|
#
|
7027
|
-
# resp.location_constraint #=> String, one of "af-south-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-south-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "ca-central-1", "cn-north-1", "cn-northwest-1", "EU", "eu-central-1", "eu-north-1", "eu-south-1", "eu-south-2", "eu-west-1", "eu-west-2", "eu-west-3", "me-south-1", "sa-east-1", "us-east-2", "us-gov-east-1", "us-gov-west-1", "us-west-1", "us-west-2"
|
7033
|
+
# resp.location_constraint #=> String, one of "af-south-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-south-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "ap-southeast-4", "ap-southeast-5", "ca-central-1", "cn-north-1", "cn-northwest-1", "EU", "eu-central-1", "eu-central-2", "eu-north-1", "eu-south-1", "eu-south-2", "eu-west-1", "eu-west-2", "eu-west-3", "il-central-1", "me-central-1", "me-south-1", "sa-east-1", "us-east-2", "us-gov-east-1", "us-gov-west-1", "us-west-1", "us-west-2"
|
7028
7034
|
#
|
7029
7035
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocation AWS API Documentation
|
7030
7036
|
#
|
@@ -7556,7 +7562,7 @@ module Aws::S3
|
|
7556
7562
|
# about endpoints in Availability Zones, see [Regional and Zonal
|
7557
7563
|
# endpoints for directory buckets in Availability Zones][1] in the
|
7558
7564
|
# *Amazon S3 User Guide*. For more information about endpoints in Local
|
7559
|
-
# Zones, see [
|
7565
|
+
# Zones, see [Concepts for directory buckets in Local Zones][2] in the
|
7560
7566
|
# *Amazon S3 User Guide*.
|
7561
7567
|
#
|
7562
7568
|
# </note>
|
@@ -7620,7 +7626,7 @@ module Aws::S3
|
|
7620
7626
|
#
|
7621
7627
|
#
|
7622
7628
|
#
|
7623
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
7629
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
7624
7630
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
7625
7631
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html
|
7626
7632
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
@@ -8239,7 +8245,7 @@ module Aws::S3
|
|
8239
8245
|
# **Directory buckets** - Only virtual-hosted-style requests are
|
8240
8246
|
# supported. For a virtual hosted-style request example, if you have the
|
8241
8247
|
# object `photos/2006/February/sample.jpg` in the bucket named
|
8242
|
-
# `
|
8248
|
+
# `amzn-s3-demo-bucket--usw2-az1--x-s3`, specify the object key name as
|
8243
8249
|
# `/photos/2006/February/sample.jpg`. Also, when you make requests to
|
8244
8250
|
# this API operation, your requests are sent to the Zonal endpoint.
|
8245
8251
|
# These endpoints support virtual-hosted-style requests in the format
|
@@ -8248,8 +8254,8 @@ module Aws::S3
|
|
8248
8254
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints for
|
8249
8255
|
# directory buckets in Availability Zones][2] in the *Amazon S3 User
|
8250
8256
|
# Guide*. For more information about endpoints in Local Zones, see
|
8251
|
-
# [
|
8252
|
-
# Guide*.
|
8257
|
+
# [Concepts for directory buckets in Local Zones][3] in the *Amazon S3
|
8258
|
+
# User Guide*.
|
8253
8259
|
#
|
8254
8260
|
# Permissions
|
8255
8261
|
# : * **General purpose bucket permissions** - You must have the
|
@@ -8385,7 +8391,7 @@ module Aws::S3
|
|
8385
8391
|
#
|
8386
8392
|
#
|
8387
8393
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingSpecifyBucket
|
8388
|
-
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
8394
|
+
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
8389
8395
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
8390
8396
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html
|
8391
8397
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
@@ -8407,7 +8413,7 @@ module Aws::S3
|
|
8407
8413
|
# requests are not supported. Directory bucket names must be unique in
|
8408
8414
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
8409
8415
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
8410
|
-
#
|
8416
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
8411
8417
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
8412
8418
|
# *Amazon S3 User Guide*.
|
8413
8419
|
#
|
@@ -8433,14 +8439,14 @@ module Aws::S3
|
|
8433
8439
|
#
|
8434
8440
|
# </note>
|
8435
8441
|
#
|
8436
|
-
# **S3 on Outposts** - When you use this action with
|
8437
|
-
#
|
8438
|
-
#
|
8442
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
8443
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
8444
|
+
# Outposts hostname takes the form `
|
8439
8445
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
8440
|
-
# When you use this action with S3 on Outposts
|
8441
|
-
#
|
8442
|
-
#
|
8443
|
-
#
|
8446
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
8447
|
+
# must be the Outposts access point ARN or the access point alias. For
|
8448
|
+
# more information about S3 on Outposts, see [What is S3 on
|
8449
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
8444
8450
|
#
|
8445
8451
|
#
|
8446
8452
|
#
|
@@ -8690,15 +8696,6 @@ module Aws::S3
|
|
8690
8696
|
# @option params [String] :checksum_mode
|
8691
8697
|
# To retrieve the checksum, this mode must be enabled.
|
8692
8698
|
#
|
8693
|
-
# **General purpose buckets** - In addition, if you enable checksum mode
|
8694
|
-
# and the object is uploaded with a [checksum][1] and encrypted with an
|
8695
|
-
# Key Management Service (KMS) key, you must have permission to use the
|
8696
|
-
# `kms:Decrypt` action to retrieve the checksum.
|
8697
|
-
#
|
8698
|
-
#
|
8699
|
-
#
|
8700
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html
|
8701
|
-
#
|
8702
8699
|
# @return [Types::GetObjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
8703
8700
|
#
|
8704
8701
|
# * {Types::GetObjectOutput#body #body} => IO
|
@@ -9090,13 +9087,13 @@ module Aws::S3
|
|
9090
9087
|
# <note markdown="1"> **Directory buckets** - For directory buckets, you must make requests
|
9091
9088
|
# for this API operation to the Zonal endpoint. These endpoints support
|
9092
9089
|
# virtual-hosted-style requests in the format
|
9093
|
-
# `https://bucket
|
9090
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
9094
9091
|
# `. Path-style requests are not supported. For more information about
|
9095
9092
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints for
|
9096
9093
|
# directory buckets in Availability Zones][1] in the *Amazon S3 User
|
9097
9094
|
# Guide*. For more information about endpoints in Local Zones, see
|
9098
|
-
# [
|
9099
|
-
# Guide*.
|
9095
|
+
# [Concepts for directory buckets in Local Zones][2] in the *Amazon S3
|
9096
|
+
# User Guide*.
|
9100
9097
|
#
|
9101
9098
|
# </note>
|
9102
9099
|
#
|
@@ -9245,7 +9242,7 @@ module Aws::S3
|
|
9245
9242
|
#
|
9246
9243
|
#
|
9247
9244
|
#
|
9248
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
9245
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
9249
9246
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
9250
9247
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html
|
9251
9248
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
@@ -9271,7 +9268,7 @@ module Aws::S3
|
|
9271
9268
|
# requests are not supported. Directory bucket names must be unique in
|
9272
9269
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
9273
9270
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
9274
|
-
#
|
9271
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
9275
9272
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
9276
9273
|
# *Amazon S3 User Guide*.
|
9277
9274
|
#
|
@@ -9291,14 +9288,14 @@ module Aws::S3
|
|
9291
9288
|
#
|
9292
9289
|
# </note>
|
9293
9290
|
#
|
9294
|
-
# **S3 on Outposts** - When you use this action with
|
9295
|
-
#
|
9296
|
-
#
|
9291
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
9292
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
9293
|
+
# Outposts hostname takes the form `
|
9297
9294
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
9298
|
-
# When you use this action with S3 on Outposts
|
9299
|
-
#
|
9300
|
-
#
|
9301
|
-
#
|
9295
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
9296
|
+
# must be the Outposts access point ARN or the access point alias. For
|
9297
|
+
# more information about S3 on Outposts, see [What is S3 on
|
9298
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
9302
9299
|
#
|
9303
9300
|
#
|
9304
9301
|
#
|
@@ -9759,14 +9756,14 @@ module Aws::S3
|
|
9759
9756
|
# name. For more information about access point ARNs, see [Using access
|
9760
9757
|
# points][1] in the *Amazon S3 User Guide*.
|
9761
9758
|
#
|
9762
|
-
# **S3 on Outposts** - When you use this action with
|
9763
|
-
#
|
9764
|
-
#
|
9759
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
9760
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
9761
|
+
# Outposts hostname takes the form `
|
9765
9762
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
9766
|
-
# When you use this action with S3 on Outposts
|
9767
|
-
#
|
9768
|
-
#
|
9769
|
-
#
|
9763
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
9764
|
+
# must be the Outposts access point ARN or the access point alias. For
|
9765
|
+
# more information about S3 on Outposts, see [What is S3 on
|
9766
|
+
# Outposts?][2] in the *Amazon S3 User Guide*.
|
9770
9767
|
#
|
9771
9768
|
#
|
9772
9769
|
#
|
@@ -10119,8 +10116,8 @@ module Aws::S3
|
|
10119
10116
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
10120
10117
|
# for directory buckets in Availability Zones][5] in the *Amazon S3
|
10121
10118
|
# User Guide*. For more information about endpoints in Local Zones,
|
10122
|
-
# see [
|
10123
|
-
# S3 User Guide*.
|
10119
|
+
# see [Concepts for directory buckets in Local Zones][6] in the
|
10120
|
+
# *Amazon S3 User Guide*.
|
10124
10121
|
#
|
10125
10122
|
# </note>
|
10126
10123
|
#
|
@@ -10130,7 +10127,7 @@ module Aws::S3
|
|
10130
10127
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html
|
10131
10128
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html
|
10132
10129
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html
|
10133
|
-
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
10130
|
+
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
10134
10131
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
10135
10132
|
#
|
10136
10133
|
# @option params [required, String] :bucket
|
@@ -10142,7 +10139,7 @@ module Aws::S3
|
|
10142
10139
|
# requests are not supported. Directory bucket names must be unique in
|
10143
10140
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
10144
10141
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
10145
|
-
#
|
10142
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
10146
10143
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
10147
10144
|
# *Amazon S3 User Guide*.
|
10148
10145
|
#
|
@@ -10169,14 +10166,14 @@ module Aws::S3
|
|
10169
10166
|
#
|
10170
10167
|
# </note>
|
10171
10168
|
#
|
10172
|
-
# **S3 on Outposts** - When you use this action with
|
10173
|
-
#
|
10174
|
-
#
|
10169
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
10170
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
10171
|
+
# Outposts hostname takes the form `
|
10175
10172
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
10176
|
-
# When you use this action with S3 on Outposts
|
10177
|
-
#
|
10178
|
-
#
|
10179
|
-
#
|
10173
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
10174
|
+
# must be the Outposts access point ARN or the access point alias. For
|
10175
|
+
# more information about S3 on Outposts, see [What is S3 on
|
10176
|
+
# Outposts?][4] in the *Amazon S3 User Guide*.
|
10180
10177
|
#
|
10181
10178
|
#
|
10182
10179
|
#
|
@@ -10365,13 +10362,13 @@ module Aws::S3
|
|
10365
10362
|
# <note markdown="1"> For directory buckets, you must make requests for this API operation
|
10366
10363
|
# to the Zonal endpoint. These endpoints support virtual-hosted-style
|
10367
10364
|
# requests in the format
|
10368
|
-
# `https://bucket
|
10365
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
10369
10366
|
# `. Path-style requests are not supported. For more information about
|
10370
10367
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
10371
10368
|
# for directory buckets in Availability Zones][6] in the *Amazon S3
|
10372
10369
|
# User Guide*. For more information about endpoints in Local Zones,
|
10373
|
-
# see [
|
10374
|
-
# S3 User Guide*.
|
10370
|
+
# see [Concepts for directory buckets in Local Zones][7] in the
|
10371
|
+
# *Amazon S3 User Guide*.
|
10375
10372
|
#
|
10376
10373
|
# </note>
|
10377
10374
|
#
|
@@ -10388,7 +10385,7 @@ module Aws::S3
|
|
10388
10385
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
10389
10386
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
|
10390
10387
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-serv-side-encryption.html
|
10391
|
-
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
10388
|
+
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
10392
10389
|
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
10393
10390
|
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
|
10394
10391
|
# [9]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html
|
@@ -10402,7 +10399,7 @@ module Aws::S3
|
|
10402
10399
|
# requests are not supported. Directory bucket names must be unique in
|
10403
10400
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
10404
10401
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
10405
|
-
#
|
10402
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
10406
10403
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
10407
10404
|
# *Amazon S3 User Guide*.
|
10408
10405
|
#
|
@@ -10422,14 +10419,14 @@ module Aws::S3
|
|
10422
10419
|
#
|
10423
10420
|
# </note>
|
10424
10421
|
#
|
10425
|
-
# **S3 on Outposts** - When you use this action with
|
10426
|
-
#
|
10427
|
-
#
|
10422
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
10423
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
10424
|
+
# Outposts hostname takes the form `
|
10428
10425
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
10429
|
-
# When you use this action with S3 on Outposts
|
10430
|
-
#
|
10431
|
-
#
|
10432
|
-
#
|
10426
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
10427
|
+
# must be the Outposts access point ARN or the access point alias. For
|
10428
|
+
# more information about S3 on Outposts, see [What is S3 on
|
10429
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
10433
10430
|
#
|
10434
10431
|
#
|
10435
10432
|
#
|
@@ -11314,7 +11311,7 @@ module Aws::S3
|
|
11314
11311
|
# about endpoints in Availability Zones, see [Regional and Zonal
|
11315
11312
|
# endpoints for directory buckets in Availability Zones][2] in the
|
11316
11313
|
# *Amazon S3 User Guide*. For more information about endpoints in Local
|
11317
|
-
# Zones, see [
|
11314
|
+
# Zones, see [Concepts for directory buckets in Local Zones][3] in the
|
11318
11315
|
# *Amazon S3 User Guide*.
|
11319
11316
|
#
|
11320
11317
|
# </note>
|
@@ -11343,7 +11340,7 @@ module Aws::S3
|
|
11343
11340
|
#
|
11344
11341
|
#
|
11345
11342
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html
|
11346
|
-
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
11343
|
+
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
11347
11344
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
11348
11345
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
11349
11346
|
#
|
@@ -11433,13 +11430,13 @@ module Aws::S3
|
|
11433
11430
|
# <note markdown="1"> **Directory buckets** - For directory buckets, you must make requests
|
11434
11431
|
# for this API operation to the Zonal endpoint. These endpoints support
|
11435
11432
|
# virtual-hosted-style requests in the format
|
11436
|
-
# `https://bucket
|
11433
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
11437
11434
|
# `. Path-style requests are not supported. For more information about
|
11438
11435
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints for
|
11439
11436
|
# directory buckets in Availability Zones][2] in the *Amazon S3 User
|
11440
11437
|
# Guide*. For more information about endpoints in Local Zones, see
|
11441
|
-
# [
|
11442
|
-
# Guide*.
|
11438
|
+
# [Concepts for directory buckets in Local Zones][3] in the *Amazon S3
|
11439
|
+
# User Guide*.
|
11443
11440
|
#
|
11444
11441
|
# </note>
|
11445
11442
|
#
|
@@ -11500,7 +11497,7 @@ module Aws::S3
|
|
11500
11497
|
#
|
11501
11498
|
#
|
11502
11499
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html
|
11503
|
-
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
11500
|
+
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
11504
11501
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
11505
11502
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html
|
11506
11503
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
@@ -11519,7 +11516,7 @@ module Aws::S3
|
|
11519
11516
|
# requests are not supported. Directory bucket names must be unique in
|
11520
11517
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
11521
11518
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
11522
|
-
#
|
11519
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
11523
11520
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
11524
11521
|
# *Amazon S3 User Guide*.
|
11525
11522
|
#
|
@@ -11539,14 +11536,14 @@ module Aws::S3
|
|
11539
11536
|
#
|
11540
11537
|
# </note>
|
11541
11538
|
#
|
11542
|
-
# **S3 on Outposts** - When you use this action with
|
11543
|
-
#
|
11544
|
-
#
|
11539
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
11540
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
11541
|
+
# Outposts hostname takes the form `
|
11545
11542
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
11546
|
-
# When you use this action with S3 on Outposts
|
11547
|
-
#
|
11548
|
-
#
|
11549
|
-
#
|
11543
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
11544
|
+
# must be the Outposts access point ARN or the access point alias. For
|
11545
|
+
# more information about S3 on Outposts, see [What is S3 on
|
11546
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
11550
11547
|
#
|
11551
11548
|
#
|
11552
11549
|
#
|
@@ -11689,97 +11686,97 @@ module Aws::S3
|
|
11689
11686
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
11690
11687
|
#
|
11691
11688
|
#
|
11692
|
-
# @example Example:
|
11689
|
+
# @example Example: To list in-progress multipart uploads on a bucket
|
11693
11690
|
#
|
11694
|
-
# # The following example
|
11695
|
-
# # setup of multipart uploads.
|
11691
|
+
# # The following example lists in-progress multipart uploads on a specific bucket.
|
11696
11692
|
#
|
11697
11693
|
# resp = client.list_multipart_uploads({
|
11698
11694
|
# bucket: "examplebucket",
|
11699
|
-
# key_marker: "nextkeyfrompreviousresponse",
|
11700
|
-
# max_uploads: 2,
|
11701
|
-
# upload_id_marker: "valuefrompreviousresponse",
|
11702
11695
|
# })
|
11703
11696
|
#
|
11704
11697
|
# resp.to_h outputs the following:
|
11705
11698
|
# {
|
11706
|
-
# bucket: "acl1",
|
11707
|
-
# is_truncated: true,
|
11708
|
-
# key_marker: "",
|
11709
|
-
# max_uploads: 2,
|
11710
|
-
# next_key_marker: "someobjectkey",
|
11711
|
-
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
11712
|
-
# upload_id_marker: "",
|
11713
11699
|
# uploads: [
|
11714
11700
|
# {
|
11715
11701
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
11716
11702
|
# initiator: {
|
11717
|
-
# display_name: "
|
11703
|
+
# display_name: "display-name",
|
11718
11704
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
11719
11705
|
# },
|
11720
11706
|
# key: "JavaFile",
|
11721
11707
|
# owner: {
|
11722
|
-
# display_name: "
|
11723
|
-
# id: "
|
11708
|
+
# display_name: "display-name",
|
11709
|
+
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
11724
11710
|
# },
|
11725
11711
|
# storage_class: "STANDARD",
|
11726
|
-
# upload_id: "
|
11712
|
+
# upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
11727
11713
|
# },
|
11728
11714
|
# {
|
11729
11715
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
11730
11716
|
# initiator: {
|
11731
|
-
# display_name: "
|
11717
|
+
# display_name: "display-name",
|
11732
11718
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
11733
11719
|
# },
|
11734
11720
|
# key: "JavaFile",
|
11735
11721
|
# owner: {
|
11736
|
-
# display_name: "
|
11722
|
+
# display_name: "display-name",
|
11737
11723
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
11738
11724
|
# },
|
11739
11725
|
# storage_class: "STANDARD",
|
11740
|
-
# upload_id: "
|
11726
|
+
# upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
11741
11727
|
# },
|
11742
11728
|
# ],
|
11743
11729
|
# }
|
11744
11730
|
#
|
11745
|
-
# @example Example:
|
11731
|
+
# @example Example: List next set of multipart uploads when previous result is truncated
|
11746
11732
|
#
|
11747
|
-
# # The following example
|
11733
|
+
# # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
|
11734
|
+
# # setup of multipart uploads.
|
11748
11735
|
#
|
11749
11736
|
# resp = client.list_multipart_uploads({
|
11750
11737
|
# bucket: "examplebucket",
|
11738
|
+
# key_marker: "nextkeyfrompreviousresponse",
|
11739
|
+
# max_uploads: 2,
|
11740
|
+
# upload_id_marker: "valuefrompreviousresponse",
|
11751
11741
|
# })
|
11752
11742
|
#
|
11753
11743
|
# resp.to_h outputs the following:
|
11754
11744
|
# {
|
11745
|
+
# bucket: "acl1",
|
11746
|
+
# is_truncated: true,
|
11747
|
+
# key_marker: "",
|
11748
|
+
# max_uploads: 2,
|
11749
|
+
# next_key_marker: "someobjectkey",
|
11750
|
+
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
11751
|
+
# upload_id_marker: "",
|
11755
11752
|
# uploads: [
|
11756
11753
|
# {
|
11757
11754
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
11758
11755
|
# initiator: {
|
11759
|
-
# display_name: "display-name",
|
11756
|
+
# display_name: "ownder-display-name",
|
11760
11757
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
11761
11758
|
# },
|
11762
11759
|
# key: "JavaFile",
|
11763
11760
|
# owner: {
|
11764
|
-
# display_name: "
|
11765
|
-
# id: "
|
11761
|
+
# display_name: "mohanataws",
|
11762
|
+
# id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
11766
11763
|
# },
|
11767
11764
|
# storage_class: "STANDARD",
|
11768
|
-
# upload_id: "
|
11765
|
+
# upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
11769
11766
|
# },
|
11770
11767
|
# {
|
11771
11768
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
11772
11769
|
# initiator: {
|
11773
|
-
# display_name: "display-name",
|
11770
|
+
# display_name: "ownder-display-name",
|
11774
11771
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
11775
11772
|
# },
|
11776
11773
|
# key: "JavaFile",
|
11777
11774
|
# owner: {
|
11778
|
-
# display_name: "display-name",
|
11775
|
+
# display_name: "ownder-display-name",
|
11779
11776
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
11780
11777
|
# },
|
11781
11778
|
# storage_class: "STANDARD",
|
11782
|
-
# upload_id: "
|
11779
|
+
# upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
11783
11780
|
# },
|
11784
11781
|
# ],
|
11785
11782
|
# }
|
@@ -12117,7 +12114,7 @@ module Aws::S3
|
|
12117
12114
|
# requests are not supported. Directory bucket names must be unique in
|
12118
12115
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
12119
12116
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
12120
|
-
#
|
12117
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
12121
12118
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
12122
12119
|
# *Amazon S3 User Guide*.
|
12123
12120
|
#
|
@@ -12137,14 +12134,14 @@ module Aws::S3
|
|
12137
12134
|
#
|
12138
12135
|
# </note>
|
12139
12136
|
#
|
12140
|
-
# **S3 on Outposts** - When you use this action with
|
12141
|
-
#
|
12142
|
-
#
|
12137
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
12138
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
12139
|
+
# Outposts hostname takes the form `
|
12143
12140
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
12144
|
-
# When you use this action with S3 on Outposts
|
12145
|
-
#
|
12146
|
-
#
|
12147
|
-
#
|
12141
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
12142
|
+
# must be the Outposts access point ARN or the access point alias. For
|
12143
|
+
# more information about S3 on Outposts, see [What is S3 on
|
12144
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
12148
12145
|
#
|
12149
12146
|
#
|
12150
12147
|
#
|
@@ -12329,13 +12326,13 @@ module Aws::S3
|
|
12329
12326
|
# * **Directory buckets** - For directory buckets, you must make
|
12330
12327
|
# requests for this API operation to the Zonal endpoint. These
|
12331
12328
|
# endpoints support virtual-hosted-style requests in the format
|
12332
|
-
# `https://bucket
|
12329
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
12333
12330
|
# `. Path-style requests are not supported. For more information about
|
12334
12331
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
12335
12332
|
# for directory buckets in Availability Zones][3] in the *Amazon S3
|
12336
12333
|
# User Guide*. For more information about endpoints in Local Zones,
|
12337
|
-
# see [
|
12338
|
-
# S3 User Guide*.
|
12334
|
+
# see [Concepts for directory buckets in Local Zones][4] in the
|
12335
|
+
# *Amazon S3 User Guide*.
|
12339
12336
|
#
|
12340
12337
|
# </note>
|
12341
12338
|
#
|
@@ -12393,7 +12390,7 @@ module Aws::S3
|
|
12393
12390
|
#
|
12394
12391
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html
|
12395
12392
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html
|
12396
|
-
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
12393
|
+
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
12397
12394
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
12398
12395
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources
|
12399
12396
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html
|
@@ -12410,7 +12407,7 @@ module Aws::S3
|
|
12410
12407
|
# requests are not supported. Directory bucket names must be unique in
|
12411
12408
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
12412
12409
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
12413
|
-
#
|
12410
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
12414
12411
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
12415
12412
|
# *Amazon S3 User Guide*.
|
12416
12413
|
#
|
@@ -12430,14 +12427,14 @@ module Aws::S3
|
|
12430
12427
|
#
|
12431
12428
|
# </note>
|
12432
12429
|
#
|
12433
|
-
# **S3 on Outposts** - When you use this action with
|
12434
|
-
#
|
12435
|
-
#
|
12430
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
12431
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
12432
|
+
# Outposts hostname takes the form `
|
12436
12433
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
12437
|
-
# When you use this action with S3 on Outposts
|
12438
|
-
#
|
12439
|
-
#
|
12440
|
-
#
|
12434
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
12435
|
+
# must be the Outposts access point ARN or the access point alias. For
|
12436
|
+
# more information about S3 on Outposts, see [What is S3 on
|
12437
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
12441
12438
|
#
|
12442
12439
|
#
|
12443
12440
|
#
|
@@ -12678,13 +12675,13 @@ module Aws::S3
|
|
12678
12675
|
# <note markdown="1"> **Directory buckets** - For directory buckets, you must make requests
|
12679
12676
|
# for this API operation to the Zonal endpoint. These endpoints support
|
12680
12677
|
# virtual-hosted-style requests in the format
|
12681
|
-
# `https://bucket
|
12678
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
12682
12679
|
# `. Path-style requests are not supported. For more information about
|
12683
12680
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints for
|
12684
12681
|
# directory buckets in Availability Zones][3] in the *Amazon S3 User
|
12685
12682
|
# Guide*. For more information about endpoints in Local Zones, see
|
12686
|
-
# [
|
12687
|
-
# Guide*.
|
12683
|
+
# [Concepts for directory buckets in Local Zones][4] in the *Amazon S3
|
12684
|
+
# User Guide*.
|
12688
12685
|
#
|
12689
12686
|
# </note>
|
12690
12687
|
#
|
@@ -12738,7 +12735,7 @@ module Aws::S3
|
|
12738
12735
|
#
|
12739
12736
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html
|
12740
12737
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html
|
12741
|
-
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
12738
|
+
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
12742
12739
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
12743
12740
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html
|
12744
12741
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
@@ -12757,7 +12754,7 @@ module Aws::S3
|
|
12757
12754
|
# requests are not supported. Directory bucket names must be unique in
|
12758
12755
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
12759
12756
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
12760
|
-
#
|
12757
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
12761
12758
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
12762
12759
|
# *Amazon S3 User Guide*.
|
12763
12760
|
#
|
@@ -12777,14 +12774,14 @@ module Aws::S3
|
|
12777
12774
|
#
|
12778
12775
|
# </note>
|
12779
12776
|
#
|
12780
|
-
# **S3 on Outposts** - When you use this action with
|
12781
|
-
#
|
12782
|
-
#
|
12777
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
12778
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
12779
|
+
# Outposts hostname takes the form `
|
12783
12780
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
12784
|
-
# When you use this action with S3 on Outposts
|
12785
|
-
#
|
12786
|
-
#
|
12787
|
-
#
|
12781
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
12782
|
+
# must be the Outposts access point ARN or the access point alias. For
|
12783
|
+
# more information about S3 on Outposts, see [What is S3 on
|
12784
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
12788
12785
|
#
|
12789
12786
|
#
|
12790
12787
|
#
|
@@ -13045,7 +13042,7 @@ module Aws::S3
|
|
13045
13042
|
# fails with the HTTP status code `403 Forbidden` (access denied).
|
13046
13043
|
#
|
13047
13044
|
# @option params [String] :checksum_algorithm
|
13048
|
-
# Indicates the algorithm used to create the checksum for the
|
13045
|
+
# Indicates the algorithm used to create the checksum for the request
|
13049
13046
|
# when you use the SDK. This header will not provide any additional
|
13050
13047
|
# functionality if you don't use the SDK. When you send this header,
|
13051
13048
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -13280,7 +13277,7 @@ module Aws::S3
|
|
13280
13277
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
13281
13278
|
#
|
13282
13279
|
# @option params [String] :checksum_algorithm
|
13283
|
-
# Indicates the algorithm used to create the checksum for the
|
13280
|
+
# Indicates the algorithm used to create the checksum for the request
|
13284
13281
|
# when you use the SDK. This header will not provide any additional
|
13285
13282
|
# functionality if you don't use the SDK. When you send this header,
|
13286
13283
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -13596,7 +13593,7 @@ module Aws::S3
|
|
13596
13593
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
13597
13594
|
#
|
13598
13595
|
# @option params [String] :checksum_algorithm
|
13599
|
-
# Indicates the algorithm used to create the checksum for the
|
13596
|
+
# Indicates the algorithm used to create the checksum for the request
|
13600
13597
|
# when you use the SDK. This header will not provide any additional
|
13601
13598
|
# functionality if you don't use the SDK. When you send this header,
|
13602
13599
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -13703,7 +13700,7 @@ module Aws::S3
|
|
13703
13700
|
# about endpoints in Availability Zones, see [Regional and Zonal
|
13704
13701
|
# endpoints for directory buckets in Availability Zones][1] in the
|
13705
13702
|
# *Amazon S3 User Guide*. For more information about endpoints in Local
|
13706
|
-
# Zones, see [
|
13703
|
+
# Zones, see [Concepts for directory buckets in Local Zones][2] in the
|
13707
13704
|
# *Amazon S3 User Guide*.
|
13708
13705
|
#
|
13709
13706
|
# </note>
|
@@ -13740,8 +13737,8 @@ module Aws::S3
|
|
13740
13737
|
# object uploads][5].
|
13741
13738
|
#
|
13742
13739
|
# * Your SSE-KMS configuration can only support 1 [customer managed
|
13743
|
-
# key][6] per directory bucket
|
13744
|
-
#
|
13740
|
+
# key][6] per directory bucket's lifetime. The [Amazon Web Services
|
13741
|
+
# managed key][7] (`aws/s3`) isn't supported.
|
13745
13742
|
#
|
13746
13743
|
# * S3 Bucket Keys are always enabled for `GET` and `PUT` operations
|
13747
13744
|
# in a directory bucket and can’t be disabled. S3 Bucket Keys
|
@@ -13811,7 +13808,7 @@ module Aws::S3
|
|
13811
13808
|
#
|
13812
13809
|
#
|
13813
13810
|
#
|
13814
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
13811
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
13815
13812
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
13816
13813
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html
|
13817
13814
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html
|
@@ -13861,7 +13858,7 @@ module Aws::S3
|
|
13861
13858
|
# </note>
|
13862
13859
|
#
|
13863
13860
|
# @option params [String] :checksum_algorithm
|
13864
|
-
# Indicates the algorithm used to create the checksum for the
|
13861
|
+
# Indicates the algorithm used to create the checksum for the request
|
13865
13862
|
# when you use the SDK. This header will not provide any additional
|
13866
13863
|
# functionality if you don't use the SDK. When you send this header,
|
13867
13864
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -14285,7 +14282,7 @@ module Aws::S3
|
|
14285
14282
|
# automatically.
|
14286
14283
|
#
|
14287
14284
|
# @option params [String] :checksum_algorithm
|
14288
|
-
# Indicates the algorithm used to create the checksum for the
|
14285
|
+
# Indicates the algorithm used to create the checksum for the request
|
14289
14286
|
# when you use the SDK. This header will not provide any additional
|
14290
14287
|
# functionality if you don't use the SDK. When you send this header,
|
14291
14288
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -14460,8 +14457,8 @@ module Aws::S3
|
|
14460
14457
|
# information about endpoints in Availability Zones, see [Regional
|
14461
14458
|
# and Zonal endpoints for directory buckets in Availability
|
14462
14459
|
# Zones][7] in the *Amazon S3 User Guide*. For more information
|
14463
|
-
# about endpoints in Local Zones, see [
|
14464
|
-
#
|
14460
|
+
# about endpoints in Local Zones, see [Concepts for directory
|
14461
|
+
# buckets in Local Zones][8] in the *Amazon S3 User Guide*.
|
14465
14462
|
#
|
14466
14463
|
# </note>
|
14467
14464
|
#
|
@@ -14483,7 +14480,7 @@ module Aws::S3
|
|
14483
14480
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html
|
14484
14481
|
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html
|
14485
14482
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
14486
|
-
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
14483
|
+
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
14487
14484
|
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
14488
14485
|
# [9]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html
|
14489
14486
|
# [10]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketLifecycle.html
|
@@ -14492,7 +14489,7 @@ module Aws::S3
|
|
14492
14489
|
# The name of the bucket for which to set the configuration.
|
14493
14490
|
#
|
14494
14491
|
# @option params [String] :checksum_algorithm
|
14495
|
-
# Indicates the algorithm used to create the checksum for the
|
14492
|
+
# Indicates the algorithm used to create the checksum for the request
|
14496
14493
|
# when you use the SDK. This header will not provide any additional
|
14497
14494
|
# functionality if you don't use the SDK. When you send this header,
|
14498
14495
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -14745,7 +14742,7 @@ module Aws::S3
|
|
14745
14742
|
# automatically.
|
14746
14743
|
#
|
14747
14744
|
# @option params [String] :checksum_algorithm
|
14748
|
-
# Indicates the algorithm used to create the checksum for the
|
14745
|
+
# Indicates the algorithm used to create the checksum for the request
|
14749
14746
|
# when you use the SDK. This header will not provide any additional
|
14750
14747
|
# functionality if you don't use the SDK. When you send this header,
|
14751
14748
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -14961,7 +14958,7 @@ module Aws::S3
|
|
14961
14958
|
# automatically.
|
14962
14959
|
#
|
14963
14960
|
# @option params [String] :checksum_algorithm
|
14964
|
-
# Indicates the algorithm used to create the checksum for the
|
14961
|
+
# Indicates the algorithm used to create the checksum for the request
|
14965
14962
|
# when you use the SDK. This header will not provide any additional
|
14966
14963
|
# functionality if you don't use the SDK. When you send this header,
|
14967
14964
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -15288,7 +15285,7 @@ module Aws::S3
|
|
15288
15285
|
# about endpoints in Availability Zones, see [Regional and Zonal
|
15289
15286
|
# endpoints for directory buckets in Availability Zones][1] in the
|
15290
15287
|
# *Amazon S3 User Guide*. For more information about endpoints in Local
|
15291
|
-
# Zones, see [
|
15288
|
+
# Zones, see [Concepts for directory buckets in Local Zones][2] in the
|
15292
15289
|
# *Amazon S3 User Guide*.
|
15293
15290
|
#
|
15294
15291
|
# </note>
|
@@ -15352,7 +15349,7 @@ module Aws::S3
|
|
15352
15349
|
#
|
15353
15350
|
#
|
15354
15351
|
#
|
15355
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
15352
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
15356
15353
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
15357
15354
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html
|
15358
15355
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
@@ -15391,7 +15388,7 @@ module Aws::S3
|
|
15391
15388
|
# </note>
|
15392
15389
|
#
|
15393
15390
|
# @option params [String] :checksum_algorithm
|
15394
|
-
# Indicates the algorithm used to create the checksum for the
|
15391
|
+
# Indicates the algorithm used to create the checksum for the request
|
15395
15392
|
# when you use the SDK. This header will not provide any additional
|
15396
15393
|
# functionality if you don't use the SDK. When you send this header,
|
15397
15394
|
# there must be a corresponding `x-amz-checksum-algorithm ` or
|
@@ -15589,7 +15586,7 @@ module Aws::S3
|
|
15589
15586
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
15590
15587
|
#
|
15591
15588
|
# @option params [String] :checksum_algorithm
|
15592
|
-
# Indicates the algorithm used to create the checksum for the
|
15589
|
+
# Indicates the algorithm used to create the checksum for the request
|
15593
15590
|
# when you use the SDK. This header will not provide any additional
|
15594
15591
|
# functionality if you don't use the SDK. When you send this header,
|
15595
15592
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -15762,7 +15759,7 @@ module Aws::S3
|
|
15762
15759
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
15763
15760
|
#
|
15764
15761
|
# @option params [String] :checksum_algorithm
|
15765
|
-
# Indicates the algorithm used to create the checksum for the
|
15762
|
+
# Indicates the algorithm used to create the checksum for the request
|
15766
15763
|
# when you use the SDK. This header will not provide any additional
|
15767
15764
|
# functionality if you don't use the SDK. When you send this header,
|
15768
15765
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -15899,7 +15896,7 @@ module Aws::S3
|
|
15899
15896
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
15900
15897
|
#
|
15901
15898
|
# @option params [String] :checksum_algorithm
|
15902
|
-
# Indicates the algorithm used to create the checksum for the
|
15899
|
+
# Indicates the algorithm used to create the checksum for the request
|
15903
15900
|
# when you use the SDK. This header will not provide any additional
|
15904
15901
|
# functionality if you don't use the SDK. When you send this header,
|
15905
15902
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -16047,7 +16044,7 @@ module Aws::S3
|
|
16047
16044
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
16048
16045
|
#
|
16049
16046
|
# @option params [String] :checksum_algorithm
|
16050
|
-
# Indicates the algorithm used to create the checksum for the
|
16047
|
+
# Indicates the algorithm used to create the checksum for the request
|
16051
16048
|
# when you use the SDK. This header will not provide any additional
|
16052
16049
|
# functionality if you don't use the SDK. When you send this header,
|
16053
16050
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -16208,7 +16205,7 @@ module Aws::S3
|
|
16208
16205
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
16209
16206
|
#
|
16210
16207
|
# @option params [String] :checksum_algorithm
|
16211
|
-
# Indicates the algorithm used to create the checksum for the
|
16208
|
+
# Indicates the algorithm used to create the checksum for the request
|
16212
16209
|
# when you use the SDK. This header will not provide any additional
|
16213
16210
|
# functionality if you don't use the SDK. When you send this header,
|
16214
16211
|
# there must be a corresponding `x-amz-checksum` or `x-amz-trailer`
|
@@ -16312,13 +16309,13 @@ module Aws::S3
|
|
16312
16309
|
# * **Directory buckets** - For directory buckets, you must make
|
16313
16310
|
# requests for this API operation to the Zonal endpoint. These
|
16314
16311
|
# endpoints support virtual-hosted-style requests in the format
|
16315
|
-
# `https://bucket
|
16312
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
16316
16313
|
# `. Path-style requests are not supported. For more information about
|
16317
16314
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints
|
16318
16315
|
# for directory buckets in Availability Zones][1] in the *Amazon S3
|
16319
16316
|
# User Guide*. For more information about endpoints in Local Zones,
|
16320
|
-
# see [
|
16321
|
-
# S3 User Guide*.
|
16317
|
+
# see [Concepts for directory buckets in Local Zones][2] in the
|
16318
|
+
# *Amazon S3 User Guide*.
|
16322
16319
|
#
|
16323
16320
|
# </note>
|
16324
16321
|
#
|
@@ -16335,6 +16332,23 @@ module Aws::S3
|
|
16335
16332
|
#
|
16336
16333
|
# </note>
|
16337
16334
|
#
|
16335
|
+
# * **If-None-Match** - Uploads the object only if the object key name
|
16336
|
+
# does not already exist in the specified bucket. Otherwise, Amazon S3
|
16337
|
+
# returns a `412 Precondition Failed` error. If a conflicting
|
16338
|
+
# operation occurs during the upload, S3 returns a `409
|
16339
|
+
# ConditionalRequestConflict` response. On a 409 failure, retry the
|
16340
|
+
# upload.
|
16341
|
+
#
|
16342
|
+
# Expects the * character (asterisk).
|
16343
|
+
#
|
16344
|
+
# For more information, see [Add preconditions to S3 operations with
|
16345
|
+
# conditional requests][4] in the *Amazon S3 User Guide* or [RFC
|
16346
|
+
# 7232][5].
|
16347
|
+
#
|
16348
|
+
# <note markdown="1"> This functionality is not supported for S3 on Outposts.
|
16349
|
+
#
|
16350
|
+
# </note>
|
16351
|
+
#
|
16338
16352
|
# * **S3 Versioning** - When you enable versioning for a bucket, if
|
16339
16353
|
# Amazon S3 receives multiple write requests for the same object
|
16340
16354
|
# simultaneously, it stores all versions of the objects. For each
|
@@ -16342,9 +16356,9 @@ module Aws::S3
|
|
16342
16356
|
# automatically generates a unique version ID of that object being
|
16343
16357
|
# stored in Amazon S3. You can retrieve, replace, or delete any
|
16344
16358
|
# version of the object. For more information about versioning, see
|
16345
|
-
# [Adding Objects to Versioning-Enabled Buckets][
|
16359
|
+
# [Adding Objects to Versioning-Enabled Buckets][6] in the *Amazon S3
|
16346
16360
|
# User Guide*. For information about returning the versioning state of
|
16347
|
-
# a bucket, see [GetBucketVersioning][
|
16361
|
+
# a bucket, see [GetBucketVersioning][7].
|
16348
16362
|
#
|
16349
16363
|
# <note markdown="1"> This functionality is not supported for directory buckets.
|
16350
16364
|
#
|
@@ -16368,7 +16382,7 @@ module Aws::S3
|
|
16368
16382
|
# `s3:PutObjectTagging`.
|
16369
16383
|
# * **Directory bucket permissions** - To grant access to this API
|
16370
16384
|
# operation on a directory bucket, we recommend that you use the [
|
16371
|
-
# `CreateSession` ][
|
16385
|
+
# `CreateSession` ][8] API operation for session-based
|
16372
16386
|
# authorization. Specifically, you grant the
|
16373
16387
|
# `s3express:CreateSession` permission to the directory bucket in a
|
16374
16388
|
# bucket policy or an IAM identity-based policy. Then, you make the
|
@@ -16379,7 +16393,7 @@ module Aws::S3
|
|
16379
16393
|
# token for use. Amazon Web Services CLI or SDKs create session and
|
16380
16394
|
# refresh the session token automatically to avoid service
|
16381
16395
|
# interruptions when a session expires. For more information about
|
16382
|
-
# authorization, see [ `CreateSession` ][
|
16396
|
+
# authorization, see [ `CreateSession` ][8].
|
16383
16397
|
#
|
16384
16398
|
# If the object is encrypted with SSE-KMS, you must also have the
|
16385
16399
|
# `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM
|
@@ -16404,20 +16418,22 @@ module Aws::S3
|
|
16404
16418
|
#
|
16405
16419
|
# For more information about related Amazon S3 APIs, see the following:
|
16406
16420
|
#
|
16407
|
-
# * [CopyObject][
|
16421
|
+
# * [CopyObject][9]
|
16408
16422
|
#
|
16409
|
-
# * [DeleteObject][
|
16423
|
+
# * [DeleteObject][10]
|
16410
16424
|
#
|
16411
16425
|
#
|
16412
16426
|
#
|
16413
|
-
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
16427
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
16414
16428
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
16415
16429
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html
|
16416
|
-
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/
|
16417
|
-
# [5]: https://
|
16418
|
-
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/
|
16419
|
-
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/API/
|
16420
|
-
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/
|
16430
|
+
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html
|
16431
|
+
# [5]: https://datatracker.ietf.org/doc/rfc7232/
|
16432
|
+
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/dev/AddingObjectstoVersioningEnabledBuckets.html
|
16433
|
+
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html
|
16434
|
+
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
16435
|
+
# [9]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
|
16436
|
+
# [10]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html
|
16421
16437
|
#
|
16422
16438
|
# @option params [String] :acl
|
16423
16439
|
# The canned ACL to apply to the object. For more information, see
|
@@ -16469,7 +16485,7 @@ module Aws::S3
|
|
16469
16485
|
# requests are not supported. Directory bucket names must be unique in
|
16470
16486
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
16471
16487
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
16472
|
-
#
|
16488
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
16473
16489
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
16474
16490
|
# *Amazon S3 User Guide*.
|
16475
16491
|
#
|
@@ -16489,14 +16505,14 @@ module Aws::S3
|
|
16489
16505
|
#
|
16490
16506
|
# </note>
|
16491
16507
|
#
|
16492
|
-
# **S3 on Outposts** - When you use this action with
|
16493
|
-
#
|
16494
|
-
#
|
16508
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
16509
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
16510
|
+
# Outposts hostname takes the form `
|
16495
16511
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
16496
|
-
# When you use this action with S3 on Outposts
|
16497
|
-
#
|
16498
|
-
#
|
16499
|
-
#
|
16512
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
16513
|
+
# must be the Outposts access point ARN or the access point alias. For
|
16514
|
+
# more information about S3 on Outposts, see [What is S3 on
|
16515
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
16500
16516
|
#
|
16501
16517
|
#
|
16502
16518
|
#
|
@@ -16938,20 +16954,17 @@ module Aws::S3
|
|
16938
16954
|
# `x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the
|
16939
16955
|
# Amazon Web Services managed key (`aws/s3`) to protect the data.
|
16940
16956
|
#
|
16941
|
-
# **Directory buckets** -
|
16942
|
-
#
|
16943
|
-
#
|
16944
|
-
#
|
16945
|
-
#
|
16946
|
-
# x-amz-server-side-encryption-aws-kms-key-id` header
|
16947
|
-
#
|
16948
|
-
#
|
16949
|
-
#
|
16950
|
-
#
|
16951
|
-
#
|
16952
|
-
# support 1 [customer managed key][1] per directory bucket for the
|
16953
|
-
# lifetime of the bucket. The [Amazon Web Services managed key][2]
|
16954
|
-
# (`aws/s3`) isn't supported.
|
16957
|
+
# **Directory buckets** - To encrypt data using SSE-KMS, it's
|
16958
|
+
# recommended to specify the `x-amz-server-side-encryption` header to
|
16959
|
+
# `aws:kms`. Then, the `x-amz-server-side-encryption-aws-kms-key-id`
|
16960
|
+
# header implicitly uses the bucket's default KMS customer managed key
|
16961
|
+
# ID. If you want to explicitly set the `
|
16962
|
+
# x-amz-server-side-encryption-aws-kms-key-id` header, it must match the
|
16963
|
+
# bucket's default customer managed key (using key ID or ARN, not
|
16964
|
+
# alias). Your SSE-KMS configuration can only support 1 [customer
|
16965
|
+
# managed key][1] per directory bucket's lifetime. The [Amazon Web
|
16966
|
+
# Services managed key][2] (`aws/s3`) isn't supported. Incorrect key
|
16967
|
+
# specification results in an HTTP `400 Bad Request` error.
|
16955
16968
|
#
|
16956
16969
|
#
|
16957
16970
|
#
|
@@ -17087,96 +17100,97 @@ module Aws::S3
|
|
17087
17100
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
17088
17101
|
#
|
17089
17102
|
#
|
17090
|
-
# @example Example: To
|
17103
|
+
# @example Example: To upload an object and specify server-side encryption and object tags
|
17091
17104
|
#
|
17092
|
-
# # The following example
|
17105
|
+
# # The following example uploads an object. The request specifies the optional server-side encryption option. The request
|
17106
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
17093
17107
|
#
|
17094
17108
|
# resp = client.put_object({
|
17095
17109
|
# body: "filetoupload",
|
17096
17110
|
# bucket: "examplebucket",
|
17097
|
-
# key: "
|
17111
|
+
# key: "exampleobject",
|
17112
|
+
# server_side_encryption: "AES256",
|
17113
|
+
# tagging: "key1=value1&key2=value2",
|
17098
17114
|
# })
|
17099
17115
|
#
|
17100
17116
|
# resp.to_h outputs the following:
|
17101
17117
|
# {
|
17102
17118
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17103
|
-
#
|
17119
|
+
# server_side_encryption: "AES256",
|
17120
|
+
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
17104
17121
|
# }
|
17105
17122
|
#
|
17106
|
-
# @example Example: To upload
|
17123
|
+
# @example Example: To upload object and specify user-defined metadata
|
17107
17124
|
#
|
17108
|
-
# # The following example
|
17109
|
-
# # S3 returns version ID
|
17125
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
17126
|
+
# # enabled, S3 returns version ID in response.
|
17110
17127
|
#
|
17111
17128
|
# resp = client.put_object({
|
17112
|
-
# body: "
|
17129
|
+
# body: "filetoupload",
|
17113
17130
|
# bucket: "examplebucket",
|
17114
|
-
# key: "
|
17115
|
-
#
|
17131
|
+
# key: "exampleobject",
|
17132
|
+
# metadata: {
|
17133
|
+
# "metadata1" => "value1",
|
17134
|
+
# "metadata2" => "value2",
|
17135
|
+
# },
|
17116
17136
|
# })
|
17117
17137
|
#
|
17118
17138
|
# resp.to_h outputs the following:
|
17119
17139
|
# {
|
17120
17140
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17121
|
-
# version_id: "
|
17141
|
+
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
17122
17142
|
# }
|
17123
17143
|
#
|
17124
|
-
# @example Example: To
|
17144
|
+
# @example Example: To create an object.
|
17125
17145
|
#
|
17126
|
-
# # The following example creates an object.
|
17127
|
-
# # enabled, S3 returns version ID in response.
|
17146
|
+
# # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
17128
17147
|
#
|
17129
17148
|
# resp = client.put_object({
|
17130
17149
|
# body: "filetoupload",
|
17131
17150
|
# bucket: "examplebucket",
|
17132
|
-
# key: "
|
17133
|
-
# metadata: {
|
17134
|
-
# "metadata1" => "value1",
|
17135
|
-
# "metadata2" => "value2",
|
17136
|
-
# },
|
17151
|
+
# key: "objectkey",
|
17137
17152
|
# })
|
17138
17153
|
#
|
17139
17154
|
# resp.to_h outputs the following:
|
17140
17155
|
# {
|
17141
17156
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17142
|
-
# version_id: "
|
17157
|
+
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
17143
17158
|
# }
|
17144
17159
|
#
|
17145
|
-
# @example Example: To upload an object
|
17160
|
+
# @example Example: To upload an object and specify optional tags
|
17146
17161
|
#
|
17147
|
-
# # The following example uploads an object
|
17148
|
-
# #
|
17162
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
17163
|
+
# # S3 returns version ID of the newly created object.
|
17149
17164
|
#
|
17150
17165
|
# resp = client.put_object({
|
17151
|
-
# body: "HappyFace.jpg",
|
17166
|
+
# body: "c:\\HappyFace.jpg",
|
17152
17167
|
# bucket: "examplebucket",
|
17153
17168
|
# key: "HappyFace.jpg",
|
17169
|
+
# tagging: "key1=value1&key2=value2",
|
17154
17170
|
# })
|
17155
17171
|
#
|
17156
17172
|
# resp.to_h outputs the following:
|
17157
17173
|
# {
|
17158
17174
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17159
|
-
# version_id: "
|
17175
|
+
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
17160
17176
|
# }
|
17161
17177
|
#
|
17162
|
-
# @example Example: To upload an object and specify
|
17178
|
+
# @example Example: To upload an object and specify canned ACL.
|
17163
17179
|
#
|
17164
|
-
# # The following example uploads
|
17165
|
-
# #
|
17180
|
+
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
17181
|
+
# # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
17166
17182
|
#
|
17167
17183
|
# resp = client.put_object({
|
17184
|
+
# acl: "authenticated-read",
|
17168
17185
|
# body: "filetoupload",
|
17169
17186
|
# bucket: "examplebucket",
|
17170
17187
|
# key: "exampleobject",
|
17171
|
-
# server_side_encryption: "AES256",
|
17172
|
-
# tagging: "key1=value1&key2=value2",
|
17173
17188
|
# })
|
17174
17189
|
#
|
17175
17190
|
# resp.to_h outputs the following:
|
17176
17191
|
# {
|
17177
17192
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17178
|
-
#
|
17179
|
-
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
17193
|
+
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
17180
17194
|
# }
|
17181
17195
|
#
|
17182
17196
|
# @example Example: To upload an object (specify optional headers)
|
@@ -17199,22 +17213,21 @@ module Aws::S3
|
|
17199
17213
|
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
17200
17214
|
# }
|
17201
17215
|
#
|
17202
|
-
# @example Example: To upload an object
|
17216
|
+
# @example Example: To upload an object
|
17203
17217
|
#
|
17204
|
-
# # The following example uploads
|
17205
|
-
# #
|
17218
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
17219
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
17206
17220
|
#
|
17207
17221
|
# resp = client.put_object({
|
17208
|
-
#
|
17209
|
-
# body: "filetoupload",
|
17222
|
+
# body: "HappyFace.jpg",
|
17210
17223
|
# bucket: "examplebucket",
|
17211
|
-
# key: "
|
17224
|
+
# key: "HappyFace.jpg",
|
17212
17225
|
# })
|
17213
17226
|
#
|
17214
17227
|
# resp.to_h outputs the following:
|
17215
17228
|
# {
|
17216
17229
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17217
|
-
# version_id: "
|
17230
|
+
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
17218
17231
|
# }
|
17219
17232
|
#
|
17220
17233
|
# @example Streaming a file from disk
|
@@ -17494,14 +17507,14 @@ module Aws::S3
|
|
17494
17507
|
# name. For more information about access point ARNs, see [Using access
|
17495
17508
|
# points][1] in the *Amazon S3 User Guide*.
|
17496
17509
|
#
|
17497
|
-
# **S3 on Outposts** - When you use this action with
|
17498
|
-
#
|
17499
|
-
#
|
17510
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
17511
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
17512
|
+
# Outposts hostname takes the form `
|
17500
17513
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
17501
|
-
# When you use this action with S3 on Outposts
|
17502
|
-
#
|
17503
|
-
#
|
17504
|
-
#
|
17514
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
17515
|
+
# must be the Outposts access point ARN or the access point alias. For
|
17516
|
+
# more information about S3 on Outposts, see [What is S3 on
|
17517
|
+
# Outposts?][2] in the *Amazon S3 User Guide*.
|
17505
17518
|
#
|
17506
17519
|
#
|
17507
17520
|
#
|
@@ -18103,14 +18116,14 @@ module Aws::S3
|
|
18103
18116
|
# name. For more information about access point ARNs, see [Using access
|
18104
18117
|
# points][1] in the *Amazon S3 User Guide*.
|
18105
18118
|
#
|
18106
|
-
# **S3 on Outposts** - When you use this action with
|
18107
|
-
#
|
18108
|
-
#
|
18119
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
18120
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
18121
|
+
# Outposts hostname takes the form `
|
18109
18122
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
18110
|
-
# When you use this action with S3 on Outposts
|
18111
|
-
#
|
18112
|
-
#
|
18113
|
-
#
|
18123
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
18124
|
+
# must be the Outposts access point ARN or the access point alias. For
|
18125
|
+
# more information about S3 on Outposts, see [What is S3 on
|
18126
|
+
# Outposts?][2] in the *Amazon S3 User Guide*.
|
18114
18127
|
#
|
18115
18128
|
#
|
18116
18129
|
#
|
@@ -18535,14 +18548,14 @@ module Aws::S3
|
|
18535
18548
|
# name. For more information about access point ARNs, see [Using access
|
18536
18549
|
# points][1] in the *Amazon S3 User Guide*.
|
18537
18550
|
#
|
18538
|
-
# **S3 on Outposts** - When you use this action with
|
18539
|
-
#
|
18540
|
-
#
|
18551
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
18552
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
18553
|
+
# Outposts hostname takes the form `
|
18541
18554
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
18542
|
-
# When you use this action with S3 on Outposts
|
18543
|
-
#
|
18544
|
-
#
|
18545
|
-
#
|
18555
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
18556
|
+
# must be the Outposts access point ARN or the access point alias. For
|
18557
|
+
# more information about S3 on Outposts, see [What is S3 on
|
18558
|
+
# Outposts?][2] in the *Amazon S3 User Guide*.
|
18546
18559
|
#
|
18547
18560
|
#
|
18548
18561
|
#
|
@@ -19181,13 +19194,13 @@ module Aws::S3
|
|
19181
19194
|
# <note markdown="1"> **Directory buckets** - For directory buckets, you must make requests
|
19182
19195
|
# for this API operation to the Zonal endpoint. These endpoints support
|
19183
19196
|
# virtual-hosted-style requests in the format
|
19184
|
-
# `https://bucket
|
19197
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
19185
19198
|
# `. Path-style requests are not supported. For more information about
|
19186
19199
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints for
|
19187
19200
|
# directory buckets in Availability Zones][5] in the *Amazon S3 User
|
19188
19201
|
# Guide*. For more information about endpoints in Local Zones, see
|
19189
|
-
# [
|
19190
|
-
# Guide*.
|
19202
|
+
# [Concepts for directory buckets in Local Zones][6] in the *Amazon S3
|
19203
|
+
# User Guide*.
|
19191
19204
|
#
|
19192
19205
|
# </note>
|
19193
19206
|
#
|
@@ -19321,7 +19334,7 @@ module Aws::S3
|
|
19321
19334
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html
|
19322
19335
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html
|
19323
19336
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html
|
19324
|
-
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
19337
|
+
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
19325
19338
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
19326
19339
|
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html
|
19327
19340
|
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html
|
@@ -19346,7 +19359,7 @@ module Aws::S3
|
|
19346
19359
|
# requests are not supported. Directory bucket names must be unique in
|
19347
19360
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
19348
19361
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
19349
|
-
#
|
19362
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
19350
19363
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
19351
19364
|
# *Amazon S3 User Guide*.
|
19352
19365
|
#
|
@@ -19366,14 +19379,14 @@ module Aws::S3
|
|
19366
19379
|
#
|
19367
19380
|
# </note>
|
19368
19381
|
#
|
19369
|
-
# **S3 on Outposts** - When you use this action with
|
19370
|
-
#
|
19371
|
-
#
|
19382
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
19383
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
19384
|
+
# Outposts hostname takes the form `
|
19372
19385
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
19373
|
-
# When you use this action with S3 on Outposts
|
19374
|
-
#
|
19375
|
-
#
|
19376
|
-
#
|
19386
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
19387
|
+
# must be the Outposts access point ARN or the access point alias. For
|
19388
|
+
# more information about S3 on Outposts, see [What is S3 on
|
19389
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
19377
19390
|
#
|
19378
19391
|
#
|
19379
19392
|
#
|
@@ -19640,13 +19653,13 @@ module Aws::S3
|
|
19640
19653
|
# <note markdown="1"> **Directory buckets** - For directory buckets, you must make requests
|
19641
19654
|
# for this API operation to the Zonal endpoint. These endpoints support
|
19642
19655
|
# virtual-hosted-style requests in the format
|
19643
|
-
# `https://bucket
|
19656
|
+
# `https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name
|
19644
19657
|
# `. Path-style requests are not supported. For more information about
|
19645
19658
|
# endpoints in Availability Zones, see [Regional and Zonal endpoints for
|
19646
19659
|
# directory buckets in Availability Zones][5] in the *Amazon S3 User
|
19647
19660
|
# Guide*. For more information about endpoints in Local Zones, see
|
19648
|
-
# [
|
19649
|
-
# Guide*.
|
19661
|
+
# [Concepts for directory buckets in Local Zones][6] in the *Amazon S3
|
19662
|
+
# User Guide*.
|
19650
19663
|
#
|
19651
19664
|
# </note>
|
19652
19665
|
#
|
@@ -19791,7 +19804,7 @@ module Aws::S3
|
|
19791
19804
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html
|
19792
19805
|
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html
|
19793
19806
|
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectOperations.html
|
19794
|
-
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/
|
19807
|
+
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/endpoint-directory-buckets-AZ.html
|
19795
19808
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-lzs-for-directory-buckets.html
|
19796
19809
|
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
|
19797
19810
|
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html
|
@@ -19817,7 +19830,7 @@ module Aws::S3
|
|
19817
19830
|
# requests are not supported. Directory bucket names must be unique in
|
19818
19831
|
# the chosen Zone (Availability Zone or Local Zone). Bucket names must
|
19819
19832
|
# follow the format ` bucket-base-name--zone-id--x-s3` (for example, `
|
19820
|
-
#
|
19833
|
+
# amzn-s3-demo-bucket--usw2-az1--x-s3`). For information about bucket
|
19821
19834
|
# naming restrictions, see [Directory bucket naming rules][1] in the
|
19822
19835
|
# *Amazon S3 User Guide*.
|
19823
19836
|
#
|
@@ -19845,14 +19858,14 @@ module Aws::S3
|
|
19845
19858
|
#
|
19846
19859
|
# </note>
|
19847
19860
|
#
|
19848
|
-
# **S3 on Outposts** - When you use this action with
|
19849
|
-
#
|
19850
|
-
#
|
19861
|
+
# **S3 on Outposts** - When you use this action with S3 on Outposts, you
|
19862
|
+
# must direct requests to the S3 on Outposts hostname. The S3 on
|
19863
|
+
# Outposts hostname takes the form `
|
19851
19864
|
# AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com`.
|
19852
|
-
# When you use this action with S3 on Outposts
|
19853
|
-
#
|
19854
|
-
#
|
19855
|
-
#
|
19865
|
+
# When you use this action with S3 on Outposts, the destination bucket
|
19866
|
+
# must be the Outposts access point ARN or the access point alias. For
|
19867
|
+
# more information about S3 on Outposts, see [What is S3 on
|
19868
|
+
# Outposts?][3] in the *Amazon S3 User Guide*.
|
19856
19869
|
#
|
19857
19870
|
#
|
19858
19871
|
#
|
@@ -20422,7 +20435,12 @@ module Aws::S3
|
|
20422
20435
|
#
|
20423
20436
|
# @option params [Boolean] :delete_marker
|
20424
20437
|
# Specifies whether an object stored in Amazon S3 is (`true`) or is not
|
20425
|
-
# (`false`) a delete marker.
|
20438
|
+
# (`false`) a delete marker. To learn more about delete markers, see
|
20439
|
+
# [Working with delete markers][1].
|
20440
|
+
#
|
20441
|
+
#
|
20442
|
+
#
|
20443
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html
|
20426
20444
|
#
|
20427
20445
|
# @option params [String] :etag
|
20428
20446
|
# An opaque identifier assigned by a web server to a specific version of
|
@@ -20613,7 +20631,7 @@ module Aws::S3
|
|
20613
20631
|
tracer: tracer
|
20614
20632
|
)
|
20615
20633
|
context[:gem_name] = 'aws-sdk-s3'
|
20616
|
-
context[:gem_version] = '1.
|
20634
|
+
context[:gem_version] = '1.180.0'
|
20617
20635
|
Seahorse::Client::Request.new(handlers, context)
|
20618
20636
|
end
|
20619
20637
|
|