aws-sdk-s3 1.104.0 → 1.107.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/arn/access_point_arn.rb +6 -6
- data/lib/aws-sdk-s3/arn/multi_region_access_point_arn.rb +2 -3
- data/lib/aws-sdk-s3/arn/object_lambda_arn.rb +6 -6
- data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +7 -6
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +2 -0
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +6 -0
- data/lib/aws-sdk-s3/client.rb +105 -77
- data/lib/aws-sdk-s3/client_api.rb +9 -0
- data/lib/aws-sdk-s3/customizations/object.rb +74 -1
- data/lib/aws-sdk-s3/plugins/accelerate.rb +7 -1
- data/lib/aws-sdk-s3/plugins/arn.rb +11 -24
- data/lib/aws-sdk-s3/plugins/bucket_dns.rb +1 -1
- data/lib/aws-sdk-s3/plugins/dualstack.rb +25 -31
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +19 -4
- data/lib/aws-sdk-s3/types.rb +84 -3
- data/lib/aws-sdk-s3.rb +1 -1
- 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: b0da8168f90cc70eda9fe0f02ef04fbb8a587e3dbc294be21419a2072f42439e
|
4
|
+
data.tar.gz: c4d4533077cdb7e8fceaffc8d807a16cf2c4e467463d202abbffd97d2f33494e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eb77a4914fafb1ebf9334f3c66f60d85516517a22c7346f5dbe1a5db0592f046aeebe9765d7f9c45df6651876f5503e430b7896c2134204de3745c27f9179c5
|
7
|
+
data.tar.gz: 8628d97dad0761cf4482ce75f31ebb0dfbc7531749afcae2d2f13584155fd26113f274b0f440dd00fd58aed12011abcef7dc71d7d6a45929432f6a40a64d52ab
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.107.0 (2021-11-23)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Introduce two new Filters to S3 Lifecycle configurations - ObjectSizeGreaterThan and ObjectSizeLessThan. Introduce a new way to trigger actions on noncurrent versions by providing the number of newer noncurrent versions along with noncurrent days.
|
8
|
+
|
9
|
+
1.106.0 (2021-11-17)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add `presigned_request` method to `Aws::S3::Object`.
|
13
|
+
|
14
|
+
1.105.1 (2021-11-05)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Issue - Raise error when `use_fips_endpoint` is used with `use_accelerate_endpoint`.
|
18
|
+
|
19
|
+
1.105.0 (2021-11-04)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.104.0 (2021-10-18)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.107.0
|
@@ -25,25 +25,25 @@ module Aws
|
|
25
25
|
if @region.empty? || @account_id.empty?
|
26
26
|
raise ArgumentError,
|
27
27
|
'S3 Access Point ARNs must contain both a region '\
|
28
|
-
'and an account
|
28
|
+
'and an account ID.'
|
29
29
|
end
|
30
30
|
|
31
31
|
if @region.include?('-fips') || @region.include?('fips-')
|
32
32
|
raise ArgumentError,
|
33
|
-
'S3 Access Point ARNs cannot contain a FIPS region'
|
33
|
+
'S3 Access Point ARNs cannot contain a FIPS region.'
|
34
34
|
end
|
35
35
|
|
36
36
|
if @type != 'accesspoint'
|
37
|
-
raise ArgumentError, 'Invalid ARN, resource format is not correct'
|
37
|
+
raise ArgumentError, 'Invalid ARN, resource format is not correct.'
|
38
38
|
end
|
39
39
|
|
40
40
|
if @access_point_name.nil? || @access_point_name.empty?
|
41
|
-
raise ArgumentError, 'Missing ARN
|
41
|
+
raise ArgumentError, 'Missing ARN Access Point name.'
|
42
42
|
end
|
43
43
|
|
44
44
|
if @extra
|
45
45
|
raise ArgumentError,
|
46
|
-
'ARN
|
46
|
+
'ARN Access Point resource must be a single value.'
|
47
47
|
end
|
48
48
|
|
49
49
|
unless Seahorse::Util.host_label?(
|
@@ -60,7 +60,7 @@ module Aws
|
|
60
60
|
if custom_endpoint
|
61
61
|
"#{pfx}.#{custom_endpoint}"
|
62
62
|
else
|
63
|
-
sfx = Aws::Partitions::EndpointProvider.dns_suffix_for(region)
|
63
|
+
sfx = Aws::Partitions::EndpointProvider.dns_suffix_for(region, 's3')
|
64
64
|
"#{pfx}.s3-accesspoint#{'-fips' if fips}#{'.dualstack' if dualstack}.#{region}.#{sfx}"
|
65
65
|
end
|
66
66
|
end
|
@@ -55,12 +55,11 @@ module Aws
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
def host_url(
|
58
|
+
def host_url(_region, _fips = false, _dualstack = false, custom_endpoint = nil)
|
59
59
|
if custom_endpoint
|
60
60
|
"#{@mrap_alias}.#{custom_endpoint}"
|
61
61
|
else
|
62
|
-
|
63
|
-
sfx = Aws::Partitions::EndpointProvider.dns_suffix_for(@partition)
|
62
|
+
sfx = Aws::Partitions::EndpointProvider.dns_suffix_for(@partition, 's3')
|
64
63
|
"#{@mrap_alias}.accesspoint.s3-global.#{sfx}"
|
65
64
|
end
|
66
65
|
end
|
@@ -19,18 +19,18 @@ module Aws
|
|
19
19
|
|
20
20
|
def validate_arn!
|
21
21
|
unless @service == 's3-object-lambda'
|
22
|
-
raise ArgumentError, 'Must provide a valid S3 Object
|
22
|
+
raise ArgumentError, 'Must provide a valid S3 Object Lambda ARN.'
|
23
23
|
end
|
24
24
|
|
25
25
|
if @region.empty? || @account_id.empty?
|
26
26
|
raise ArgumentError,
|
27
27
|
'S3 Object Lambdas ARNs must contain both a region '\
|
28
|
-
'and an account
|
28
|
+
'and an account ID.'
|
29
29
|
end
|
30
30
|
|
31
31
|
if @region.include?('-fips') || @region.include?('fips-')
|
32
32
|
raise ArgumentError,
|
33
|
-
'S3
|
33
|
+
'S3 Object Lambda ARNs cannot contain a FIPS region'
|
34
34
|
end
|
35
35
|
|
36
36
|
if @type != 'accesspoint'
|
@@ -38,12 +38,12 @@ module Aws
|
|
38
38
|
end
|
39
39
|
|
40
40
|
if @access_point_name.nil? || @access_point_name.empty?
|
41
|
-
raise ArgumentError, 'Missing ARN
|
41
|
+
raise ArgumentError, 'Missing ARN Access Point name.'
|
42
42
|
end
|
43
43
|
|
44
44
|
if @extra
|
45
45
|
raise ArgumentError,
|
46
|
-
'ARN
|
46
|
+
'ARN Access Point resource must be a single value.'
|
47
47
|
end
|
48
48
|
|
49
49
|
unless Seahorse::Util.host_label?(
|
@@ -60,7 +60,7 @@ module Aws
|
|
60
60
|
if custom_endpoint
|
61
61
|
"#{pfx}.#{custom_endpoint}"
|
62
62
|
else
|
63
|
-
sfx = Aws::Partitions::EndpointProvider.dns_suffix_for(region)
|
63
|
+
sfx = Aws::Partitions::EndpointProvider.dns_suffix_for(region, 's3')
|
64
64
|
"#{pfx}.s3-object-lambda#{'-fips' if fips}.#{region}.#{sfx}"
|
65
65
|
end
|
66
66
|
end
|
@@ -20,13 +20,14 @@ module Aws
|
|
20
20
|
|
21
21
|
def validate_arn!
|
22
22
|
unless @service == 's3-outposts'
|
23
|
-
raise ArgumentError, 'Must provide a valid S3
|
23
|
+
raise ArgumentError, 'Must provide a valid S3 Outpost Access '\
|
24
|
+
'Point ARN.'
|
24
25
|
end
|
25
26
|
|
26
27
|
if @region.empty? || @account_id.empty?
|
27
28
|
raise ArgumentError,
|
28
|
-
'S3 Outpost ARNs must contain both a region '\
|
29
|
-
'and an account
|
29
|
+
'S3 Outpost Access Point ARNs must contain both a region '\
|
30
|
+
'and an account ID.'
|
30
31
|
end
|
31
32
|
|
32
33
|
if @type != 'outpost' && @subtype != 'accesspoint'
|
@@ -34,16 +35,16 @@ module Aws
|
|
34
35
|
end
|
35
36
|
|
36
37
|
if @outpost_id.nil? || @outpost_id.empty?
|
37
|
-
raise ArgumentError, 'Missing ARN
|
38
|
+
raise ArgumentError, 'Missing ARN Outpost ID.'
|
38
39
|
end
|
39
40
|
|
40
41
|
if @access_point_name.nil? || @access_point_name.empty?
|
41
|
-
raise ArgumentError, 'Missing ARN
|
42
|
+
raise ArgumentError, 'Missing ARN Access Point name.'
|
42
43
|
end
|
43
44
|
|
44
45
|
if @extra
|
45
46
|
raise ArgumentError,
|
46
|
-
'ARN
|
47
|
+
'ARN Access Point resource must be a single value.'
|
47
48
|
end
|
48
49
|
|
49
50
|
unless Seahorse::Util.host_label?(
|
@@ -214,9 +214,11 @@ module Aws::S3
|
|
214
214
|
# noncurrent_version_transition: {
|
215
215
|
# noncurrent_days: 1,
|
216
216
|
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
217
|
+
# newer_noncurrent_versions: 1,
|
217
218
|
# },
|
218
219
|
# noncurrent_version_expiration: {
|
219
220
|
# noncurrent_days: 1,
|
221
|
+
# newer_noncurrent_versions: 1,
|
220
222
|
# },
|
221
223
|
# abort_incomplete_multipart_upload: {
|
222
224
|
# days_after_initiation: 1,
|
@@ -210,6 +210,8 @@ module Aws::S3
|
|
210
210
|
# key: "ObjectKey", # required
|
211
211
|
# value: "Value", # required
|
212
212
|
# },
|
213
|
+
# object_size_greater_than: 1,
|
214
|
+
# object_size_less_than: 1,
|
213
215
|
# and: {
|
214
216
|
# prefix: "Prefix",
|
215
217
|
# tags: [
|
@@ -218,6 +220,8 @@ module Aws::S3
|
|
218
220
|
# value: "Value", # required
|
219
221
|
# },
|
220
222
|
# ],
|
223
|
+
# object_size_greater_than: 1,
|
224
|
+
# object_size_less_than: 1,
|
221
225
|
# },
|
222
226
|
# },
|
223
227
|
# status: "Enabled", # required, accepts Enabled, Disabled
|
@@ -232,10 +236,12 @@ module Aws::S3
|
|
232
236
|
# {
|
233
237
|
# noncurrent_days: 1,
|
234
238
|
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
239
|
+
# newer_noncurrent_versions: 1,
|
235
240
|
# },
|
236
241
|
# ],
|
237
242
|
# noncurrent_version_expiration: {
|
238
243
|
# noncurrent_days: 1,
|
244
|
+
# newer_noncurrent_versions: 1,
|
239
245
|
# },
|
240
246
|
# abort_incomplete_multipart_upload: {
|
241
247
|
# days_after_initiation: 1,
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -359,9 +359,14 @@ module Aws::S3
|
|
359
359
|
# for all object operations. You must first enable accelerate for
|
360
360
|
# each bucket. [Go here for more information](http://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html).
|
361
361
|
#
|
362
|
-
# @option options [Boolean] :use_dualstack_endpoint
|
363
|
-
# When set to `true`,
|
364
|
-
#
|
362
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
363
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
364
|
+
# will be used if available.
|
365
|
+
#
|
366
|
+
# @option options [Boolean] :use_fips_endpoint
|
367
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
368
|
+
# When a `fips` region is used, the region is normalized and this config
|
369
|
+
# is set to `true`.
|
365
370
|
#
|
366
371
|
# @option options [Boolean] :validate_params (true)
|
367
372
|
# When `true`, request parameters are validated before
|
@@ -566,6 +571,11 @@ module Aws::S3
|
|
566
571
|
# prepared to retry the failed requests. For more information, see
|
567
572
|
# [Amazon S3 Error Best Practices][2].
|
568
573
|
#
|
574
|
+
# You cannot use `Content-Type: application/x-www-form-urlencoded` with
|
575
|
+
# Complete Multipart Upload requests. Also, if you do not provide a
|
576
|
+
# `Content-Type` header, `CompleteMultipartUpload` returns a 200 OK
|
577
|
+
# response.
|
578
|
+
#
|
569
579
|
# For more information about multipart uploads, see [Uploading Objects
|
570
580
|
# Using Multipart Upload][3].
|
571
581
|
#
|
@@ -1465,33 +1475,33 @@ module Aws::S3
|
|
1465
1475
|
# * {Types::CreateBucketOutput#location #location} => String
|
1466
1476
|
#
|
1467
1477
|
#
|
1468
|
-
# @example Example: To create a bucket
|
1478
|
+
# @example Example: To create a bucket in a specific region
|
1469
1479
|
#
|
1470
|
-
# # The following example creates a bucket.
|
1480
|
+
# # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
1471
1481
|
#
|
1472
1482
|
# resp = client.create_bucket({
|
1473
1483
|
# bucket: "examplebucket",
|
1484
|
+
# create_bucket_configuration: {
|
1485
|
+
# location_constraint: "eu-west-1",
|
1486
|
+
# },
|
1474
1487
|
# })
|
1475
1488
|
#
|
1476
1489
|
# resp.to_h outputs the following:
|
1477
1490
|
# {
|
1478
|
-
# location: "/
|
1491
|
+
# location: "http://examplebucket.<Region>.s3.amazonaws.com/",
|
1479
1492
|
# }
|
1480
1493
|
#
|
1481
|
-
# @example Example: To create a bucket
|
1494
|
+
# @example Example: To create a bucket
|
1482
1495
|
#
|
1483
|
-
# # The following example creates a bucket.
|
1496
|
+
# # The following example creates a bucket.
|
1484
1497
|
#
|
1485
1498
|
# resp = client.create_bucket({
|
1486
1499
|
# bucket: "examplebucket",
|
1487
|
-
# create_bucket_configuration: {
|
1488
|
-
# location_constraint: "eu-west-1",
|
1489
|
-
# },
|
1490
1500
|
# })
|
1491
1501
|
#
|
1492
1502
|
# resp.to_h outputs the following:
|
1493
1503
|
# {
|
1494
|
-
# location: "
|
1504
|
+
# location: "/examplebucket",
|
1495
1505
|
# }
|
1496
1506
|
#
|
1497
1507
|
# @example Request syntax with placeholder values
|
@@ -3014,35 +3024,35 @@ module Aws::S3
|
|
3014
3024
|
# * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
|
3015
3025
|
#
|
3016
3026
|
#
|
3017
|
-
# @example Example: To remove tag set from an object
|
3027
|
+
# @example Example: To remove tag set from an object
|
3018
3028
|
#
|
3019
|
-
# # The following example removes tag set associated with the specified object
|
3020
|
-
# #
|
3029
|
+
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
3030
|
+
# # operation removes tag set from the latest object version.
|
3021
3031
|
#
|
3022
3032
|
# resp = client.delete_object_tagging({
|
3023
3033
|
# bucket: "examplebucket",
|
3024
3034
|
# key: "HappyFace.jpg",
|
3025
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3026
3035
|
# })
|
3027
3036
|
#
|
3028
3037
|
# resp.to_h outputs the following:
|
3029
3038
|
# {
|
3030
|
-
# version_id: "
|
3039
|
+
# version_id: "null",
|
3031
3040
|
# }
|
3032
3041
|
#
|
3033
|
-
# @example Example: To remove tag set from an object
|
3042
|
+
# @example Example: To remove tag set from an object version
|
3034
3043
|
#
|
3035
|
-
# # The following example removes tag set associated with the specified object.
|
3036
|
-
# #
|
3044
|
+
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
3045
|
+
# # object key and object version.
|
3037
3046
|
#
|
3038
3047
|
# resp = client.delete_object_tagging({
|
3039
3048
|
# bucket: "examplebucket",
|
3040
3049
|
# key: "HappyFace.jpg",
|
3050
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3041
3051
|
# })
|
3042
3052
|
#
|
3043
3053
|
# resp.to_h outputs the following:
|
3044
3054
|
# {
|
3045
|
-
# version_id: "
|
3055
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3046
3056
|
# }
|
3047
3057
|
#
|
3048
3058
|
# @example Request syntax with placeholder values
|
@@ -3974,7 +3984,9 @@ module Aws::S3
|
|
3974
3984
|
# resp.rules[0].transition.storage_class #=> String, one of "GLACIER", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "DEEP_ARCHIVE"
|
3975
3985
|
# resp.rules[0].noncurrent_version_transition.noncurrent_days #=> Integer
|
3976
3986
|
# resp.rules[0].noncurrent_version_transition.storage_class #=> String, one of "GLACIER", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "DEEP_ARCHIVE"
|
3987
|
+
# resp.rules[0].noncurrent_version_transition.newer_noncurrent_versions #=> Integer
|
3977
3988
|
# resp.rules[0].noncurrent_version_expiration.noncurrent_days #=> Integer
|
3989
|
+
# resp.rules[0].noncurrent_version_expiration.newer_noncurrent_versions #=> Integer
|
3978
3990
|
# resp.rules[0].abort_incomplete_multipart_upload.days_after_initiation #=> Integer
|
3979
3991
|
#
|
3980
3992
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycle AWS API Documentation
|
@@ -4092,10 +4104,14 @@ module Aws::S3
|
|
4092
4104
|
# resp.rules[0].filter.prefix #=> String
|
4093
4105
|
# resp.rules[0].filter.tag.key #=> String
|
4094
4106
|
# resp.rules[0].filter.tag.value #=> String
|
4107
|
+
# resp.rules[0].filter.object_size_greater_than #=> Integer
|
4108
|
+
# resp.rules[0].filter.object_size_less_than #=> Integer
|
4095
4109
|
# resp.rules[0].filter.and.prefix #=> String
|
4096
4110
|
# resp.rules[0].filter.and.tags #=> Array
|
4097
4111
|
# resp.rules[0].filter.and.tags[0].key #=> String
|
4098
4112
|
# resp.rules[0].filter.and.tags[0].value #=> String
|
4113
|
+
# resp.rules[0].filter.and.object_size_greater_than #=> Integer
|
4114
|
+
# resp.rules[0].filter.and.object_size_less_than #=> Integer
|
4099
4115
|
# resp.rules[0].status #=> String, one of "Enabled", "Disabled"
|
4100
4116
|
# resp.rules[0].transitions #=> Array
|
4101
4117
|
# resp.rules[0].transitions[0].date #=> Time
|
@@ -4104,7 +4120,9 @@ module Aws::S3
|
|
4104
4120
|
# resp.rules[0].noncurrent_version_transitions #=> Array
|
4105
4121
|
# resp.rules[0].noncurrent_version_transitions[0].noncurrent_days #=> Integer
|
4106
4122
|
# resp.rules[0].noncurrent_version_transitions[0].storage_class #=> String, one of "GLACIER", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "DEEP_ARCHIVE"
|
4123
|
+
# resp.rules[0].noncurrent_version_transitions[0].newer_noncurrent_versions #=> Integer
|
4107
4124
|
# resp.rules[0].noncurrent_version_expiration.noncurrent_days #=> Integer
|
4125
|
+
# resp.rules[0].noncurrent_version_expiration.newer_noncurrent_versions #=> Integer
|
4108
4126
|
# resp.rules[0].abort_incomplete_multipart_upload.days_after_initiation #=> Integer
|
4109
4127
|
#
|
4110
4128
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfiguration AWS API Documentation
|
@@ -5208,8 +5226,10 @@ module Aws::S3
|
|
5208
5226
|
# By default, the GET action returns the current version of an object.
|
5209
5227
|
# To return a different version, use the `versionId` subresource.
|
5210
5228
|
#
|
5211
|
-
# <note markdown="1"> *
|
5212
|
-
# version of an object.
|
5229
|
+
# <note markdown="1"> * If you supply a `versionId`, you need the `s3:GetObjectVersion`
|
5230
|
+
# permission to access a specific version of an object. If you request
|
5231
|
+
# a specific version, you do not need to have the `s3:GetObject`
|
5232
|
+
# permission.
|
5213
5233
|
#
|
5214
5234
|
# * If the current version of the object is a delete marker, Amazon S3
|
5215
5235
|
# behaves as if the object was deleted and includes
|
@@ -6038,49 +6058,49 @@ module Aws::S3
|
|
6038
6058
|
# * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
|
6039
6059
|
#
|
6040
6060
|
#
|
6041
|
-
# @example Example: To retrieve tag set of
|
6061
|
+
# @example Example: To retrieve tag set of an object
|
6042
6062
|
#
|
6043
|
-
# # The following example retrieves tag set of an object.
|
6063
|
+
# # The following example retrieves tag set of an object.
|
6044
6064
|
#
|
6045
6065
|
# resp = client.get_object_tagging({
|
6046
6066
|
# bucket: "examplebucket",
|
6047
|
-
# key: "
|
6048
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6067
|
+
# key: "HappyFace.jpg",
|
6049
6068
|
# })
|
6050
6069
|
#
|
6051
6070
|
# resp.to_h outputs the following:
|
6052
6071
|
# {
|
6053
6072
|
# tag_set: [
|
6054
6073
|
# {
|
6055
|
-
# key: "
|
6056
|
-
# value: "
|
6074
|
+
# key: "Key4",
|
6075
|
+
# value: "Value4",
|
6076
|
+
# },
|
6077
|
+
# {
|
6078
|
+
# key: "Key3",
|
6079
|
+
# value: "Value3",
|
6057
6080
|
# },
|
6058
6081
|
# ],
|
6059
|
-
# version_id: "
|
6082
|
+
# version_id: "null",
|
6060
6083
|
# }
|
6061
6084
|
#
|
6062
|
-
# @example Example: To retrieve tag set of
|
6085
|
+
# @example Example: To retrieve tag set of a specific object version
|
6063
6086
|
#
|
6064
|
-
# # The following example retrieves tag set of an object.
|
6087
|
+
# # The following example retrieves tag set of an object. The request specifies object version.
|
6065
6088
|
#
|
6066
6089
|
# resp = client.get_object_tagging({
|
6067
6090
|
# bucket: "examplebucket",
|
6068
|
-
# key: "
|
6091
|
+
# key: "exampleobject",
|
6092
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6069
6093
|
# })
|
6070
6094
|
#
|
6071
6095
|
# resp.to_h outputs the following:
|
6072
6096
|
# {
|
6073
6097
|
# tag_set: [
|
6074
6098
|
# {
|
6075
|
-
# key: "
|
6076
|
-
# value: "
|
6077
|
-
# },
|
6078
|
-
# {
|
6079
|
-
# key: "Key3",
|
6080
|
-
# value: "Value3",
|
6099
|
+
# key: "Key1",
|
6100
|
+
# value: "Value1",
|
6081
6101
|
# },
|
6082
6102
|
# ],
|
6083
|
-
# version_id: "
|
6103
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6084
6104
|
# }
|
6085
6105
|
#
|
6086
6106
|
# @example Request syntax with placeholder values
|
@@ -9282,9 +9302,11 @@ module Aws::S3
|
|
9282
9302
|
# noncurrent_version_transition: {
|
9283
9303
|
# noncurrent_days: 1,
|
9284
9304
|
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
9305
|
+
# newer_noncurrent_versions: 1,
|
9285
9306
|
# },
|
9286
9307
|
# noncurrent_version_expiration: {
|
9287
9308
|
# noncurrent_days: 1,
|
9309
|
+
# newer_noncurrent_versions: 1,
|
9288
9310
|
# },
|
9289
9311
|
# abort_incomplete_multipart_upload: {
|
9290
9312
|
# days_after_initiation: 1,
|
@@ -9446,6 +9468,8 @@ module Aws::S3
|
|
9446
9468
|
# key: "ObjectKey", # required
|
9447
9469
|
# value: "Value", # required
|
9448
9470
|
# },
|
9471
|
+
# object_size_greater_than: 1,
|
9472
|
+
# object_size_less_than: 1,
|
9449
9473
|
# and: {
|
9450
9474
|
# prefix: "Prefix",
|
9451
9475
|
# tags: [
|
@@ -9454,6 +9478,8 @@ module Aws::S3
|
|
9454
9478
|
# value: "Value", # required
|
9455
9479
|
# },
|
9456
9480
|
# ],
|
9481
|
+
# object_size_greater_than: 1,
|
9482
|
+
# object_size_less_than: 1,
|
9457
9483
|
# },
|
9458
9484
|
# },
|
9459
9485
|
# status: "Enabled", # required, accepts Enabled, Disabled
|
@@ -9468,10 +9494,12 @@ module Aws::S3
|
|
9468
9494
|
# {
|
9469
9495
|
# noncurrent_days: 1,
|
9470
9496
|
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
9497
|
+
# newer_noncurrent_versions: 1,
|
9471
9498
|
# },
|
9472
9499
|
# ],
|
9473
9500
|
# noncurrent_version_expiration: {
|
9474
9501
|
# noncurrent_days: 1,
|
9502
|
+
# newer_noncurrent_versions: 1,
|
9475
9503
|
# },
|
9476
9504
|
# abort_incomplete_multipart_upload: {
|
9477
9505
|
# days_after_initiation: 1,
|
@@ -11192,60 +11220,63 @@ module Aws::S3
|
|
11192
11220
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
11193
11221
|
#
|
11194
11222
|
#
|
11195
|
-
# @example Example: To upload an object and specify
|
11223
|
+
# @example Example: To upload an object and specify server-side encryption and object tags
|
11196
11224
|
#
|
11197
|
-
# # The following example uploads
|
11198
|
-
# # S3 returns version ID
|
11225
|
+
# # The following example uploads and object. The request specifies the optional server-side encryption option. The request
|
11226
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
11199
11227
|
#
|
11200
11228
|
# resp = client.put_object({
|
11201
|
-
# body: "
|
11229
|
+
# body: "filetoupload",
|
11202
11230
|
# bucket: "examplebucket",
|
11203
|
-
# key: "
|
11231
|
+
# key: "exampleobject",
|
11232
|
+
# server_side_encryption: "AES256",
|
11204
11233
|
# tagging: "key1=value1&key2=value2",
|
11205
11234
|
# })
|
11206
11235
|
#
|
11207
11236
|
# resp.to_h outputs the following:
|
11208
11237
|
# {
|
11209
11238
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11210
|
-
#
|
11239
|
+
# server_side_encryption: "AES256",
|
11240
|
+
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
11211
11241
|
# }
|
11212
11242
|
#
|
11213
|
-
# @example Example: To upload an object and specify
|
11243
|
+
# @example Example: To upload an object and specify optional tags
|
11214
11244
|
#
|
11215
|
-
# # The following example uploads
|
11216
|
-
# #
|
11245
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
11246
|
+
# # S3 returns version ID of the newly created object.
|
11217
11247
|
#
|
11218
11248
|
# resp = client.put_object({
|
11219
|
-
#
|
11220
|
-
# body: "filetoupload",
|
11249
|
+
# body: "c:\\HappyFace.jpg",
|
11221
11250
|
# bucket: "examplebucket",
|
11222
|
-
# key: "
|
11251
|
+
# key: "HappyFace.jpg",
|
11252
|
+
# tagging: "key1=value1&key2=value2",
|
11223
11253
|
# })
|
11224
11254
|
#
|
11225
11255
|
# resp.to_h outputs the following:
|
11226
11256
|
# {
|
11227
11257
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11228
|
-
# version_id: "
|
11258
|
+
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
11229
11259
|
# }
|
11230
11260
|
#
|
11231
|
-
# @example Example: To upload
|
11261
|
+
# @example Example: To upload object and specify user-defined metadata
|
11232
11262
|
#
|
11233
|
-
# # The following example
|
11234
|
-
# #
|
11263
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
11264
|
+
# # enabled, S3 returns version ID in response.
|
11235
11265
|
#
|
11236
11266
|
# resp = client.put_object({
|
11237
11267
|
# body: "filetoupload",
|
11238
11268
|
# bucket: "examplebucket",
|
11239
11269
|
# key: "exampleobject",
|
11240
|
-
#
|
11241
|
-
#
|
11270
|
+
# metadata: {
|
11271
|
+
# "metadata1" => "value1",
|
11272
|
+
# "metadata2" => "value2",
|
11273
|
+
# },
|
11242
11274
|
# })
|
11243
11275
|
#
|
11244
11276
|
# resp.to_h outputs the following:
|
11245
11277
|
# {
|
11246
11278
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11247
|
-
#
|
11248
|
-
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
11279
|
+
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
11249
11280
|
# }
|
11250
11281
|
#
|
11251
11282
|
# @example Example: To create an object.
|
@@ -11264,21 +11295,22 @@ module Aws::S3
|
|
11264
11295
|
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
11265
11296
|
# }
|
11266
11297
|
#
|
11267
|
-
# @example Example: To upload an object
|
11298
|
+
# @example Example: To upload an object and specify canned ACL.
|
11268
11299
|
#
|
11269
|
-
# # The following example uploads
|
11270
|
-
# #
|
11300
|
+
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
11301
|
+
# # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
11271
11302
|
#
|
11272
11303
|
# resp = client.put_object({
|
11273
|
-
#
|
11304
|
+
# acl: "authenticated-read",
|
11305
|
+
# body: "filetoupload",
|
11274
11306
|
# bucket: "examplebucket",
|
11275
|
-
# key: "
|
11307
|
+
# key: "exampleobject",
|
11276
11308
|
# })
|
11277
11309
|
#
|
11278
11310
|
# resp.to_h outputs the following:
|
11279
11311
|
# {
|
11280
11312
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11281
|
-
# version_id: "
|
11313
|
+
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
11282
11314
|
# }
|
11283
11315
|
#
|
11284
11316
|
# @example Example: To upload an object (specify optional headers)
|
@@ -11301,25 +11333,21 @@ module Aws::S3
|
|
11301
11333
|
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
11302
11334
|
# }
|
11303
11335
|
#
|
11304
|
-
# @example Example: To upload object
|
11336
|
+
# @example Example: To upload an object
|
11305
11337
|
#
|
11306
|
-
# # The following example
|
11307
|
-
# #
|
11338
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
11339
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
11308
11340
|
#
|
11309
11341
|
# resp = client.put_object({
|
11310
|
-
# body: "
|
11342
|
+
# body: "HappyFace.jpg",
|
11311
11343
|
# bucket: "examplebucket",
|
11312
|
-
# key: "
|
11313
|
-
# metadata: {
|
11314
|
-
# "metadata1" => "value1",
|
11315
|
-
# "metadata2" => "value2",
|
11316
|
-
# },
|
11344
|
+
# key: "HappyFace.jpg",
|
11317
11345
|
# })
|
11318
11346
|
#
|
11319
11347
|
# resp.to_h outputs the following:
|
11320
11348
|
# {
|
11321
11349
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11322
|
-
# version_id: "
|
11350
|
+
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
11323
11351
|
# }
|
11324
11352
|
#
|
11325
11353
|
# @example Streaming a file from disk
|
@@ -14061,7 +14089,7 @@ module Aws::S3
|
|
14061
14089
|
params: params,
|
14062
14090
|
config: config)
|
14063
14091
|
context[:gem_name] = 'aws-sdk-s3'
|
14064
|
-
context[:gem_version] = '1.
|
14092
|
+
context[:gem_version] = '1.107.0'
|
14065
14093
|
Seahorse::Client::Request.new(handlers, context)
|
14066
14094
|
end
|
14067
14095
|
|