aws-sdk-s3 1.68.1 → 1.83.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aws-sdk-s3.rb +5 -2
  3. data/lib/aws-sdk-s3/arn/access_point_arn.rb +62 -0
  4. data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +71 -0
  5. data/lib/aws-sdk-s3/bucket.rb +58 -7
  6. data/lib/aws-sdk-s3/bucket_acl.rb +7 -0
  7. data/lib/aws-sdk-s3/bucket_cors.rb +14 -1
  8. data/lib/aws-sdk-s3/bucket_lifecycle.rb +14 -1
  9. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +14 -1
  10. data/lib/aws-sdk-s3/bucket_logging.rb +7 -0
  11. data/lib/aws-sdk-s3/bucket_notification.rb +7 -0
  12. data/lib/aws-sdk-s3/bucket_policy.rb +14 -1
  13. data/lib/aws-sdk-s3/bucket_region_cache.rb +2 -0
  14. data/lib/aws-sdk-s3/bucket_request_payment.rb +7 -0
  15. data/lib/aws-sdk-s3/bucket_tagging.rb +14 -1
  16. data/lib/aws-sdk-s3/bucket_versioning.rb +17 -0
  17. data/lib/aws-sdk-s3/bucket_website.rb +14 -1
  18. data/lib/aws-sdk-s3/client.rb +2133 -678
  19. data/lib/aws-sdk-s3/client_api.rb +150 -0
  20. data/lib/aws-sdk-s3/customizations.rb +3 -0
  21. data/lib/aws-sdk-s3/customizations/bucket.rb +9 -4
  22. data/lib/aws-sdk-s3/customizations/multipart_upload.rb +2 -0
  23. data/lib/aws-sdk-s3/customizations/object.rb +14 -1
  24. data/lib/aws-sdk-s3/customizations/object_summary.rb +2 -0
  25. data/lib/aws-sdk-s3/customizations/types/list_object_versions_output.rb +2 -0
  26. data/lib/aws-sdk-s3/encryption.rb +4 -0
  27. data/lib/aws-sdk-s3/encryption/client.rb +13 -0
  28. data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +72 -26
  29. data/lib/aws-sdk-s3/encryption/default_cipher_provider.rb +43 -5
  30. data/lib/aws-sdk-s3/encryption/default_key_provider.rb +2 -0
  31. data/lib/aws-sdk-s3/encryption/encrypt_handler.rb +13 -2
  32. data/lib/aws-sdk-s3/encryption/errors.rb +2 -0
  33. data/lib/aws-sdk-s3/encryption/io_auth_decrypter.rb +2 -0
  34. data/lib/aws-sdk-s3/encryption/io_decrypter.rb +11 -3
  35. data/lib/aws-sdk-s3/encryption/io_encrypter.rb +2 -0
  36. data/lib/aws-sdk-s3/encryption/key_provider.rb +2 -0
  37. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +34 -3
  38. data/lib/aws-sdk-s3/encryption/materials.rb +2 -0
  39. data/lib/aws-sdk-s3/encryption/utils.rb +25 -0
  40. data/lib/aws-sdk-s3/encryptionV2/client.rb +566 -0
  41. data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +226 -0
  42. data/lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb +170 -0
  43. data/lib/aws-sdk-s3/encryptionV2/default_key_provider.rb +40 -0
  44. data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +69 -0
  45. data/lib/aws-sdk-s3/encryptionV2/errors.rb +37 -0
  46. data/lib/aws-sdk-s3/encryptionV2/io_auth_decrypter.rb +58 -0
  47. data/lib/aws-sdk-s3/encryptionV2/io_decrypter.rb +37 -0
  48. data/lib/aws-sdk-s3/encryptionV2/io_encrypter.rb +73 -0
  49. data/lib/aws-sdk-s3/encryptionV2/key_provider.rb +31 -0
  50. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +169 -0
  51. data/lib/aws-sdk-s3/encryptionV2/materials.rb +60 -0
  52. data/lib/aws-sdk-s3/encryptionV2/utils.rb +103 -0
  53. data/lib/aws-sdk-s3/encryption_v2.rb +23 -0
  54. data/lib/aws-sdk-s3/errors.rb +2 -0
  55. data/lib/aws-sdk-s3/event_streams.rb +2 -0
  56. data/lib/aws-sdk-s3/file_downloader.rb +2 -0
  57. data/lib/aws-sdk-s3/file_part.rb +2 -0
  58. data/lib/aws-sdk-s3/file_uploader.rb +13 -0
  59. data/lib/aws-sdk-s3/legacy_signer.rb +2 -0
  60. data/lib/aws-sdk-s3/multipart_file_uploader.rb +39 -2
  61. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +2 -0
  62. data/lib/aws-sdk-s3/multipart_upload.rb +17 -0
  63. data/lib/aws-sdk-s3/multipart_upload_error.rb +2 -0
  64. data/lib/aws-sdk-s3/multipart_upload_part.rb +66 -7
  65. data/lib/aws-sdk-s3/object.rb +160 -19
  66. data/lib/aws-sdk-s3/object_acl.rb +15 -0
  67. data/lib/aws-sdk-s3/object_copier.rb +2 -0
  68. data/lib/aws-sdk-s3/object_multipart_copier.rb +2 -0
  69. data/lib/aws-sdk-s3/object_summary.rb +173 -17
  70. data/lib/aws-sdk-s3/object_version.rb +29 -3
  71. data/lib/aws-sdk-s3/plugins/accelerate.rb +29 -38
  72. data/lib/aws-sdk-s3/plugins/arn.rb +187 -0
  73. data/lib/aws-sdk-s3/plugins/bucket_dns.rb +2 -2
  74. data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +3 -1
  75. data/lib/aws-sdk-s3/plugins/dualstack.rb +5 -1
  76. data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +2 -0
  77. data/lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb +2 -0
  78. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +4 -1
  79. data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +2 -0
  80. data/lib/aws-sdk-s3/plugins/location_constraint.rb +2 -0
  81. data/lib/aws-sdk-s3/plugins/md5s.rb +2 -0
  82. data/lib/aws-sdk-s3/plugins/redirects.rb +2 -0
  83. data/lib/aws-sdk-s3/plugins/s3_host_id.rb +2 -0
  84. data/lib/aws-sdk-s3/plugins/s3_signer.rb +31 -7
  85. data/lib/aws-sdk-s3/plugins/sse_cpk.rb +3 -1
  86. data/lib/aws-sdk-s3/plugins/streaming_retry.rb +118 -0
  87. data/lib/aws-sdk-s3/plugins/url_encoded_keys.rb +2 -0
  88. data/lib/aws-sdk-s3/presigned_post.rb +64 -28
  89. data/lib/aws-sdk-s3/presigner.rb +5 -2
  90. data/lib/aws-sdk-s3/resource.rb +3 -1
  91. data/lib/aws-sdk-s3/types.rb +1881 -222
  92. data/lib/aws-sdk-s3/waiters.rb +2 -0
  93. metadata +22 -5
  94. data/lib/aws-sdk-s3/plugins/bucket_arn.rb +0 -210
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -65,8 +67,8 @@ module Aws::S3
65
67
 
66
68
  # If the object is an archived object (an object whose storage class is
67
69
  # GLACIER), the response includes this header if either the archive
68
- # restoration is in progress (see RestoreObject or an archive copy is
69
- # already restored.
70
+ # restoration is in progress (see [RestoreObject][1] or an archive copy
71
+ # is already restored.
70
72
  #
71
73
  # If an archive copy is already restored, the header value indicates
72
74
  # when Amazon S3 is scheduled to delete the object copy. For example:
@@ -78,11 +80,12 @@ module Aws::S3
78
80
  # `ongoing-request="true"`.
79
81
  #
80
82
  # For more information about archiving objects, see [Transitioning
81
- # Objects: General Considerations][1].
83
+ # Objects: General Considerations][2].
82
84
  #
83
85
  #
84
86
  #
85
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html#lifecycle-transition-general-considerations
87
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
88
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html#lifecycle-transition-general-considerations
86
89
  # @return [String]
87
90
  def restore
88
91
  data[:restore]
@@ -527,7 +530,7 @@ module Aws::S3
527
530
  # metadata_directive: "COPY", # accepts COPY, REPLACE
528
531
  # tagging_directive: "COPY", # accepts COPY, REPLACE
529
532
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
530
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE
533
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
531
534
  # website_redirect_location: "WebsiteRedirectLocation",
532
535
  # sse_customer_algorithm: "SSECustomerAlgorithm",
533
536
  # sse_customer_key: "SSECustomerKey",
@@ -542,10 +545,14 @@ module Aws::S3
542
545
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
543
546
  # object_lock_retain_until_date: Time.now,
544
547
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
548
+ # expected_bucket_owner: "AccountId",
549
+ # expected_source_bucket_owner: "AccountId",
545
550
  # })
546
551
  # @param [Hash] options ({})
547
552
  # @option options [String] :acl
548
553
  # The canned ACL to apply to the object.
554
+ #
555
+ # This action is not supported by Amazon S3 on Outposts.
549
556
  # @option options [String] :cache_control
550
557
  # Specifies caching behavior along the request/reply chain.
551
558
  # @option options [String] :content_disposition
@@ -559,8 +566,50 @@ module Aws::S3
559
566
  # @option options [String] :content_type
560
567
  # A standard MIME type describing the format of the object data.
561
568
  # @option options [required, String] :copy_source
562
- # The name of the source bucket and key name of the source object,
563
- # separated by a slash (/). Must be URL-encoded.
569
+ # Specifies the source object for the copy operation. You specify the
570
+ # value in one of two formats, depending on whether you want to access
571
+ # the source object through an [access point][1]\:
572
+ #
573
+ # * For objects not accessed through an access point, specify the name
574
+ # of the source bucket and the key of the source object, separated by
575
+ # a slash (/). For example, to copy the object `reports/january.pdf`
576
+ # from the bucket `awsexamplebucket`, use
577
+ # `awsexamplebucket/reports/january.pdf`. The value must be URL
578
+ # encoded.
579
+ #
580
+ # * For objects accessed through access points, specify the Amazon
581
+ # Resource Name (ARN) of the object as accessed through the access
582
+ # point, in the format
583
+ # `arn:aws:s3:<Region>:<account-id>:accesspoint/<access-point-name>/object/<key>`.
584
+ # For example, to copy the object `reports/january.pdf` through access
585
+ # point `my-access-point` owned by account `123456789012` in Region
586
+ # `us-west-2`, use the URL encoding of
587
+ # `arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf`.
588
+ # The value must be URL encoded.
589
+ #
590
+ # <note markdown="1"> Amazon S3 supports copy operations using access points only when the
591
+ # source and destination buckets are in the same AWS Region.
592
+ #
593
+ # </note>
594
+ #
595
+ # Alternatively, for objects accessed through Amazon S3 on Outposts,
596
+ # specify the ARN of the object as accessed in the format
597
+ # `arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/object/<key>`.
598
+ # For example, to copy the object `reports/january.pdf` through
599
+ # outpost `my-outpost` owned by account `123456789012` in Region
600
+ # `us-west-2`, use the URL encoding of
601
+ # `arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf`.
602
+ # The value must be URL encoded.
603
+ #
604
+ # To copy a specific version of an object, append
605
+ # `?versionId=<version-id>` to the value (for example,
606
+ # `awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893`).
607
+ # If you don't specify a version ID, Amazon S3 copies the latest
608
+ # version of the source object.
609
+ #
610
+ #
611
+ #
612
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points.html
564
613
  # @option options [String] :copy_source_if_match
565
614
  # Copies the object if its entity tag (ETag) matches the specified tag.
566
615
  # @option options [Time,DateTime,Date,Integer,String] :copy_source_if_modified_since
@@ -576,12 +625,20 @@ module Aws::S3
576
625
  # @option options [String] :grant_full_control
577
626
  # Gives the grantee READ, READ\_ACP, and WRITE\_ACP permissions on the
578
627
  # object.
628
+ #
629
+ # This action is not supported by Amazon S3 on Outposts.
579
630
  # @option options [String] :grant_read
580
631
  # Allows grantee to read the object data and its metadata.
632
+ #
633
+ # This action is not supported by Amazon S3 on Outposts.
581
634
  # @option options [String] :grant_read_acp
582
635
  # Allows grantee to read the object ACL.
636
+ #
637
+ # This action is not supported by Amazon S3 on Outposts.
583
638
  # @option options [String] :grant_write_acp
584
639
  # Allows grantee to write the ACL for the applicable object.
640
+ #
641
+ # This action is not supported by Amazon S3 on Outposts.
585
642
  # @option options [Hash<String,String>] :metadata
586
643
  # A map of metadata to store with the object in S3.
587
644
  # @option options [String] :metadata_directive
@@ -594,7 +651,16 @@ module Aws::S3
594
651
  # The server-side encryption algorithm used when storing this object in
595
652
  # Amazon S3 (for example, AES256, aws:kms).
596
653
  # @option options [String] :storage_class
597
- # The type of storage to use for the object. Defaults to 'STANDARD'.
654
+ # By default, Amazon S3 uses the STANDARD Storage Class to store newly
655
+ # created objects. The STANDARD storage class provides high durability
656
+ # and high availability. Depending on performance needs, you can specify
657
+ # a different Storage Class. Amazon S3 on Outposts only uses the
658
+ # OUTPOSTS Storage Class. For more information, see [Storage Classes][1]
659
+ # in the *Amazon S3 Service Developer Guide*.
660
+ #
661
+ #
662
+ #
663
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
598
664
  # @option options [String] :website_redirect_location
599
665
  # If the bucket is configured as a website, redirects requests for this
600
666
  # object to another object in the same bucket or to an external URL.
@@ -607,7 +673,7 @@ module Aws::S3
607
673
  # encrypting data. This value is used to store the object and then it is
608
674
  # discarded; Amazon S3 does not store the encryption key. The key must
609
675
  # be appropriate for use with the algorithm specified in the
610
- # `x-amz-server-side​-encryption​-customer-algorithm` header.
676
+ # `x-amz-server-side-encryption-customer-algorithm` header.
611
677
  # @option options [String] :sse_customer_key_md5
612
678
  # Specifies the 128-bit MD5 digest of the encryption key according to
613
679
  # RFC 1321. Amazon S3 uses this header for a message integrity check to
@@ -659,6 +725,14 @@ module Aws::S3
659
725
  # expire.
660
726
  # @option options [String] :object_lock_legal_hold_status
661
727
  # Specifies whether you want to apply a Legal Hold to the copied object.
728
+ # @option options [String] :expected_bucket_owner
729
+ # The account id of the expected destination bucket owner. If the
730
+ # destination bucket is owned by a different account, the request will
731
+ # fail with an HTTP `403 (Access Denied)` error.
732
+ # @option options [String] :expected_source_bucket_owner
733
+ # The account id of the expected source bucket owner. If the source
734
+ # bucket is owned by a different account, the request will fail with an
735
+ # HTTP `403 (Access Denied)` error.
662
736
  # @return [Types::CopyObjectOutput]
663
737
  def copy_from(options = {})
664
738
  options = options.merge(
@@ -676,6 +750,7 @@ module Aws::S3
676
750
  # version_id: "ObjectVersionId",
677
751
  # request_payer: "requester", # accepts requester
678
752
  # bypass_governance_retention: false,
753
+ # expected_bucket_owner: "AccountId",
679
754
  # })
680
755
  # @param [Hash] options ({})
681
756
  # @option options [String] :mfa
@@ -698,6 +773,10 @@ module Aws::S3
698
773
  # @option options [Boolean] :bypass_governance_retention
699
774
  # Indicates whether S3 Object Lock should bypass Governance-mode
700
775
  # restrictions to process this operation.
776
+ # @option options [String] :expected_bucket_owner
777
+ # The account id of the expected bucket owner. If the bucket is owned by
778
+ # a different account, the request will fail with an HTTP `403 (Access
779
+ # Denied)` error.
701
780
  # @return [Types::DeleteObjectOutput]
702
781
  def delete(options = {})
703
782
  options = options.merge(
@@ -728,6 +807,7 @@ module Aws::S3
728
807
  # sse_customer_key_md5: "SSECustomerKeyMD5",
729
808
  # request_payer: "requester", # accepts requester
730
809
  # part_number: 1,
810
+ # expected_bucket_owner: "AccountId",
731
811
  # })
732
812
  # @param [Hash] options ({})
733
813
  # @option options [String] :if_match
@@ -777,7 +857,7 @@ module Aws::S3
777
857
  # encrypting data. This value is used to store the object and then it is
778
858
  # discarded; Amazon S3 does not store the encryption key. The key must
779
859
  # be appropriate for use with the algorithm specified in the
780
- # `x-amz-server-side​-encryption​-customer-algorithm` header.
860
+ # `x-amz-server-side-encryption-customer-algorithm` header.
781
861
  # @option options [String] :sse_customer_key_md5
782
862
  # Specifies the 128-bit MD5 digest of the encryption key according to
783
863
  # RFC 1321. Amazon S3 uses this header for a message integrity check to
@@ -797,6 +877,10 @@ module Aws::S3
797
877
  # between 1 and 10,000. Effectively performs a 'ranged' GET request
798
878
  # for the part specified. Useful for downloading just a part of an
799
879
  # object.
880
+ # @option options [String] :expected_bucket_owner
881
+ # The account id of the expected bucket owner. If the bucket is owned by
882
+ # a different account, the request will fail with an HTTP `403 (Access
883
+ # Denied)` error.
800
884
  # @return [Types::GetObjectOutput]
801
885
  def get(options = {}, &block)
802
886
  options = options.merge(
@@ -825,7 +909,7 @@ module Aws::S3
825
909
  # "MetadataKey" => "MetadataValue",
826
910
  # },
827
911
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
828
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE
912
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
829
913
  # website_redirect_location: "WebsiteRedirectLocation",
830
914
  # sse_customer_algorithm: "SSECustomerAlgorithm",
831
915
  # sse_customer_key: "SSECustomerKey",
@@ -837,10 +921,13 @@ module Aws::S3
837
921
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
838
922
  # object_lock_retain_until_date: Time.now,
839
923
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
924
+ # expected_bucket_owner: "AccountId",
840
925
  # })
841
926
  # @param [Hash] options ({})
842
927
  # @option options [String] :acl
843
928
  # The canned ACL to apply to the object.
929
+ #
930
+ # This action is not supported by Amazon S3 on Outposts.
844
931
  # @option options [String] :cache_control
845
932
  # Specifies caching behavior along the request/reply chain.
846
933
  # @option options [String] :content_disposition
@@ -858,19 +945,36 @@ module Aws::S3
858
945
  # @option options [String] :grant_full_control
859
946
  # Gives the grantee READ, READ\_ACP, and WRITE\_ACP permissions on the
860
947
  # object.
948
+ #
949
+ # This action is not supported by Amazon S3 on Outposts.
861
950
  # @option options [String] :grant_read
862
951
  # Allows grantee to read the object data and its metadata.
952
+ #
953
+ # This action is not supported by Amazon S3 on Outposts.
863
954
  # @option options [String] :grant_read_acp
864
955
  # Allows grantee to read the object ACL.
956
+ #
957
+ # This action is not supported by Amazon S3 on Outposts.
865
958
  # @option options [String] :grant_write_acp
866
959
  # Allows grantee to write the ACL for the applicable object.
960
+ #
961
+ # This action is not supported by Amazon S3 on Outposts.
867
962
  # @option options [Hash<String,String>] :metadata
868
963
  # A map of metadata to store with the object in S3.
869
964
  # @option options [String] :server_side_encryption
870
965
  # The server-side encryption algorithm used when storing this object in
871
966
  # Amazon S3 (for example, AES256, aws:kms).
872
967
  # @option options [String] :storage_class
873
- # The type of storage to use for the object. Defaults to 'STANDARD'.
968
+ # By default, Amazon S3 uses the STANDARD Storage Class to store newly
969
+ # created objects. The STANDARD storage class provides high durability
970
+ # and high availability. Depending on performance needs, you can specify
971
+ # a different Storage Class. Amazon S3 on Outposts only uses the
972
+ # OUTPOSTS Storage Class. For more information, see [Storage Classes][1]
973
+ # in the *Amazon S3 Service Developer Guide*.
974
+ #
975
+ #
976
+ #
977
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
874
978
  # @option options [String] :website_redirect_location
875
979
  # If the bucket is configured as a website, redirects requests for this
876
980
  # object to another object in the same bucket or to an external URL.
@@ -883,7 +987,7 @@ module Aws::S3
883
987
  # encrypting data. This value is used to store the object and then it is
884
988
  # discarded; Amazon S3 does not store the encryption key. The key must
885
989
  # be appropriate for use with the algorithm specified in the
886
- # `x-amz-server-side​-encryption​-customer-algorithm` header.
990
+ # `x-amz-server-side-encryption-customer-algorithm` header.
887
991
  # @option options [String] :sse_customer_key_md5
888
992
  # Specifies the 128-bit MD5 digest of the encryption key according to
889
993
  # RFC 1321. Amazon S3 uses this header for a message integrity check to
@@ -924,6 +1028,10 @@ module Aws::S3
924
1028
  # @option options [String] :object_lock_legal_hold_status
925
1029
  # Specifies whether you want to apply a Legal Hold to the uploaded
926
1030
  # object.
1031
+ # @option options [String] :expected_bucket_owner
1032
+ # The account id of the expected bucket owner. If the bucket is owned by
1033
+ # a different account, the request will fail with an HTTP `403 (Access
1034
+ # Denied)` error.
927
1035
  # @return [MultipartUpload]
928
1036
  def initiate_multipart_upload(options = {})
929
1037
  options = options.merge(
@@ -960,7 +1068,7 @@ module Aws::S3
960
1068
  # "MetadataKey" => "MetadataValue",
961
1069
  # },
962
1070
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
963
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE
1071
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
964
1072
  # website_redirect_location: "WebsiteRedirectLocation",
965
1073
  # sse_customer_algorithm: "SSECustomerAlgorithm",
966
1074
  # sse_customer_key: "SSECustomerKey",
@@ -972,16 +1080,19 @@ module Aws::S3
972
1080
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
973
1081
  # object_lock_retain_until_date: Time.now,
974
1082
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
1083
+ # expected_bucket_owner: "AccountId",
975
1084
  # })
976
1085
  # @param [Hash] options ({})
977
1086
  # @option options [String] :acl
978
1087
  # The canned ACL to apply to the object. For more information, see
979
1088
  # [Canned ACL][1].
980
1089
  #
1090
+ # This action is not supported by Amazon S3 on Outposts.
1091
+ #
981
1092
  #
982
1093
  #
983
1094
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL
984
- # @option options [String, IO] :body
1095
+ # @option options [String, StringIO, File] :body
985
1096
  # Object data.
986
1097
  # @option options [String] :cache_control
987
1098
  # Can be used to specify caching behavior along the request/reply chain.
@@ -1049,20 +1160,36 @@ module Aws::S3
1049
1160
  # @option options [String] :grant_full_control
1050
1161
  # Gives the grantee READ, READ\_ACP, and WRITE\_ACP permissions on the
1051
1162
  # object.
1163
+ #
1164
+ # This action is not supported by Amazon S3 on Outposts.
1052
1165
  # @option options [String] :grant_read
1053
1166
  # Allows grantee to read the object data and its metadata.
1167
+ #
1168
+ # This action is not supported by Amazon S3 on Outposts.
1054
1169
  # @option options [String] :grant_read_acp
1055
1170
  # Allows grantee to read the object ACL.
1171
+ #
1172
+ # This action is not supported by Amazon S3 on Outposts.
1056
1173
  # @option options [String] :grant_write_acp
1057
1174
  # Allows grantee to write the ACL for the applicable object.
1175
+ #
1176
+ # This action is not supported by Amazon S3 on Outposts.
1058
1177
  # @option options [Hash<String,String>] :metadata
1059
1178
  # A map of metadata to store with the object in S3.
1060
1179
  # @option options [String] :server_side_encryption
1061
1180
  # The server-side encryption algorithm used when storing this object in
1062
1181
  # Amazon S3 (for example, AES256, aws:kms).
1063
1182
  # @option options [String] :storage_class
1064
- # If you don't specify, S3 Standard is the default storage class.
1065
- # Amazon S3 supports other storage classes.
1183
+ # By default, Amazon S3 uses the STANDARD Storage Class to store newly
1184
+ # created objects. The STANDARD storage class provides high durability
1185
+ # and high availability. Depending on performance needs, you can specify
1186
+ # a different Storage Class. Amazon S3 on Outposts only uses the
1187
+ # OUTPOSTS Storage Class. For more information, see [Storage Classes][1]
1188
+ # in the *Amazon S3 Service Developer Guide*.
1189
+ #
1190
+ #
1191
+ #
1192
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
1066
1193
  # @option options [String] :website_redirect_location
1067
1194
  # If the bucket is configured as a website, redirects requests for this
1068
1195
  # object to another object in the same bucket or to an external URL.
@@ -1096,7 +1223,7 @@ module Aws::S3
1096
1223
  # encrypting data. This value is used to store the object and then it is
1097
1224
  # discarded; Amazon S3 does not store the encryption key. The key must
1098
1225
  # be appropriate for use with the algorithm specified in the
1099
- # `x-amz-server-side​-encryption​-customer-algorithm` header.
1226
+ # `x-amz-server-side-encryption-customer-algorithm` header.
1100
1227
  # @option options [String] :sse_customer_key_md5
1101
1228
  # Specifies the 128-bit MD5 digest of the encryption key according to
1102
1229
  # RFC 1321. Amazon S3 uses this header for a message integrity check to
@@ -1141,6 +1268,10 @@ module Aws::S3
1141
1268
  #
1142
1269
  #
1143
1270
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
1271
+ # @option options [String] :expected_bucket_owner
1272
+ # The account id of the expected bucket owner. If the bucket is owned by
1273
+ # a different account, the request will fail with an HTTP `403 (Access
1274
+ # Denied)` error.
1144
1275
  # @return [Types::PutObjectOutput]
1145
1276
  def put(options = {})
1146
1277
  options = options.merge(
@@ -1232,11 +1363,12 @@ module Aws::S3
1232
1363
  # value: "MetadataValue",
1233
1364
  # },
1234
1365
  # ],
1235
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE
1366
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
1236
1367
  # },
1237
1368
  # },
1238
1369
  # },
1239
1370
  # request_payer: "requester", # accepts requester
1371
+ # expected_bucket_owner: "AccountId",
1240
1372
  # })
1241
1373
  # @param [Hash] options ({})
1242
1374
  # @option options [String] :version_id
@@ -1253,6 +1385,10 @@ module Aws::S3
1253
1385
  #
1254
1386
  #
1255
1387
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
1388
+ # @option options [String] :expected_bucket_owner
1389
+ # The account id of the expected bucket owner. If the bucket is owned by
1390
+ # a different account, the request will fail with an HTTP `403 (Access
1391
+ # Denied)` error.
1256
1392
  # @return [Types::RestoreObjectOutput]
1257
1393
  def restore_object(options = {})
1258
1394
  options = options.merge(
@@ -1375,6 +1511,7 @@ module Aws::S3
1375
1511
  # mfa: "MFA",
1376
1512
  # request_payer: "requester", # accepts requester
1377
1513
  # bypass_governance_retention: false,
1514
+ # expected_bucket_owner: "AccountId",
1378
1515
  # })
1379
1516
  # @param options ({})
1380
1517
  # @option options [String] :mfa
@@ -1396,6 +1533,10 @@ module Aws::S3
1396
1533
  # Specifies whether you want to delete this object even if it has a
1397
1534
  # Governance-type Object Lock in place. You must have sufficient
1398
1535
  # permissions to perform this operation.
1536
+ # @option options [String] :expected_bucket_owner
1537
+ # The account id of the expected bucket owner. If the bucket is owned by
1538
+ # a different account, the request will fail with an HTTP `403 (Access
1539
+ # Denied)` error.
1399
1540
  # @return [void]
1400
1541
  def batch_delete!(options = {})
1401
1542
  batch_enum.each do |batch|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -226,6 +228,7 @@ module Aws::S3
226
228
  # grant_write_acp: "GrantWriteACP",
227
229
  # request_payer: "requester", # accepts requester
228
230
  # version_id: "ObjectVersionId",
231
+ # expected_bucket_owner: "AccountId",
229
232
  # })
230
233
  # @param [Hash] options ({})
231
234
  # @option options [String] :acl
@@ -250,15 +253,23 @@ module Aws::S3
250
253
  # @option options [String] :grant_full_control
251
254
  # Allows grantee the read, write, read ACP, and write ACP permissions on
252
255
  # the bucket.
256
+ #
257
+ # This action is not supported by Amazon S3 on Outposts.
253
258
  # @option options [String] :grant_read
254
259
  # Allows grantee to list the objects in the bucket.
260
+ #
261
+ # This action is not supported by Amazon S3 on Outposts.
255
262
  # @option options [String] :grant_read_acp
256
263
  # Allows grantee to read the bucket ACL.
264
+ #
265
+ # This action is not supported by Amazon S3 on Outposts.
257
266
  # @option options [String] :grant_write
258
267
  # Allows grantee to create, overwrite, and delete any object in the
259
268
  # bucket.
260
269
  # @option options [String] :grant_write_acp
261
270
  # Allows grantee to write the ACL for the applicable bucket.
271
+ #
272
+ # This action is not supported by Amazon S3 on Outposts.
262
273
  # @option options [String] :request_payer
263
274
  # Confirms that the requester knows that they will be charged for the
264
275
  # request. Bucket owners need not specify this parameter in their
@@ -271,6 +282,10 @@ module Aws::S3
271
282
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
272
283
  # @option options [String] :version_id
273
284
  # VersionId used to reference a specific version of the object.
285
+ # @option options [String] :expected_bucket_owner
286
+ # The account id of the expected bucket owner. If the bucket is owned by
287
+ # a different account, the request will fail with an HTTP `403 (Access
288
+ # Denied)` error.
274
289
  # @return [Types::PutObjectAclOutput]
275
290
  def put(options = {})
276
291
  options = options.merge(