aws-sdk-s3 1.102.0 → 1.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -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.rb +24 -6
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +4 -2
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +8 -2
- data/lib/aws-sdk-s3/bucket_notification.rb +15 -3
- data/lib/aws-sdk-s3/client.rb +468 -302
- data/lib/aws-sdk-s3/client_api.rb +19 -0
- data/lib/aws-sdk-s3/customizations/object.rb +74 -1
- data/lib/aws-sdk-s3/file_downloader.rb +1 -1
- data/lib/aws-sdk-s3/file_uploader.rb +5 -0
- data/lib/aws-sdk-s3/object.rb +24 -34
- data/lib/aws-sdk-s3/object_summary.rb +16 -16
- data/lib/aws-sdk-s3/object_version.rb +2 -12
- 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/iad_regional_endpoint.rb +6 -0
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +19 -4
- data/lib/aws-sdk-s3/presigned_post.rb +29 -17
- data/lib/aws-sdk-s3/resource.rb +18 -0
- data/lib/aws-sdk-s3/types.rb +322 -153
- 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: 7135385809fecd43db1af321e774082d7033ed91c0a0affcc1bcf702157d6642
|
4
|
+
data.tar.gz: 853b902870e3d5d395b970066e66fc19fc2cbb83fcf3b2df0930a94dc5600116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ff3c7f6ecee4e91933275c7e0d10fb7bac8e6473b3e8c206b41c1ad81307f4b65ea794b095287ac807d091c2b0d414e0e00aef411ab9556c954b43c93eb93cc
|
7
|
+
data.tar.gz: d876c94edf3c2c3286a8c704b8a3dde2c8565dd7f8e9878f3ca5cbac4211f6ac3558dc07cbaecd3beda2a9d151843ac0fb16814eb0301b86c44ed27e975470f5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,76 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.112.0 (2022-02-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.111.3 (2022-01-24)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Fix starts_with fields on `PresignedPost` (#2636).
|
13
|
+
|
14
|
+
1.111.2 (2022-01-20)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Issue - Minor cleanups.
|
18
|
+
|
19
|
+
1.111.1 (2022-01-06)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Issue - Don't fail small files in `upload_file` when `:thread_count` is set. (#2628)
|
23
|
+
|
24
|
+
1.111.0 (2022-01-04)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - Minor doc-based updates based on feedback bugs received.
|
28
|
+
|
29
|
+
1.110.0 (2021-12-21)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
33
|
+
|
34
|
+
1.109.0 (2021-11-30)
|
35
|
+
------------------
|
36
|
+
|
37
|
+
* Feature - Introduce Amazon S3 Glacier Instant Retrieval storage class and a new setting in S3 Object Ownership to disable ACLs for bucket and the objects in it.
|
38
|
+
|
39
|
+
1.108.0 (2021-11-29)
|
40
|
+
------------------
|
41
|
+
|
42
|
+
* Feature - Amazon S3 Event Notifications adds Amazon EventBridge as a destination and supports additional event types. The PutBucketNotificationConfiguration API can now skip validation of Amazon SQS, Amazon SNS and AWS Lambda destinations.
|
43
|
+
|
44
|
+
1.107.0 (2021-11-23)
|
45
|
+
------------------
|
46
|
+
|
47
|
+
* 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.
|
48
|
+
|
49
|
+
1.106.0 (2021-11-17)
|
50
|
+
------------------
|
51
|
+
|
52
|
+
* Feature - Add `presigned_request` method to `Aws::S3::Object`.
|
53
|
+
|
54
|
+
1.105.1 (2021-11-05)
|
55
|
+
------------------
|
56
|
+
|
57
|
+
* Issue - Raise error when `use_fips_endpoint` is used with `use_accelerate_endpoint`.
|
58
|
+
|
59
|
+
1.105.0 (2021-11-04)
|
60
|
+
------------------
|
61
|
+
|
62
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
63
|
+
|
64
|
+
1.104.0 (2021-10-18)
|
65
|
+
------------------
|
66
|
+
|
67
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
68
|
+
|
69
|
+
1.103.0 (2021-09-16)
|
70
|
+
------------------
|
71
|
+
|
72
|
+
* Feature - Add support for access point arn filtering in S3 CW Request Metrics
|
73
|
+
|
4
74
|
1.102.0 (2021-09-02)
|
5
75
|
------------------
|
6
76
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.112.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?(
|
data/lib/aws-sdk-s3/bucket.rb
CHANGED
@@ -231,6 +231,7 @@ module Aws::S3
|
|
231
231
|
# grant_write: "GrantWrite",
|
232
232
|
# grant_write_acp: "GrantWriteACP",
|
233
233
|
# object_lock_enabled_for_bucket: false,
|
234
|
+
# object_ownership: "BucketOwnerPreferred", # accepts BucketOwnerPreferred, ObjectWriter, BucketOwnerEnforced
|
234
235
|
# })
|
235
236
|
# @param [Hash] options ({})
|
236
237
|
# @option options [String] :acl
|
@@ -254,6 +255,23 @@ module Aws::S3
|
|
254
255
|
# @option options [Boolean] :object_lock_enabled_for_bucket
|
255
256
|
# Specifies whether you want S3 Object Lock to be enabled for the new
|
256
257
|
# bucket.
|
258
|
+
# @option options [String] :object_ownership
|
259
|
+
# The container element for object ownership for a bucket's ownership
|
260
|
+
# controls.
|
261
|
+
#
|
262
|
+
# BucketOwnerPreferred - Objects uploaded to the bucket change ownership
|
263
|
+
# to the bucket owner if the objects are uploaded with the
|
264
|
+
# `bucket-owner-full-control` canned ACL.
|
265
|
+
#
|
266
|
+
# ObjectWriter - The uploading account will own the object if the object
|
267
|
+
# is uploaded with the `bucket-owner-full-control` canned ACL.
|
268
|
+
#
|
269
|
+
# BucketOwnerEnforced - Access control lists (ACLs) are disabled and no
|
270
|
+
# longer affect permissions. The bucket owner automatically owns and has
|
271
|
+
# full control over every object in the bucket. The bucket only accepts
|
272
|
+
# PUT requests that don't specify an ACL or bucket owner full control
|
273
|
+
# ACLs, such as the `bucket-owner-full-control` canned ACL or an
|
274
|
+
# equivalent form of this ACL expressed in the XML format.
|
257
275
|
# @return [Types::CreateBucketOutput]
|
258
276
|
def create(options = {})
|
259
277
|
options = options.merge(bucket: @name)
|
@@ -350,7 +368,7 @@ module Aws::S3
|
|
350
368
|
# "MetadataKey" => "MetadataValue",
|
351
369
|
# },
|
352
370
|
# server_side_encryption: "AES256", # accepts AES256, aws:kms
|
353
|
-
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
|
371
|
+
# storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
|
354
372
|
# website_redirect_location: "WebsiteRedirectLocation",
|
355
373
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
356
374
|
# sse_customer_key: "SSECustomerKey",
|
@@ -517,12 +535,12 @@ module Aws::S3
|
|
517
535
|
# If `x-amz-server-side-encryption` is present and has the value of
|
518
536
|
# `aws:kms`, this header specifies the ID of the Amazon Web Services Key
|
519
537
|
# Management Service (Amazon Web Services KMS) symmetrical customer
|
520
|
-
# managed
|
521
|
-
#
|
538
|
+
# managed key that was used for the object. If you specify
|
539
|
+
# `x-amz-server-side-encryption:aws:kms`, but do not provide`
|
522
540
|
# x-amz-server-side-encryption-aws-kms-key-id`, Amazon S3 uses the
|
523
|
-
# Amazon Web Services managed
|
524
|
-
#
|
525
|
-
#
|
541
|
+
# Amazon Web Services managed key to protect the data. If the KMS key
|
542
|
+
# does not exist in the same account issuing the command, you must use
|
543
|
+
# the full ARN and not just the ID.
|
526
544
|
# @option options [String] :ssekms_encryption_context
|
527
545
|
# Specifies the Amazon Web Services KMS Encryption Context to use for
|
528
546
|
# object encryption. The value of this header is a base64-encoded UTF-8
|
@@ -209,14 +209,16 @@ module Aws::S3
|
|
209
209
|
# transition: {
|
210
210
|
# date: Time.now,
|
211
211
|
# days: 1,
|
212
|
-
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
212
|
+
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
|
213
213
|
# },
|
214
214
|
# noncurrent_version_transition: {
|
215
215
|
# noncurrent_days: 1,
|
216
|
-
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
216
|
+
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
|
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
|
@@ -225,17 +229,19 @@ module Aws::S3
|
|
225
229
|
# {
|
226
230
|
# date: Time.now,
|
227
231
|
# days: 1,
|
228
|
-
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
232
|
+
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
|
229
233
|
# },
|
230
234
|
# ],
|
231
235
|
# noncurrent_version_transitions: [
|
232
236
|
# {
|
233
237
|
# noncurrent_days: 1,
|
234
|
-
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
|
238
|
+
# storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
|
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,
|
@@ -55,6 +55,12 @@ module Aws::S3
|
|
55
55
|
data[:lambda_function_configurations]
|
56
56
|
end
|
57
57
|
|
58
|
+
# Enables delivery of events to Amazon EventBridge.
|
59
|
+
# @return [Types::EventBridgeConfiguration]
|
60
|
+
def event_bridge_configuration
|
61
|
+
data[:event_bridge_configuration]
|
62
|
+
end
|
63
|
+
|
58
64
|
# @!endgroup
|
59
65
|
|
60
66
|
# @return [Client]
|
@@ -197,7 +203,7 @@ module Aws::S3
|
|
197
203
|
# {
|
198
204
|
# id: "NotificationId",
|
199
205
|
# topic_arn: "TopicArn", # required
|
200
|
-
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold
|
206
|
+
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete
|
201
207
|
# filter: {
|
202
208
|
# key: {
|
203
209
|
# filter_rules: [
|
@@ -214,7 +220,7 @@ module Aws::S3
|
|
214
220
|
# {
|
215
221
|
# id: "NotificationId",
|
216
222
|
# queue_arn: "QueueArn", # required
|
217
|
-
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold
|
223
|
+
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete
|
218
224
|
# filter: {
|
219
225
|
# key: {
|
220
226
|
# filter_rules: [
|
@@ -231,7 +237,7 @@ module Aws::S3
|
|
231
237
|
# {
|
232
238
|
# id: "NotificationId",
|
233
239
|
# lambda_function_arn: "LambdaFunctionArn", # required
|
234
|
-
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold
|
240
|
+
# events: ["s3:ReducedRedundancyLostObject"], # required, accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete
|
235
241
|
# filter: {
|
236
242
|
# key: {
|
237
243
|
# filter_rules: [
|
@@ -244,8 +250,11 @@ module Aws::S3
|
|
244
250
|
# },
|
245
251
|
# },
|
246
252
|
# ],
|
253
|
+
# event_bridge_configuration: {
|
254
|
+
# },
|
247
255
|
# },
|
248
256
|
# expected_bucket_owner: "AccountId",
|
257
|
+
# skip_destination_validation: false,
|
249
258
|
# })
|
250
259
|
# @param [Hash] options ({})
|
251
260
|
# @option options [required, Types::NotificationConfiguration] :notification_configuration
|
@@ -256,6 +265,9 @@ module Aws::S3
|
|
256
265
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
257
266
|
# a different account, the request will fail with an HTTP `403 (Access
|
258
267
|
# Denied)` error.
|
268
|
+
# @option options [Boolean] :skip_destination_validation
|
269
|
+
# Skips validation of Amazon SQS, Amazon SNS, and Lambda destinations.
|
270
|
+
# True or false value.
|
259
271
|
# @return [EmptyStructure]
|
260
272
|
def put(options = {})
|
261
273
|
options = options.merge(bucket: @bucket_name)
|