aws-sdk-s3 1.92.0 → 1.93.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.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +175 -149
- data/lib/aws-sdk-s3/object.rb +87 -1
- data/lib/aws-sdk-s3/types.rb +102 -85
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65f1d3671e23de751982bd25a5481612d1cf95d7a9d99e5c7946bc78f38ca49b
|
4
|
+
data.tar.gz: '069c0978d08f329e2f4b849c51287d144930dced9c46920d5c12ae733c0097ed'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40e332366cf470ed55ca8397e1ffd6ffa9fc18d51db47791c0efea224a4e626d97533b08fffa881fc7e3ab77252009ca393e2573ad9e28e636724270c3ccc2c6
|
7
|
+
data.tar.gz: 73c4e75ceb0b8ea668025c830f1ecfa577527e663c77b149a5a533988c40e43ba2016122db1244b927adbe6a6eba3ad95cc2d54925993a66cb4d1d0380bcf739
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.93.0
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -455,7 +455,7 @@ module Aws::S3
|
|
455
455
|
# When using this action with an access point through the AWS SDKs, you
|
456
456
|
# provide the access point ARN in place of the bucket name. For more
|
457
457
|
# information about access point ARNs, see [Using Access Points][1] in
|
458
|
-
# the *Amazon
|
458
|
+
# the *Amazon S3 User Guide*.
|
459
459
|
#
|
460
460
|
# When using this action with Amazon S3 on Outposts, you must direct
|
461
461
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -464,7 +464,7 @@ module Aws::S3
|
|
464
464
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
465
465
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
466
466
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
467
|
-
# in the *Amazon
|
467
|
+
# in the *Amazon S3 User Guide*.
|
468
468
|
#
|
469
469
|
#
|
470
470
|
#
|
@@ -926,7 +926,7 @@ module Aws::S3
|
|
926
926
|
# When using this action with an access point through the AWS SDKs, you
|
927
927
|
# provide the access point ARN in place of the bucket name. For more
|
928
928
|
# information about access point ARNs, see [Using Access Points][1] in
|
929
|
-
# the *Amazon
|
929
|
+
# the *Amazon S3 User Guide*.
|
930
930
|
#
|
931
931
|
# When using this action with Amazon S3 on Outposts, you must direct
|
932
932
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -935,7 +935,7 @@ module Aws::S3
|
|
935
935
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
936
936
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
937
937
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
938
|
-
# in the *Amazon
|
938
|
+
# in the *Amazon S3 User Guide*.
|
939
939
|
#
|
940
940
|
#
|
941
941
|
#
|
@@ -1419,33 +1419,33 @@ module Aws::S3
|
|
1419
1419
|
# * {Types::CreateBucketOutput#location #location} => String
|
1420
1420
|
#
|
1421
1421
|
#
|
1422
|
-
# @example Example: To create a bucket
|
1422
|
+
# @example Example: To create a bucket in a specific region
|
1423
1423
|
#
|
1424
|
-
# # The following example creates a bucket.
|
1424
|
+
# # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
1425
1425
|
#
|
1426
1426
|
# resp = client.create_bucket({
|
1427
1427
|
# bucket: "examplebucket",
|
1428
|
+
# create_bucket_configuration: {
|
1429
|
+
# location_constraint: "eu-west-1",
|
1430
|
+
# },
|
1428
1431
|
# })
|
1429
1432
|
#
|
1430
1433
|
# resp.to_h outputs the following:
|
1431
1434
|
# {
|
1432
|
-
# location: "/
|
1435
|
+
# location: "http://examplebucket.<Region>.s3.amazonaws.com/",
|
1433
1436
|
# }
|
1434
1437
|
#
|
1435
|
-
# @example Example: To create a bucket
|
1438
|
+
# @example Example: To create a bucket
|
1436
1439
|
#
|
1437
|
-
# # The following example creates a bucket.
|
1440
|
+
# # The following example creates a bucket.
|
1438
1441
|
#
|
1439
1442
|
# resp = client.create_bucket({
|
1440
1443
|
# bucket: "examplebucket",
|
1441
|
-
# create_bucket_configuration: {
|
1442
|
-
# location_constraint: "eu-west-1",
|
1443
|
-
# },
|
1444
1444
|
# })
|
1445
1445
|
#
|
1446
1446
|
# resp.to_h outputs the following:
|
1447
1447
|
# {
|
1448
|
-
# location: "
|
1448
|
+
# location: "/examplebucket",
|
1449
1449
|
# }
|
1450
1450
|
#
|
1451
1451
|
# @example Request syntax with placeholder values
|
@@ -1724,7 +1724,7 @@ module Aws::S3
|
|
1724
1724
|
# When using this action with an access point through the AWS SDKs, you
|
1725
1725
|
# provide the access point ARN in place of the bucket name. For more
|
1726
1726
|
# information about access point ARNs, see [Using Access Points][1] in
|
1727
|
-
# the *Amazon
|
1727
|
+
# the *Amazon S3 User Guide*.
|
1728
1728
|
#
|
1729
1729
|
# When using this action with Amazon S3 on Outposts, you must direct
|
1730
1730
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -1733,7 +1733,7 @@ module Aws::S3
|
|
1733
1733
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
1734
1734
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
1735
1735
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
1736
|
-
# in the *Amazon
|
1736
|
+
# in the *Amazon S3 User Guide*.
|
1737
1737
|
#
|
1738
1738
|
#
|
1739
1739
|
#
|
@@ -2742,7 +2742,8 @@ module Aws::S3
|
|
2742
2742
|
|
2743
2743
|
# Removes the null version (if there is one) of an object and inserts a
|
2744
2744
|
# delete marker, which becomes the latest version of the object. If
|
2745
|
-
# there isn't a null version, Amazon S3 does not remove any objects
|
2745
|
+
# there isn't a null version, Amazon S3 does not remove any objects but
|
2746
|
+
# will still respond that the command was successful.
|
2746
2747
|
#
|
2747
2748
|
# To remove a specific version, you must be the bucket owner and you
|
2748
2749
|
# must use the version Id subresource. Using this subresource
|
@@ -2787,7 +2788,7 @@ module Aws::S3
|
|
2787
2788
|
# When using this action with an access point through the AWS SDKs, you
|
2788
2789
|
# provide the access point ARN in place of the bucket name. For more
|
2789
2790
|
# information about access point ARNs, see [Using Access Points][1] in
|
2790
|
-
# the *Amazon
|
2791
|
+
# the *Amazon S3 User Guide*.
|
2791
2792
|
#
|
2792
2793
|
# When using this action with Amazon S3 on Outposts, you must direct
|
2793
2794
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -2796,7 +2797,7 @@ module Aws::S3
|
|
2796
2797
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
2797
2798
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
2798
2799
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
2799
|
-
# in the *Amazon
|
2800
|
+
# in the *Amazon S3 User Guide*.
|
2800
2801
|
#
|
2801
2802
|
#
|
2802
2803
|
#
|
@@ -2842,6 +2843,15 @@ module Aws::S3
|
|
2842
2843
|
# * {Types::DeleteObjectOutput#request_charged #request_charged} => String
|
2843
2844
|
#
|
2844
2845
|
#
|
2846
|
+
# @example Example: To delete an object (from a non-versioned bucket)
|
2847
|
+
#
|
2848
|
+
# # The following example deletes an object from a non-versioned bucket.
|
2849
|
+
#
|
2850
|
+
# resp = client.delete_object({
|
2851
|
+
# bucket: "ExampleBucket",
|
2852
|
+
# key: "HappyFace.jpg",
|
2853
|
+
# })
|
2854
|
+
#
|
2845
2855
|
# @example Example: To delete an object
|
2846
2856
|
#
|
2847
2857
|
# # The following example deletes an object from an S3 bucket.
|
@@ -2855,15 +2865,6 @@ module Aws::S3
|
|
2855
2865
|
# {
|
2856
2866
|
# }
|
2857
2867
|
#
|
2858
|
-
# @example Example: To delete an object (from a non-versioned bucket)
|
2859
|
-
#
|
2860
|
-
# # The following example deletes an object from a non-versioned bucket.
|
2861
|
-
#
|
2862
|
-
# resp = client.delete_object({
|
2863
|
-
# bucket: "ExampleBucket",
|
2864
|
-
# key: "HappyFace.jpg",
|
2865
|
-
# })
|
2866
|
-
#
|
2867
2868
|
# @example Request syntax with placeholder values
|
2868
2869
|
#
|
2869
2870
|
# resp = client.delete_object({
|
@@ -2923,7 +2924,7 @@ module Aws::S3
|
|
2923
2924
|
# When using this action with an access point through the AWS SDKs, you
|
2924
2925
|
# provide the access point ARN in place of the bucket name. For more
|
2925
2926
|
# information about access point ARNs, see [Using Access Points][1] in
|
2926
|
-
# the *Amazon
|
2927
|
+
# the *Amazon S3 User Guide*.
|
2927
2928
|
#
|
2928
2929
|
# When using this action with Amazon S3 on Outposts, you must direct
|
2929
2930
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -2932,7 +2933,7 @@ module Aws::S3
|
|
2932
2933
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
2933
2934
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
2934
2935
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
2935
|
-
# in the *Amazon
|
2936
|
+
# in the *Amazon S3 User Guide*.
|
2936
2937
|
#
|
2937
2938
|
#
|
2938
2939
|
#
|
@@ -3071,7 +3072,7 @@ module Aws::S3
|
|
3071
3072
|
# When using this action with an access point through the AWS SDKs, you
|
3072
3073
|
# provide the access point ARN in place of the bucket name. For more
|
3073
3074
|
# information about access point ARNs, see [Using Access Points][1] in
|
3074
|
-
# the *Amazon
|
3075
|
+
# the *Amazon S3 User Guide*.
|
3075
3076
|
#
|
3076
3077
|
# When using this action with Amazon S3 on Outposts, you must direct
|
3077
3078
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -3080,7 +3081,7 @@ module Aws::S3
|
|
3080
3081
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
3081
3082
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
3082
3083
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
3083
|
-
# in the *Amazon
|
3084
|
+
# in the *Amazon S3 User Guide*.
|
3084
3085
|
#
|
3085
3086
|
#
|
3086
3087
|
#
|
@@ -5231,7 +5232,7 @@ module Aws::S3
|
|
5231
5232
|
# When using this action with an access point through the AWS SDKs, you
|
5232
5233
|
# provide the access point ARN in place of the bucket name. For more
|
5233
5234
|
# information about access point ARNs, see [Using Access Points][1] in
|
5234
|
-
# the *Amazon
|
5235
|
+
# the *Amazon S3 User Guide*.
|
5235
5236
|
#
|
5236
5237
|
# When using this action with Amazon S3 on Outposts, you must direct
|
5237
5238
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -5240,7 +5241,7 @@ module Aws::S3
|
|
5240
5241
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
5241
5242
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
5242
5243
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
5243
|
-
# in the *Amazon
|
5244
|
+
# in the *Amazon S3 User Guide*.
|
5244
5245
|
#
|
5245
5246
|
#
|
5246
5247
|
#
|
@@ -5557,7 +5558,7 @@ module Aws::S3
|
|
5557
5558
|
# When using this action with an access point through the AWS SDKs, you
|
5558
5559
|
# provide the access point ARN in place of the bucket name. For more
|
5559
5560
|
# information about access point ARNs, see [Using Access Points][1] in
|
5560
|
-
# the *Amazon
|
5561
|
+
# the *Amazon S3 User Guide*.
|
5561
5562
|
#
|
5562
5563
|
#
|
5563
5564
|
#
|
@@ -5694,7 +5695,7 @@ module Aws::S3
|
|
5694
5695
|
# When using this action with an access point through the AWS SDKs, you
|
5695
5696
|
# provide the access point ARN in place of the bucket name. For more
|
5696
5697
|
# information about access point ARNs, see [Using Access Points][1] in
|
5697
|
-
# the *Amazon
|
5698
|
+
# the *Amazon S3 User Guide*.
|
5698
5699
|
#
|
5699
5700
|
#
|
5700
5701
|
#
|
@@ -5769,7 +5770,7 @@ module Aws::S3
|
|
5769
5770
|
# When using this action with an access point through the AWS SDKs, you
|
5770
5771
|
# provide the access point ARN in place of the bucket name. For more
|
5771
5772
|
# information about access point ARNs, see [Using Access Points][1] in
|
5772
|
-
# the *Amazon
|
5773
|
+
# the *Amazon S3 User Guide*.
|
5773
5774
|
#
|
5774
5775
|
#
|
5775
5776
|
#
|
@@ -5826,7 +5827,7 @@ module Aws::S3
|
|
5826
5827
|
# When using this action with an access point through the AWS SDKs, you
|
5827
5828
|
# provide the access point ARN in place of the bucket name. For more
|
5828
5829
|
# information about access point ARNs, see [Using Access Points][1] in
|
5829
|
-
# the *Amazon
|
5830
|
+
# the *Amazon S3 User Guide*.
|
5830
5831
|
#
|
5831
5832
|
#
|
5832
5833
|
#
|
@@ -5922,7 +5923,7 @@ module Aws::S3
|
|
5922
5923
|
# When using this action with an access point through the AWS SDKs, you
|
5923
5924
|
# provide the access point ARN in place of the bucket name. For more
|
5924
5925
|
# information about access point ARNs, see [Using Access Points][1] in
|
5925
|
-
# the *Amazon
|
5926
|
+
# the *Amazon S3 User Guide*.
|
5926
5927
|
#
|
5927
5928
|
# When using this action with Amazon S3 on Outposts, you must direct
|
5928
5929
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -5931,7 +5932,7 @@ module Aws::S3
|
|
5931
5932
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
5932
5933
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
5933
5934
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
5934
|
-
# in the *Amazon
|
5935
|
+
# in the *Amazon S3 User Guide*.
|
5935
5936
|
#
|
5936
5937
|
#
|
5937
5938
|
#
|
@@ -6231,7 +6232,7 @@ module Aws::S3
|
|
6231
6232
|
# When using this action with an access point through the AWS SDKs, you
|
6232
6233
|
# provide the access point ARN in place of the bucket name. For more
|
6233
6234
|
# information about access point ARNs, see [Using Access Points][1] in
|
6234
|
-
# the *Amazon
|
6235
|
+
# the *Amazon S3 User Guide*.
|
6235
6236
|
#
|
6236
6237
|
# When using this action with Amazon S3 on Outposts, you must direct
|
6237
6238
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -6240,7 +6241,7 @@ module Aws::S3
|
|
6240
6241
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
6241
6242
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
6242
6243
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
6243
|
-
# in the *Amazon
|
6244
|
+
# in the *Amazon S3 User Guide*.
|
6244
6245
|
#
|
6245
6246
|
#
|
6246
6247
|
#
|
@@ -6384,7 +6385,7 @@ module Aws::S3
|
|
6384
6385
|
# When using this action with an access point through the AWS SDKs, you
|
6385
6386
|
# provide the access point ARN in place of the bucket name. For more
|
6386
6387
|
# information about access point ARNs, see [Using Access Points][1] in
|
6387
|
-
# the *Amazon
|
6388
|
+
# the *Amazon S3 User Guide*.
|
6388
6389
|
#
|
6389
6390
|
# When using this action with Amazon S3 on Outposts, you must direct
|
6390
6391
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -6393,7 +6394,7 @@ module Aws::S3
|
|
6393
6394
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
6394
6395
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
6395
6396
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
6396
|
-
# in the *Amazon
|
6397
|
+
# in the *Amazon S3 User Guide*.
|
6397
6398
|
#
|
6398
6399
|
#
|
6399
6400
|
#
|
@@ -7091,7 +7092,7 @@ module Aws::S3
|
|
7091
7092
|
# When using this action with an access point through the AWS SDKs, you
|
7092
7093
|
# provide the access point ARN in place of the bucket name. For more
|
7093
7094
|
# information about access point ARNs, see [Using Access Points][1] in
|
7094
|
-
# the *Amazon
|
7095
|
+
# the *Amazon S3 User Guide*.
|
7095
7096
|
#
|
7096
7097
|
# When using this action with Amazon S3 on Outposts, you must direct
|
7097
7098
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -7100,7 +7101,7 @@ module Aws::S3
|
|
7100
7101
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
7101
7102
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
7102
7103
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
7103
|
-
# in the *Amazon
|
7104
|
+
# in the *Amazon S3 User Guide*.
|
7104
7105
|
#
|
7105
7106
|
#
|
7106
7107
|
#
|
@@ -7325,6 +7326,9 @@ module Aws::S3
|
|
7325
7326
|
# can also use request parameters as selection criteria to return
|
7326
7327
|
# metadata about a subset of all the object versions.
|
7327
7328
|
#
|
7329
|
+
# To use this operation, you must have permissions to perform the
|
7330
|
+
# `s3:ListBucketVersions` action. Be aware of the name difference.
|
7331
|
+
#
|
7328
7332
|
# <note markdown="1"> A 200 OK response can contain valid or invalid XML. Make sure to
|
7329
7333
|
# design your application to parse the contents of the response and
|
7330
7334
|
# handle it appropriately.
|
@@ -7553,7 +7557,7 @@ module Aws::S3
|
|
7553
7557
|
# When using this action with an access point through the AWS SDKs, you
|
7554
7558
|
# provide the access point ARN in place of the bucket name. For more
|
7555
7559
|
# information about access point ARNs, see [Using Access Points][1] in
|
7556
|
-
# the *Amazon
|
7560
|
+
# the *Amazon S3 User Guide*.
|
7557
7561
|
#
|
7558
7562
|
# When using this action with Amazon S3 on Outposts, you must direct
|
7559
7563
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -7562,7 +7566,7 @@ module Aws::S3
|
|
7562
7566
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
7563
7567
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
7564
7568
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
7565
|
-
# in the *Amazon
|
7569
|
+
# in the *Amazon S3 User Guide*.
|
7566
7570
|
#
|
7567
7571
|
#
|
7568
7572
|
#
|
@@ -7749,7 +7753,7 @@ module Aws::S3
|
|
7749
7753
|
# When using this action with an access point through the AWS SDKs, you
|
7750
7754
|
# provide the access point ARN in place of the bucket name. For more
|
7751
7755
|
# information about access point ARNs, see [Using Access Points][1] in
|
7752
|
-
# the *Amazon
|
7756
|
+
# the *Amazon S3 User Guide*.
|
7753
7757
|
#
|
7754
7758
|
# When using this action with Amazon S3 on Outposts, you must direct
|
7755
7759
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -7758,7 +7762,7 @@ module Aws::S3
|
|
7758
7762
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
7759
7763
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
7760
7764
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
7761
|
-
# in the *Amazon
|
7765
|
+
# in the *Amazon S3 User Guide*.
|
7762
7766
|
#
|
7763
7767
|
#
|
7764
7768
|
#
|
@@ -7955,7 +7959,7 @@ module Aws::S3
|
|
7955
7959
|
# When using this action with an access point through the AWS SDKs, you
|
7956
7960
|
# provide the access point ARN in place of the bucket name. For more
|
7957
7961
|
# information about access point ARNs, see [Using Access Points][1] in
|
7958
|
-
# the *Amazon
|
7962
|
+
# the *Amazon S3 User Guide*.
|
7959
7963
|
#
|
7960
7964
|
# When using this action with Amazon S3 on Outposts, you must direct
|
7961
7965
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -7964,7 +7968,7 @@ module Aws::S3
|
|
7964
7968
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
7965
7969
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
7966
7970
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
7967
|
-
# in the *Amazon
|
7971
|
+
# in the *Amazon S3 User Guide*.
|
7968
7972
|
#
|
7969
7973
|
#
|
7970
7974
|
#
|
@@ -8770,7 +8774,7 @@ module Aws::S3
|
|
8770
8774
|
# with Amazon S3-managed keys (SSE-S3) or customer master keys stored in
|
8771
8775
|
# AWS KMS (SSE-KMS). For information about the Amazon S3 default
|
8772
8776
|
# encryption feature, see [Amazon S3 Default Bucket Encryption][1] in
|
8773
|
-
# the *Amazon
|
8777
|
+
# the *Amazon S3 User Guide*.
|
8774
8778
|
#
|
8775
8779
|
#
|
8776
8780
|
#
|
@@ -10729,8 +10733,7 @@ module Aws::S3
|
|
10729
10733
|
# <note markdown="1"> The `Content-MD5` header is required for any request to upload an
|
10730
10734
|
# object with a retention period configured using Amazon S3 Object Lock.
|
10731
10735
|
# For more information about Amazon S3 Object Lock, see [Amazon S3
|
10732
|
-
# Object Lock Overview][1] in the *Amazon
|
10733
|
-
# Developer Guide*.
|
10736
|
+
# Object Lock Overview][1] in the *Amazon S3 User Guide*.
|
10734
10737
|
#
|
10735
10738
|
# </note>
|
10736
10739
|
#
|
@@ -10820,7 +10823,7 @@ module Aws::S3
|
|
10820
10823
|
# When using this action with an access point through the AWS SDKs, you
|
10821
10824
|
# provide the access point ARN in place of the bucket name. For more
|
10822
10825
|
# information about access point ARNs, see [Using Access Points][1] in
|
10823
|
-
# the *Amazon
|
10826
|
+
# the *Amazon S3 User Guide*.
|
10824
10827
|
#
|
10825
10828
|
# When using this action with Amazon S3 on Outposts, you must direct
|
10826
10829
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -10829,7 +10832,7 @@ module Aws::S3
|
|
10829
10832
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
10830
10833
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
10831
10834
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
10832
|
-
# in the *Amazon
|
10835
|
+
# in the *Amazon S3 User Guide*.
|
10833
10836
|
#
|
10834
10837
|
#
|
10835
10838
|
#
|
@@ -11067,21 +11070,22 @@ module Aws::S3
|
|
11067
11070
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
11068
11071
|
#
|
11069
11072
|
#
|
11070
|
-
# @example Example: To upload an object
|
11073
|
+
# @example Example: To upload an object and specify optional tags
|
11071
11074
|
#
|
11072
|
-
# # The following example uploads an object
|
11073
|
-
# #
|
11075
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
11076
|
+
# # S3 returns version ID of the newly created object.
|
11074
11077
|
#
|
11075
11078
|
# resp = client.put_object({
|
11076
|
-
# body: "HappyFace.jpg",
|
11079
|
+
# body: "c:\\HappyFace.jpg",
|
11077
11080
|
# bucket: "examplebucket",
|
11078
11081
|
# key: "HappyFace.jpg",
|
11082
|
+
# tagging: "key1=value1&key2=value2",
|
11079
11083
|
# })
|
11080
11084
|
#
|
11081
11085
|
# resp.to_h outputs the following:
|
11082
11086
|
# {
|
11083
11087
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11084
|
-
# version_id: "
|
11088
|
+
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
11085
11089
|
# }
|
11086
11090
|
#
|
11087
11091
|
# @example Example: To create an object.
|
@@ -11100,26 +11104,6 @@ module Aws::S3
|
|
11100
11104
|
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
11101
11105
|
# }
|
11102
11106
|
#
|
11103
|
-
# @example Example: To upload an object (specify optional headers)
|
11104
|
-
#
|
11105
|
-
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
11106
|
-
# # storage class and use server-side encryption.
|
11107
|
-
#
|
11108
|
-
# resp = client.put_object({
|
11109
|
-
# body: "HappyFace.jpg",
|
11110
|
-
# bucket: "examplebucket",
|
11111
|
-
# key: "HappyFace.jpg",
|
11112
|
-
# server_side_encryption: "AES256",
|
11113
|
-
# storage_class: "STANDARD_IA",
|
11114
|
-
# })
|
11115
|
-
#
|
11116
|
-
# resp.to_h outputs the following:
|
11117
|
-
# {
|
11118
|
-
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11119
|
-
# server_side_encryption: "AES256",
|
11120
|
-
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
11121
|
-
# }
|
11122
|
-
#
|
11123
11107
|
# @example Example: To upload object and specify user-defined metadata
|
11124
11108
|
#
|
11125
11109
|
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
@@ -11141,60 +11125,79 @@ module Aws::S3
|
|
11141
11125
|
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
11142
11126
|
# }
|
11143
11127
|
#
|
11144
|
-
# @example Example: To upload an object
|
11128
|
+
# @example Example: To upload an object
|
11145
11129
|
#
|
11146
|
-
# # The following example uploads
|
11147
|
-
# #
|
11130
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
11131
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
11148
11132
|
#
|
11149
11133
|
# resp = client.put_object({
|
11150
|
-
#
|
11151
|
-
# body: "filetoupload",
|
11134
|
+
# body: "HappyFace.jpg",
|
11152
11135
|
# bucket: "examplebucket",
|
11153
|
-
# key: "
|
11136
|
+
# key: "HappyFace.jpg",
|
11154
11137
|
# })
|
11155
11138
|
#
|
11156
11139
|
# resp.to_h outputs the following:
|
11157
11140
|
# {
|
11158
11141
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11159
|
-
# version_id: "
|
11142
|
+
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
11160
11143
|
# }
|
11161
11144
|
#
|
11162
|
-
# @example Example: To upload an object and specify
|
11145
|
+
# @example Example: To upload an object and specify server-side encryption and object tags
|
11163
11146
|
#
|
11164
|
-
# # The following example uploads
|
11165
|
-
# # S3 returns version ID
|
11147
|
+
# # The following example uploads and object. The request specifies the optional server-side encryption option. The request
|
11148
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
11166
11149
|
#
|
11167
11150
|
# resp = client.put_object({
|
11168
|
-
# body: "
|
11151
|
+
# body: "filetoupload",
|
11169
11152
|
# bucket: "examplebucket",
|
11170
|
-
# key: "
|
11153
|
+
# key: "exampleobject",
|
11154
|
+
# server_side_encryption: "AES256",
|
11171
11155
|
# tagging: "key1=value1&key2=value2",
|
11172
11156
|
# })
|
11173
11157
|
#
|
11174
11158
|
# resp.to_h outputs the following:
|
11175
11159
|
# {
|
11176
11160
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11177
|
-
#
|
11161
|
+
# server_side_encryption: "AES256",
|
11162
|
+
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
11178
11163
|
# }
|
11179
11164
|
#
|
11180
|
-
# @example Example: To upload an object and specify
|
11165
|
+
# @example Example: To upload an object and specify canned ACL.
|
11181
11166
|
#
|
11182
|
-
# # The following example uploads and object. The request specifies
|
11183
|
-
# #
|
11167
|
+
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
11168
|
+
# # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
11184
11169
|
#
|
11185
11170
|
# resp = client.put_object({
|
11171
|
+
# acl: "authenticated-read",
|
11186
11172
|
# body: "filetoupload",
|
11187
11173
|
# bucket: "examplebucket",
|
11188
11174
|
# key: "exampleobject",
|
11175
|
+
# })
|
11176
|
+
#
|
11177
|
+
# resp.to_h outputs the following:
|
11178
|
+
# {
|
11179
|
+
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11180
|
+
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
11181
|
+
# }
|
11182
|
+
#
|
11183
|
+
# @example Example: To upload an object (specify optional headers)
|
11184
|
+
#
|
11185
|
+
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
11186
|
+
# # storage class and use server-side encryption.
|
11187
|
+
#
|
11188
|
+
# resp = client.put_object({
|
11189
|
+
# body: "HappyFace.jpg",
|
11190
|
+
# bucket: "examplebucket",
|
11191
|
+
# key: "HappyFace.jpg",
|
11189
11192
|
# server_side_encryption: "AES256",
|
11190
|
-
#
|
11193
|
+
# storage_class: "STANDARD_IA",
|
11191
11194
|
# })
|
11192
11195
|
#
|
11193
11196
|
# resp.to_h outputs the following:
|
11194
11197
|
# {
|
11195
11198
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11196
11199
|
# server_side_encryption: "AES256",
|
11197
|
-
# version_id: "
|
11200
|
+
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
11198
11201
|
# }
|
11199
11202
|
#
|
11200
11203
|
# @example Streaming a file from disk
|
@@ -11438,7 +11441,7 @@ module Aws::S3
|
|
11438
11441
|
# When using this action with an access point through the AWS SDKs, you
|
11439
11442
|
# provide the access point ARN in place of the bucket name. For more
|
11440
11443
|
# information about access point ARNs, see [Using Access Points][1] in
|
11441
|
-
# the *Amazon
|
11444
|
+
# the *Amazon S3 User Guide*.
|
11442
11445
|
#
|
11443
11446
|
#
|
11444
11447
|
#
|
@@ -11491,7 +11494,7 @@ module Aws::S3
|
|
11491
11494
|
# When using this action with an access point through the AWS SDKs, you
|
11492
11495
|
# provide the access point ARN in place of the bucket name. For more
|
11493
11496
|
# information about access point ARNs, see [Using Access Points][1] in
|
11494
|
-
# the *Amazon
|
11497
|
+
# the *Amazon S3 User Guide*.
|
11495
11498
|
#
|
11496
11499
|
# When using this action with Amazon S3 on Outposts, you must direct
|
11497
11500
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -11500,7 +11503,7 @@ module Aws::S3
|
|
11500
11503
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
11501
11504
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
11502
11505
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
11503
|
-
# in the *Amazon
|
11506
|
+
# in the *Amazon S3 User Guide*.
|
11504
11507
|
#
|
11505
11508
|
#
|
11506
11509
|
#
|
@@ -11597,16 +11600,11 @@ module Aws::S3
|
|
11597
11600
|
req.send_request(options)
|
11598
11601
|
end
|
11599
11602
|
|
11600
|
-
# Applies a Legal Hold configuration to the specified object.
|
11603
|
+
# Applies a Legal Hold configuration to the specified object. For more
|
11604
|
+
# information, see [Locking Objects][1].
|
11601
11605
|
#
|
11602
11606
|
# This action is not supported by Amazon S3 on Outposts.
|
11603
11607
|
#
|
11604
|
-
# **Related Resources**
|
11605
|
-
#
|
11606
|
-
# * [Locking Objects][1]
|
11607
|
-
#
|
11608
|
-
# ^
|
11609
|
-
#
|
11610
11608
|
#
|
11611
11609
|
#
|
11612
11610
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
|
@@ -11621,7 +11619,7 @@ module Aws::S3
|
|
11621
11619
|
# When using this action with an access point through the AWS SDKs, you
|
11622
11620
|
# provide the access point ARN in place of the bucket name. For more
|
11623
11621
|
# information about access point ARNs, see [Using Access Points][1] in
|
11624
|
-
# the *Amazon
|
11622
|
+
# the *Amazon S3 User Guide*.
|
11625
11623
|
#
|
11626
11624
|
#
|
11627
11625
|
#
|
@@ -11692,18 +11690,19 @@ module Aws::S3
|
|
11692
11690
|
|
11693
11691
|
# Places an Object Lock configuration on the specified bucket. The rule
|
11694
11692
|
# specified in the Object Lock configuration will be applied by default
|
11695
|
-
# to every new object placed in the specified bucket.
|
11693
|
+
# to every new object placed in the specified bucket. For more
|
11694
|
+
# information, see [Locking Objects][1].
|
11696
11695
|
#
|
11697
|
-
# <note markdown="1"> `DefaultRetention`
|
11698
|
-
# both at the same time.
|
11696
|
+
# <note markdown="1"> * The `DefaultRetention` settings require both a mode and a period.
|
11699
11697
|
#
|
11700
|
-
#
|
11701
|
-
#
|
11702
|
-
#
|
11698
|
+
# * The `DefaultRetention` period can be either `Days` or `Years` but
|
11699
|
+
# you must select one. You cannot specify `Days` and `Years` at the
|
11700
|
+
# same time.
|
11703
11701
|
#
|
11704
|
-
# *
|
11702
|
+
# * You can only enable Object Lock for new buckets. If you want to turn
|
11703
|
+
# on Object Lock for an existing bucket, contact AWS Support.
|
11705
11704
|
#
|
11706
|
-
#
|
11705
|
+
# </note>
|
11707
11706
|
#
|
11708
11707
|
#
|
11709
11708
|
#
|
@@ -11779,16 +11778,11 @@ module Aws::S3
|
|
11779
11778
|
req.send_request(options)
|
11780
11779
|
end
|
11781
11780
|
|
11782
|
-
# Places an Object Retention configuration on an object.
|
11781
|
+
# Places an Object Retention configuration on an object. For more
|
11782
|
+
# information, see [Locking Objects][1].
|
11783
11783
|
#
|
11784
11784
|
# This action is not supported by Amazon S3 on Outposts.
|
11785
11785
|
#
|
11786
|
-
# **Related Resources**
|
11787
|
-
#
|
11788
|
-
# * [Locking Objects][1]
|
11789
|
-
#
|
11790
|
-
# ^
|
11791
|
-
#
|
11792
11786
|
#
|
11793
11787
|
#
|
11794
11788
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
|
@@ -11803,7 +11797,7 @@ module Aws::S3
|
|
11803
11797
|
# When using this action with an access point through the AWS SDKs, you
|
11804
11798
|
# provide the access point ARN in place of the bucket name. For more
|
11805
11799
|
# information about access point ARNs, see [Using Access Points][1] in
|
11806
|
-
# the *Amazon
|
11800
|
+
# the *Amazon S3 User Guide*.
|
11807
11801
|
#
|
11808
11802
|
#
|
11809
11803
|
#
|
@@ -11945,7 +11939,7 @@ module Aws::S3
|
|
11945
11939
|
# When using this action with an access point through the AWS SDKs, you
|
11946
11940
|
# provide the access point ARN in place of the bucket name. For more
|
11947
11941
|
# information about access point ARNs, see [Using Access Points][1] in
|
11948
|
-
# the *Amazon
|
11942
|
+
# the *Amazon S3 User Guide*.
|
11949
11943
|
#
|
11950
11944
|
# When using this action with Amazon S3 on Outposts, you must direct
|
11951
11945
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -11954,7 +11948,7 @@ module Aws::S3
|
|
11954
11948
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
11955
11949
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
11956
11950
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
11957
|
-
# in the *Amazon
|
11951
|
+
# in the *Amazon S3 User Guide*.
|
11958
11952
|
#
|
11959
11953
|
#
|
11960
11954
|
#
|
@@ -12105,7 +12099,7 @@ module Aws::S3
|
|
12105
12099
|
# Amazon S3 bucket. You can enable the configuration options in any
|
12106
12100
|
# combination. For more information about when Amazon S3 considers a
|
12107
12101
|
# bucket or object public, see [The Meaning of "Public"][1] in the
|
12108
|
-
# *Amazon
|
12102
|
+
# *Amazon S3 User Guide*.
|
12109
12103
|
#
|
12110
12104
|
#
|
12111
12105
|
#
|
@@ -12389,7 +12383,7 @@ module Aws::S3
|
|
12389
12383
|
# When using this action with an access point through the AWS SDKs, you
|
12390
12384
|
# provide the access point ARN in place of the bucket name. For more
|
12391
12385
|
# information about access point ARNs, see [Using Access Points][1] in
|
12392
|
-
# the *Amazon
|
12386
|
+
# the *Amazon S3 User Guide*.
|
12393
12387
|
#
|
12394
12388
|
# When using this action with Amazon S3 on Outposts, you must direct
|
12395
12389
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -12398,7 +12392,7 @@ module Aws::S3
|
|
12398
12392
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
12399
12393
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
12400
12394
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
12401
|
-
# in the *Amazon
|
12395
|
+
# in the *Amazon S3 User Guide*.
|
12402
12396
|
#
|
12403
12397
|
#
|
12404
12398
|
#
|
@@ -13093,7 +13087,7 @@ module Aws::S3
|
|
13093
13087
|
# When using this action with an access point through the AWS SDKs, you
|
13094
13088
|
# provide the access point ARN in place of the bucket name. For more
|
13095
13089
|
# information about access point ARNs, see [Using Access Points][1] in
|
13096
|
-
# the *Amazon
|
13090
|
+
# the *Amazon S3 User Guide*.
|
13097
13091
|
#
|
13098
13092
|
# When using this action with Amazon S3 on Outposts, you must direct
|
13099
13093
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -13102,7 +13096,7 @@ module Aws::S3
|
|
13102
13096
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
13103
13097
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
13104
13098
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
13105
|
-
# in the *Amazon
|
13099
|
+
# in the *Amazon S3 User Guide*.
|
13106
13100
|
#
|
13107
13101
|
#
|
13108
13102
|
#
|
@@ -13367,7 +13361,7 @@ module Aws::S3
|
|
13367
13361
|
# When using this action with an access point through the AWS SDKs, you
|
13368
13362
|
# provide the access point ARN in place of the bucket name. For more
|
13369
13363
|
# information about access point ARNs, see [Using Access Points][1] in
|
13370
|
-
# the *Amazon
|
13364
|
+
# the *Amazon S3 User Guide*.
|
13371
13365
|
#
|
13372
13366
|
# When using this action with Amazon S3 on Outposts, you must direct
|
13373
13367
|
# requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
@@ -13376,7 +13370,7 @@ module Aws::S3
|
|
13376
13370
|
# When using this action using S3 on Outposts through the AWS SDKs, you
|
13377
13371
|
# provide the Outposts bucket ARN in place of the bucket name. For more
|
13378
13372
|
# information about S3 on Outposts ARNs, see [Using S3 on Outposts][2]
|
13379
|
-
# in the *Amazon
|
13373
|
+
# in the *Amazon S3 User Guide*.
|
13380
13374
|
#
|
13381
13375
|
#
|
13382
13376
|
#
|
@@ -13525,45 +13519,45 @@ module Aws::S3
|
|
13525
13519
|
# * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
|
13526
13520
|
#
|
13527
13521
|
#
|
13528
|
-
# @example Example: To upload a part by copying
|
13522
|
+
# @example Example: To upload a part by copying byte range from an existing object as data source
|
13529
13523
|
#
|
13530
|
-
# # The following example uploads a part of a multipart upload by copying
|
13524
|
+
# # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
|
13525
|
+
# # data source.
|
13531
13526
|
#
|
13532
13527
|
# resp = client.upload_part_copy({
|
13533
13528
|
# bucket: "examplebucket",
|
13534
13529
|
# copy_source: "/bucketname/sourceobjectkey",
|
13530
|
+
# copy_source_range: "bytes=1-100000",
|
13535
13531
|
# key: "examplelargeobject",
|
13536
|
-
# part_number:
|
13532
|
+
# part_number: 2,
|
13537
13533
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
13538
13534
|
# })
|
13539
13535
|
#
|
13540
13536
|
# resp.to_h outputs the following:
|
13541
13537
|
# {
|
13542
13538
|
# copy_part_result: {
|
13543
|
-
# etag: "\"
|
13544
|
-
# last_modified: Time.parse("2016-12-29T21:
|
13539
|
+
# etag: "\"65d16d19e65a7508a51f043180edcc36\"",
|
13540
|
+
# last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
|
13545
13541
|
# },
|
13546
13542
|
# }
|
13547
13543
|
#
|
13548
|
-
# @example Example: To upload a part by copying
|
13544
|
+
# @example Example: To upload a part by copying data from an existing object as data source
|
13549
13545
|
#
|
13550
|
-
# # The following example uploads a part of a multipart upload by copying
|
13551
|
-
# # data source.
|
13546
|
+
# # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
13552
13547
|
#
|
13553
13548
|
# resp = client.upload_part_copy({
|
13554
13549
|
# bucket: "examplebucket",
|
13555
13550
|
# copy_source: "/bucketname/sourceobjectkey",
|
13556
|
-
# copy_source_range: "bytes=1-100000",
|
13557
13551
|
# key: "examplelargeobject",
|
13558
|
-
# part_number:
|
13552
|
+
# part_number: 1,
|
13559
13553
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
13560
13554
|
# })
|
13561
13555
|
#
|
13562
13556
|
# resp.to_h outputs the following:
|
13563
13557
|
# {
|
13564
13558
|
# copy_part_result: {
|
13565
|
-
# etag: "\"
|
13566
|
-
# last_modified: Time.parse("2016-12-29T21:
|
13559
|
+
# etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
13560
|
+
# last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
|
13567
13561
|
# },
|
13568
13562
|
# }
|
13569
13563
|
#
|
@@ -13627,10 +13621,40 @@ module Aws::S3
|
|
13627
13621
|
# function, the metadata returned to the end user `GetObject` call might
|
13628
13622
|
# differ from what Amazon S3 would normally return.
|
13629
13623
|
#
|
13624
|
+
# AWS provides some prebuilt Lambda functions that you can use with S3
|
13625
|
+
# Object Lambda to detect and redact personally identifiable information
|
13626
|
+
# (PII) and decompress S3 objects. These Lambda functions are available
|
13627
|
+
# in the AWS Serverless Application Repository, and can be selected
|
13628
|
+
# through the AWS Management Console when you create your Object Lambda
|
13629
|
+
# Access Point.
|
13630
|
+
#
|
13631
|
+
# Example 1: PII Access Control - This Lambda function uses Amazon
|
13632
|
+
# Comprehend, a natural language processing (NLP) service using machine
|
13633
|
+
# learning to find insights and relationships in text. It automatically
|
13634
|
+
# detects personally identifiable information (PII) such as names,
|
13635
|
+
# addresses, dates, credit card numbers, and social security numbers
|
13636
|
+
# from documents in your Amazon S3 bucket.
|
13637
|
+
#
|
13638
|
+
# Example 2: PII Redaction - This Lambda function uses Amazon
|
13639
|
+
# Comprehend, a natural language processing (NLP) service using machine
|
13640
|
+
# learning to find insights and relationships in text. It automatically
|
13641
|
+
# redacts personally identifiable information (PII) such as names,
|
13642
|
+
# addresses, dates, credit card numbers, and social security numbers
|
13643
|
+
# from documents in your Amazon S3 bucket.
|
13644
|
+
#
|
13645
|
+
# Example 3: Decompression - The Lambda function
|
13646
|
+
# S3ObjectLambdaDecompression, is equipped to decompress objects stored
|
13647
|
+
# in S3 in one of six compressed file formats including bzip2, gzip,
|
13648
|
+
# snappy, zlib, zstandard and ZIP.
|
13649
|
+
#
|
13650
|
+
# For information on how to view and use these functions, see [Using AWS
|
13651
|
+
# built Lambda functions][3] in the *Amazon S3 User Guide*.
|
13652
|
+
#
|
13630
13653
|
#
|
13631
13654
|
#
|
13632
13655
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/transforming-objects.html
|
13633
13656
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
|
13657
|
+
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/olap-examples.html
|
13634
13658
|
#
|
13635
13659
|
# @option params [required, String] :request_route
|
13636
13660
|
# Route prefix to the HTTP URL generated.
|
@@ -13680,7 +13704,9 @@ module Aws::S3
|
|
13680
13704
|
# A string that uniquely identifies an error condition. Returned in the
|
13681
13705
|
# <Code> tag of the error XML response for a corresponding
|
13682
13706
|
# `GetObject` call. Cannot be used with a successful `StatusCode` header
|
13683
|
-
# or when the transformed object is provided in the body.
|
13707
|
+
# or when the transformed object is provided in the body. All error
|
13708
|
+
# codes from S3 are sentence-cased. Regex value is
|
13709
|
+
# "^\[A-Z\]\[a-zA-Z\]+$".
|
13684
13710
|
#
|
13685
13711
|
# @option params [String] :error_message
|
13686
13712
|
# Contains a generic description of the error condition. Returned in the
|
@@ -13884,7 +13910,7 @@ module Aws::S3
|
|
13884
13910
|
params: params,
|
13885
13911
|
config: config)
|
13886
13912
|
context[:gem_name] = 'aws-sdk-s3'
|
13887
|
-
context[:gem_version] = '1.
|
13913
|
+
context[:gem_version] = '1.93.0'
|
13888
13914
|
Seahorse::Client::Request.new(handlers, context)
|
13889
13915
|
end
|
13890
13916
|
|