aws-sdk-s3 1.95.1 → 1.96.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16ec0be28e87b8bcf9b8ce906f10cb817ec7867a8e6860e967b02fcfeed64c48
4
- data.tar.gz: fb356fb5e5a4143671dddfc070d64bebbaf2989490ef6231d92f8bef256b9d8b
3
+ metadata.gz: 5b1326d9efe35d08da2bc1e3a669dc1d9682ba159563be2b63e2417dddfb6d49
4
+ data.tar.gz: 9f59b3c440260c21d464c611d7ecc5214626c8bed29c7c4ef43c1cee3c6093ec
5
5
  SHA512:
6
- metadata.gz: 4b2e0e87de6d178c2410476a64353c17e83098d8c90a0be06deab16cf0b51a4eb85c610f799245a486b12233531cc1dc976dbbbc6f389d35222036f74dab4996
7
- data.tar.gz: c93856e96c180299e6f02a8df02605b008deda57cc912dae19e10cd54aa3c65cfd5ddcd85128ad48bd7287c07c38ff9a62985f65cebaa7874f36570ef563e2c4
6
+ metadata.gz: 43dc42ac70585477f4f3572ff970769a919f654dbf8561ebb0c070b0c1219e5c9ec0d754b6c942e22ecf6a636f0b379074b154ed438f402027b75e660a6b0cc4
7
+ data.tar.gz: aa0415d8e278e7a06bbcef6318c965d8ccb33d2d2fa1a08b2e688b7e76699abe30421c5c900339752a850eb43c9e9bc1bbd43ac1f3e67ff2934f329a84b757a0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.96.0 (2021-06-03)
5
+ ------------------
6
+
7
+ * Feature - S3 Inventory now supports Bucket Key Status
8
+
4
9
  1.95.1 (2021-05-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.95.1
1
+ 1.96.0
data/lib/aws-sdk-s3.rb CHANGED
@@ -69,6 +69,6 @@ require_relative 'aws-sdk-s3/event_streams'
69
69
  # @!group service
70
70
  module Aws::S3
71
71
 
72
- GEM_VERSION = '1.95.1'
72
+ GEM_VERSION = '1.96.0'
73
73
 
74
74
  end
@@ -552,6 +552,7 @@ module Aws::S3
552
552
  # The Object Lock mode that you want to apply to this object.
553
553
  # @option options [Time,DateTime,Date,Integer,String] :object_lock_retain_until_date
554
554
  # The date and time when you want this object's Object Lock to expire.
555
+ # Must be formatted as a timestamp parameter.
555
556
  # @option options [String] :object_lock_legal_hold_status
556
557
  # Specifies whether a legal hold will be applied to this object. For
557
558
  # more information about S3 Object Lock, see [Object Lock][1].
@@ -1421,33 +1421,33 @@ module Aws::S3
1421
1421
  # * {Types::CreateBucketOutput#location #location} => String
1422
1422
  #
1423
1423
  #
1424
- # @example Example: To create a bucket
1424
+ # @example Example: To create a bucket in a specific region
1425
1425
  #
1426
- # # The following example creates a bucket.
1426
+ # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1427
1427
  #
1428
1428
  # resp = client.create_bucket({
1429
1429
  # bucket: "examplebucket",
1430
+ # create_bucket_configuration: {
1431
+ # location_constraint: "eu-west-1",
1432
+ # },
1430
1433
  # })
1431
1434
  #
1432
1435
  # resp.to_h outputs the following:
1433
1436
  # {
1434
- # location: "/examplebucket",
1437
+ # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1435
1438
  # }
1436
1439
  #
1437
- # @example Example: To create a bucket in a specific region
1440
+ # @example Example: To create a bucket
1438
1441
  #
1439
- # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1442
+ # # The following example creates a bucket.
1440
1443
  #
1441
1444
  # resp = client.create_bucket({
1442
1445
  # bucket: "examplebucket",
1443
- # create_bucket_configuration: {
1444
- # location_constraint: "eu-west-1",
1445
- # },
1446
1446
  # })
1447
1447
  #
1448
1448
  # resp.to_h outputs the following:
1449
1449
  # {
1450
- # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1450
+ # location: "/examplebucket",
1451
1451
  # }
1452
1452
  #
1453
1453
  # @example Request syntax with placeholder values
@@ -2847,6 +2847,15 @@ module Aws::S3
2847
2847
  # * {Types::DeleteObjectOutput#request_charged #request_charged} => String
2848
2848
  #
2849
2849
  #
2850
+ # @example Example: To delete an object (from a non-versioned bucket)
2851
+ #
2852
+ # # The following example deletes an object from a non-versioned bucket.
2853
+ #
2854
+ # resp = client.delete_object({
2855
+ # bucket: "ExampleBucket",
2856
+ # key: "HappyFace.jpg",
2857
+ # })
2858
+ #
2850
2859
  # @example Example: To delete an object
2851
2860
  #
2852
2861
  # # The following example deletes an object from an S3 bucket.
@@ -2860,15 +2869,6 @@ module Aws::S3
2860
2869
  # {
2861
2870
  # }
2862
2871
  #
2863
- # @example Example: To delete an object (from a non-versioned bucket)
2864
- #
2865
- # # The following example deletes an object from a non-versioned bucket.
2866
- #
2867
- # resp = client.delete_object({
2868
- # bucket: "ExampleBucket",
2869
- # key: "HappyFace.jpg",
2870
- # })
2871
- #
2872
2872
  # @example Request syntax with placeholder values
2873
2873
  #
2874
2874
  # resp = client.delete_object({
@@ -3129,22 +3129,20 @@ module Aws::S3
3129
3129
  # * {Types::DeleteObjectsOutput#errors #errors} => Array&lt;Types::Error&gt;
3130
3130
  #
3131
3131
  #
3132
- # @example Example: To delete multiple object versions from a versioned bucket
3132
+ # @example Example: To delete multiple objects from a versioned bucket
3133
3133
  #
3134
- # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3135
- # # versions and returns the key and versions of deleted objects in the response.
3134
+ # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3135
+ # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3136
3136
  #
3137
3137
  # resp = client.delete_objects({
3138
3138
  # bucket: "examplebucket",
3139
3139
  # delete: {
3140
3140
  # objects: [
3141
3141
  # {
3142
- # key: "HappyFace.jpg",
3143
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3142
+ # key: "objectkey1",
3144
3143
  # },
3145
3144
  # {
3146
- # key: "HappyFace.jpg",
3147
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3145
+ # key: "objectkey2",
3148
3146
  # },
3149
3147
  # ],
3150
3148
  # quiet: false,
@@ -3155,30 +3153,34 @@ module Aws::S3
3155
3153
  # {
3156
3154
  # deleted: [
3157
3155
  # {
3158
- # key: "HappyFace.jpg",
3159
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3156
+ # delete_marker: true,
3157
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3158
+ # key: "objectkey1",
3160
3159
  # },
3161
3160
  # {
3162
- # key: "HappyFace.jpg",
3163
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3161
+ # delete_marker: true,
3162
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3163
+ # key: "objectkey2",
3164
3164
  # },
3165
3165
  # ],
3166
3166
  # }
3167
3167
  #
3168
- # @example Example: To delete multiple objects from a versioned bucket
3168
+ # @example Example: To delete multiple object versions from a versioned bucket
3169
3169
  #
3170
- # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3171
- # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3170
+ # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3171
+ # # versions and returns the key and versions of deleted objects in the response.
3172
3172
  #
3173
3173
  # resp = client.delete_objects({
3174
3174
  # bucket: "examplebucket",
3175
3175
  # delete: {
3176
3176
  # objects: [
3177
3177
  # {
3178
- # key: "objectkey1",
3178
+ # key: "HappyFace.jpg",
3179
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3179
3180
  # },
3180
3181
  # {
3181
- # key: "objectkey2",
3182
+ # key: "HappyFace.jpg",
3183
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3182
3184
  # },
3183
3185
  # ],
3184
3186
  # quiet: false,
@@ -3189,14 +3191,12 @@ module Aws::S3
3189
3191
  # {
3190
3192
  # deleted: [
3191
3193
  # {
3192
- # delete_marker: true,
3193
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3194
- # key: "objectkey1",
3194
+ # key: "HappyFace.jpg",
3195
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3195
3196
  # },
3196
3197
  # {
3197
- # delete_marker: true,
3198
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3199
- # key: "objectkey2",
3198
+ # key: "HappyFace.jpg",
3199
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3200
3200
  # },
3201
3201
  # ],
3202
3202
  # }
@@ -3807,7 +3807,7 @@ module Aws::S3
3807
3807
  # resp.inventory_configuration.id #=> String
3808
3808
  # resp.inventory_configuration.included_object_versions #=> String, one of "All", "Current"
3809
3809
  # resp.inventory_configuration.optional_fields #=> Array
3810
- # resp.inventory_configuration.optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier"
3810
+ # resp.inventory_configuration.optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier", "BucketKeyStatus"
3811
3811
  # resp.inventory_configuration.schedule.frequency #=> String, one of "Daily", "Weekly"
3812
3812
  #
3813
3813
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfiguration AWS API Documentation
@@ -6872,7 +6872,7 @@ module Aws::S3
6872
6872
  # resp.inventory_configuration_list[0].id #=> String
6873
6873
  # resp.inventory_configuration_list[0].included_object_versions #=> String, one of "All", "Current"
6874
6874
  # resp.inventory_configuration_list[0].optional_fields #=> Array
6875
- # resp.inventory_configuration_list[0].optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier"
6875
+ # resp.inventory_configuration_list[0].optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier", "BucketKeyStatus"
6876
6876
  # resp.inventory_configuration_list[0].schedule.frequency #=> String, one of "Daily", "Weekly"
6877
6877
  # resp.is_truncated #=> Boolean
6878
6878
  # resp.next_continuation_token #=> String
@@ -9069,7 +9069,7 @@ module Aws::S3
9069
9069
  # },
9070
9070
  # id: "InventoryId", # required
9071
9071
  # included_object_versions: "All", # required, accepts All, Current
9072
- # optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier
9072
+ # optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier, BucketKeyStatus
9073
9073
  # schedule: { # required
9074
9074
  # frequency: "Daily", # required, accepts Daily, Weekly
9075
9075
  # },
@@ -10315,11 +10315,12 @@ module Aws::S3
10315
10315
  # values. For example, you can tag several resources with a specific
10316
10316
  # application name, and then organize your billing information to see
10317
10317
  # the total cost of that application across several services. For more
10318
- # information, see [Cost Allocation and Tagging][1].
10318
+ # information, see [Cost Allocation and Tagging][1] and [Using Cost
10319
+ # Allocation in Amazon S3 Bucket Tags][2].
10319
10320
  #
10320
- # <note markdown="1"> Within a bucket, if you add a tag that has the same key as an existing
10321
- # tag, the new value overwrites the old value. For more information, see
10322
- # [Using Cost Allocation in Amazon S3 Bucket Tags][2].
10321
+ # <note markdown="1"> When this operation sets the tags for a bucket, it will overwrite any
10322
+ # current tags the bucket already has. You cannot use this operation to
10323
+ # add tags to an existing list of tags.
10323
10324
  #
10324
10325
  # </note>
10325
10326
  #
@@ -11047,6 +11048,7 @@ module Aws::S3
11047
11048
  #
11048
11049
  # @option params [Time,DateTime,Date,Integer,String] :object_lock_retain_until_date
11049
11050
  # The date and time when you want this object's Object Lock to expire.
11051
+ # Must be formatted as a timestamp parameter.
11050
11052
  #
11051
11053
  # @option params [String] :object_lock_legal_hold_status
11052
11054
  # Specifies whether a legal hold will be applied to this object. For
@@ -11075,6 +11077,23 @@ module Aws::S3
11075
11077
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
11076
11078
  #
11077
11079
  #
11080
+ # @example Example: To upload an object
11081
+ #
11082
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
11083
+ # # syntax. S3 returns VersionId of the newly created object.
11084
+ #
11085
+ # resp = client.put_object({
11086
+ # body: "HappyFace.jpg",
11087
+ # bucket: "examplebucket",
11088
+ # key: "HappyFace.jpg",
11089
+ # })
11090
+ #
11091
+ # resp.to_h outputs the following:
11092
+ # {
11093
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11094
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
11095
+ # }
11096
+ #
11078
11097
  # @example Example: To upload object and specify user-defined metadata
11079
11098
  #
11080
11099
  # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
@@ -11116,21 +11135,20 @@ module Aws::S3
11116
11135
  # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
11117
11136
  # }
11118
11137
  #
11119
- # @example Example: To upload an object
11138
+ # @example Example: To create an object.
11120
11139
  #
11121
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
11122
- # # syntax. S3 returns VersionId of the newly created object.
11140
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
11123
11141
  #
11124
11142
  # resp = client.put_object({
11125
- # body: "HappyFace.jpg",
11143
+ # body: "filetoupload",
11126
11144
  # bucket: "examplebucket",
11127
- # key: "HappyFace.jpg",
11145
+ # key: "objectkey",
11128
11146
  # })
11129
11147
  #
11130
11148
  # resp.to_h outputs the following:
11131
11149
  # {
11132
11150
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11133
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
11151
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
11134
11152
  # }
11135
11153
  #
11136
11154
  # @example Example: To upload an object and specify server-side encryption and object tags
@@ -11171,22 +11189,6 @@ module Aws::S3
11171
11189
  # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
11172
11190
  # }
11173
11191
  #
11174
- # @example Example: To create an object.
11175
- #
11176
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
11177
- #
11178
- # resp = client.put_object({
11179
- # body: "filetoupload",
11180
- # bucket: "examplebucket",
11181
- # key: "objectkey",
11182
- # })
11183
- #
11184
- # resp.to_h outputs the following:
11185
- # {
11186
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11187
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
11188
- # }
11189
- #
11190
11192
  # @example Example: To upload an object and specify canned ACL.
11191
11193
  #
11192
11194
  # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
@@ -13917,7 +13919,7 @@ module Aws::S3
13917
13919
  params: params,
13918
13920
  config: config)
13919
13921
  context[:gem_name] = 'aws-sdk-s3'
13920
- context[:gem_version] = '1.95.1'
13922
+ context[:gem_version] = '1.96.0'
13921
13923
  Seahorse::Client::Request.new(handlers, context)
13922
13924
  end
13923
13925
 
@@ -1308,6 +1308,7 @@ module Aws::S3
1308
1308
  # The Object Lock mode that you want to apply to this object.
1309
1309
  # @option options [Time,DateTime,Date,Integer,String] :object_lock_retain_until_date
1310
1310
  # The date and time when you want this object's Object Lock to expire.
1311
+ # Must be formatted as a timestamp parameter.
1311
1312
  # @option options [String] :object_lock_legal_hold_status
1312
1313
  # Specifies whether a legal hold will be applied to this object. For
1313
1314
  # more information about S3 Object Lock, see [Object Lock][1].
@@ -1051,6 +1051,7 @@ module Aws::S3
1051
1051
  # The Object Lock mode that you want to apply to this object.
1052
1052
  # @option options [Time,DateTime,Date,Integer,String] :object_lock_retain_until_date
1053
1053
  # The date and time when you want this object's Object Lock to expire.
1054
+ # Must be formatted as a timestamp parameter.
1054
1055
  # @option options [String] :object_lock_legal_hold_status
1055
1056
  # Specifies whether a legal hold will be applied to this object. For
1056
1057
  # more information about S3 Object Lock, see [Object Lock][1].
@@ -6927,7 +6927,7 @@ module Aws::S3
6927
6927
  # },
6928
6928
  # id: "InventoryId", # required
6929
6929
  # included_object_versions: "All", # required, accepts All, Current
6930
- # optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier
6930
+ # optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier, BucketKeyStatus
6931
6931
  # schedule: { # required
6932
6932
  # frequency: "Daily", # required, accepts Daily, Weekly
6933
6933
  # },
@@ -10470,7 +10470,7 @@ module Aws::S3
10470
10470
  # },
10471
10471
  # id: "InventoryId", # required
10472
10472
  # included_object_versions: "All", # required, accepts All, Current
10473
- # optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier
10473
+ # optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier, BucketKeyStatus
10474
10474
  # schedule: { # required
10475
10475
  # frequency: "Daily", # required, accepts Daily, Weekly
10476
10476
  # },
@@ -12153,7 +12153,7 @@ module Aws::S3
12153
12153
  #
12154
12154
  # @!attribute [rw] object_lock_retain_until_date
12155
12155
  # The date and time when you want this object's Object Lock to
12156
- # expire.
12156
+ # expire. Must be formatted as a timestamp parameter.
12157
12157
  # @return [Time]
12158
12158
  #
12159
12159
  # @!attribute [rw] object_lock_legal_hold_status
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.95.1
4
+ version: 1.96.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-24 00:00:00.000000000 Z
11
+ date: 2021-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms