aws-sdk-s3 1.90.0 → 1.91.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: 3e7f229604fb8ffa169e8d122bdac0e306d1739be124106862024ce5889e10de
4
- data.tar.gz: 45411e0ddfdfa82c76f867000ee9de584fc52ff05c0a9e4d749f77da1e441854
3
+ metadata.gz: 636ac1e884ea1d364e0b61e983f2909ca410a2ae75dc47bff647702fe44b50b9
4
+ data.tar.gz: d346da52b018b74a81dcbe6562484b549fc510839df04ddf5f8be3a7a293c08b
5
5
  SHA512:
6
- metadata.gz: 7db6575ad201c928df6d8a1ef9d28dd4288f8861cc9dc5f0ba6577d8124cccc0164b658fad130ea87c1607e1e8fe242756e24062e9ce5e2e9e3b73d1305a8d4e
7
- data.tar.gz: 1bda5b778b9b4fbcdd167a2796341afdc14e73edbfbc835f36f578f9cc35d17c9b1e00259f5809ce7bf783f6f6a11474297744fef256302f0b400ce7ac1a0291
6
+ metadata.gz: ad99171231e4947f5ba29716d83af34a1caa45ed08a32c09ef824cb1ef9d723de8a9e0722d3c05c9cbaabf4dda4fbc300f84bd84b765a16ae51c21633fa8e358
7
+ data.tar.gz: fb2ec2f3d14b98adcc4111dd615b27f19498d509321beb9f7d944bec4375ff374a06c5931806205226387cdc7f4e604ebd3f9e0182b515093bb7f29431f1b3ca
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.91.0 (2021-03-10)
5
+ ------------------
6
+
7
+ * Feature - Adding ID element to the CORSRule schema
8
+
4
9
  1.90.0 (2021-03-08)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.90.0
1
+ 1.91.0
data/lib/aws-sdk-s3.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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.90.0'
72
+ GEM_VERSION = '1.91.0'
73
73
 
74
74
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -198,6 +198,7 @@ module Aws::S3
198
198
  # cors_configuration: { # required
199
199
  # cors_rules: [ # required
200
200
  # {
201
+ # id: "ID",
201
202
  # allowed_headers: ["AllowedHeader"],
202
203
  # allowed_methods: ["AllowedMethod"], # required
203
204
  # allowed_origins: ["AllowedOrigin"], # required
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -2840,15 +2840,6 @@ module Aws::S3
2840
2840
  # * {Types::DeleteObjectOutput#request_charged #request_charged} => String
2841
2841
  #
2842
2842
  #
2843
- # @example Example: To delete an object (from a non-versioned bucket)
2844
- #
2845
- # # The following example deletes an object from a non-versioned bucket.
2846
- #
2847
- # resp = client.delete_object({
2848
- # bucket: "ExampleBucket",
2849
- # key: "HappyFace.jpg",
2850
- # })
2851
- #
2852
2843
  # @example Example: To delete an object
2853
2844
  #
2854
2845
  # # The following example deletes an object from an S3 bucket.
@@ -2862,6 +2853,15 @@ module Aws::S3
2862
2853
  # {
2863
2854
  # }
2864
2855
  #
2856
+ # @example Example: To delete an object (from a non-versioned bucket)
2857
+ #
2858
+ # # The following example deletes an object from a non-versioned bucket.
2859
+ #
2860
+ # resp = client.delete_object({
2861
+ # bucket: "ExampleBucket",
2862
+ # key: "HappyFace.jpg",
2863
+ # })
2864
+ #
2865
2865
  # @example Request syntax with placeholder values
2866
2866
  #
2867
2867
  # resp = client.delete_object({
@@ -3122,22 +3122,20 @@ module Aws::S3
3122
3122
  # * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
3123
3123
  #
3124
3124
  #
3125
- # @example Example: To delete multiple object versions from a versioned bucket
3125
+ # @example Example: To delete multiple objects from a versioned bucket
3126
3126
  #
3127
- # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3128
- # # versions and returns the key and versions of deleted objects in the response.
3127
+ # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3128
+ # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3129
3129
  #
3130
3130
  # resp = client.delete_objects({
3131
3131
  # bucket: "examplebucket",
3132
3132
  # delete: {
3133
3133
  # objects: [
3134
3134
  # {
3135
- # key: "HappyFace.jpg",
3136
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3135
+ # key: "objectkey1",
3137
3136
  # },
3138
3137
  # {
3139
- # key: "HappyFace.jpg",
3140
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3138
+ # key: "objectkey2",
3141
3139
  # },
3142
3140
  # ],
3143
3141
  # quiet: false,
@@ -3148,30 +3146,34 @@ module Aws::S3
3148
3146
  # {
3149
3147
  # deleted: [
3150
3148
  # {
3151
- # key: "HappyFace.jpg",
3152
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3149
+ # delete_marker: true,
3150
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3151
+ # key: "objectkey1",
3153
3152
  # },
3154
3153
  # {
3155
- # key: "HappyFace.jpg",
3156
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3154
+ # delete_marker: true,
3155
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3156
+ # key: "objectkey2",
3157
3157
  # },
3158
3158
  # ],
3159
3159
  # }
3160
3160
  #
3161
- # @example Example: To delete multiple objects from a versioned bucket
3161
+ # @example Example: To delete multiple object versions from a versioned bucket
3162
3162
  #
3163
- # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3164
- # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3163
+ # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3164
+ # # versions and returns the key and versions of deleted objects in the response.
3165
3165
  #
3166
3166
  # resp = client.delete_objects({
3167
3167
  # bucket: "examplebucket",
3168
3168
  # delete: {
3169
3169
  # objects: [
3170
3170
  # {
3171
- # key: "objectkey1",
3171
+ # key: "HappyFace.jpg",
3172
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3172
3173
  # },
3173
3174
  # {
3174
- # key: "objectkey2",
3175
+ # key: "HappyFace.jpg",
3176
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3175
3177
  # },
3176
3178
  # ],
3177
3179
  # quiet: false,
@@ -3182,14 +3184,12 @@ module Aws::S3
3182
3184
  # {
3183
3185
  # deleted: [
3184
3186
  # {
3185
- # delete_marker: true,
3186
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3187
- # key: "objectkey1",
3187
+ # key: "HappyFace.jpg",
3188
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3188
3189
  # },
3189
3190
  # {
3190
- # delete_marker: true,
3191
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3192
- # key: "objectkey2",
3191
+ # key: "HappyFace.jpg",
3192
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3193
3193
  # },
3194
3194
  # ],
3195
3195
  # }
@@ -3570,6 +3570,7 @@ module Aws::S3
3570
3570
  # @example Response structure
3571
3571
  #
3572
3572
  # resp.cors_rules #=> Array
3573
+ # resp.cors_rules[0].id #=> String
3573
3574
  # resp.cors_rules[0].allowed_headers #=> Array
3574
3575
  # resp.cors_rules[0].allowed_headers[0] #=> String
3575
3576
  # resp.cors_rules[0].allowed_methods #=> Array
@@ -5374,49 +5375,49 @@ module Aws::S3
5374
5375
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
5375
5376
  #
5376
5377
  #
5377
- # @example Example: To retrieve an object
5378
+ # @example Example: To retrieve a byte range of an object
5378
5379
  #
5379
- # # The following example retrieves an object for an S3 bucket.
5380
+ # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5381
+ # # specific byte range.
5380
5382
  #
5381
5383
  # resp = client.get_object({
5382
5384
  # bucket: "examplebucket",
5383
- # key: "HappyFace.jpg",
5385
+ # key: "SampleFile.txt",
5386
+ # range: "bytes=0-9",
5384
5387
  # })
5385
5388
  #
5386
5389
  # resp.to_h outputs the following:
5387
5390
  # {
5388
5391
  # accept_ranges: "bytes",
5389
- # content_length: 3191,
5390
- # content_type: "image/jpeg",
5391
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5392
- # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5392
+ # content_length: 10,
5393
+ # content_range: "bytes 0-9/43",
5394
+ # content_type: "text/plain",
5395
+ # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5396
+ # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5393
5397
  # metadata: {
5394
5398
  # },
5395
- # tag_count: 2,
5396
5399
  # version_id: "null",
5397
5400
  # }
5398
5401
  #
5399
- # @example Example: To retrieve a byte range of an object
5402
+ # @example Example: To retrieve an object
5400
5403
  #
5401
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5402
- # # specific byte range.
5404
+ # # The following example retrieves an object for an S3 bucket.
5403
5405
  #
5404
5406
  # resp = client.get_object({
5405
5407
  # bucket: "examplebucket",
5406
- # key: "SampleFile.txt",
5407
- # range: "bytes=0-9",
5408
+ # key: "HappyFace.jpg",
5408
5409
  # })
5409
5410
  #
5410
5411
  # resp.to_h outputs the following:
5411
5412
  # {
5412
5413
  # accept_ranges: "bytes",
5413
- # content_length: 10,
5414
- # content_range: "bytes 0-9/43",
5415
- # content_type: "text/plain",
5416
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5417
- # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5414
+ # content_length: 3191,
5415
+ # content_type: "image/jpeg",
5416
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5417
+ # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5418
5418
  # metadata: {
5419
5419
  # },
5420
+ # tag_count: 2,
5420
5421
  # version_id: "null",
5421
5422
  # }
5422
5423
  #
@@ -7178,97 +7179,97 @@ module Aws::S3
7178
7179
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7179
7180
  #
7180
7181
  #
7181
- # @example Example: To list in-progress multipart uploads on a bucket
7182
+ # @example Example: List next set of multipart uploads when previous result is truncated
7182
7183
  #
7183
- # # The following example lists in-progress multipart uploads on a specific bucket.
7184
+ # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
7185
+ # # setup of multipart uploads.
7184
7186
  #
7185
7187
  # resp = client.list_multipart_uploads({
7186
7188
  # bucket: "examplebucket",
7189
+ # key_marker: "nextkeyfrompreviousresponse",
7190
+ # max_uploads: 2,
7191
+ # upload_id_marker: "valuefrompreviousresponse",
7187
7192
  # })
7188
7193
  #
7189
7194
  # resp.to_h outputs the following:
7190
7195
  # {
7196
+ # bucket: "acl1",
7197
+ # is_truncated: true,
7198
+ # key_marker: "",
7199
+ # max_uploads: 2,
7200
+ # next_key_marker: "someobjectkey",
7201
+ # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7202
+ # upload_id_marker: "",
7191
7203
  # uploads: [
7192
7204
  # {
7193
7205
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
7194
7206
  # initiator: {
7195
- # display_name: "display-name",
7207
+ # display_name: "ownder-display-name",
7196
7208
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7197
7209
  # },
7198
7210
  # key: "JavaFile",
7199
7211
  # owner: {
7200
- # display_name: "display-name",
7201
- # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7212
+ # display_name: "mohanataws",
7213
+ # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7202
7214
  # },
7203
7215
  # storage_class: "STANDARD",
7204
- # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7216
+ # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7205
7217
  # },
7206
7218
  # {
7207
7219
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7208
7220
  # initiator: {
7209
- # display_name: "display-name",
7221
+ # display_name: "ownder-display-name",
7210
7222
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7211
7223
  # },
7212
7224
  # key: "JavaFile",
7213
7225
  # owner: {
7214
- # display_name: "display-name",
7226
+ # display_name: "ownder-display-name",
7215
7227
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7216
7228
  # },
7217
7229
  # storage_class: "STANDARD",
7218
- # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7230
+ # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7219
7231
  # },
7220
7232
  # ],
7221
7233
  # }
7222
7234
  #
7223
- # @example Example: List next set of multipart uploads when previous result is truncated
7235
+ # @example Example: To list in-progress multipart uploads on a bucket
7224
7236
  #
7225
- # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
7226
- # # setup of multipart uploads.
7237
+ # # The following example lists in-progress multipart uploads on a specific bucket.
7227
7238
  #
7228
7239
  # resp = client.list_multipart_uploads({
7229
7240
  # bucket: "examplebucket",
7230
- # key_marker: "nextkeyfrompreviousresponse",
7231
- # max_uploads: 2,
7232
- # upload_id_marker: "valuefrompreviousresponse",
7233
7241
  # })
7234
7242
  #
7235
7243
  # resp.to_h outputs the following:
7236
7244
  # {
7237
- # bucket: "acl1",
7238
- # is_truncated: true,
7239
- # key_marker: "",
7240
- # max_uploads: 2,
7241
- # next_key_marker: "someobjectkey",
7242
- # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7243
- # upload_id_marker: "",
7244
7245
  # uploads: [
7245
7246
  # {
7246
7247
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
7247
7248
  # initiator: {
7248
- # display_name: "ownder-display-name",
7249
+ # display_name: "display-name",
7249
7250
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7250
7251
  # },
7251
7252
  # key: "JavaFile",
7252
7253
  # owner: {
7253
- # display_name: "mohanataws",
7254
- # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7254
+ # display_name: "display-name",
7255
+ # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7255
7256
  # },
7256
7257
  # storage_class: "STANDARD",
7257
- # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7258
+ # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7258
7259
  # },
7259
7260
  # {
7260
7261
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7261
7262
  # initiator: {
7262
- # display_name: "ownder-display-name",
7263
+ # display_name: "display-name",
7263
7264
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7264
7265
  # },
7265
7266
  # key: "JavaFile",
7266
7267
  # owner: {
7267
- # display_name: "ownder-display-name",
7268
+ # display_name: "display-name",
7268
7269
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7269
7270
  # },
7270
7271
  # storage_class: "STANDARD",
7271
- # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7272
+ # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7272
7273
  # },
7273
7274
  # ],
7274
7275
  # }
@@ -8704,6 +8705,7 @@ module Aws::S3
8704
8705
  # cors_configuration: { # required
8705
8706
  # cors_rules: [ # required
8706
8707
  # {
8708
+ # id: "ID",
8707
8709
  # allowed_headers: ["AllowedHeader"],
8708
8710
  # allowed_methods: ["AllowedMethod"], # required
8709
8711
  # allowed_origins: ["AllowedOrigin"], # required
@@ -11068,134 +11070,134 @@ module Aws::S3
11068
11070
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
11069
11071
  #
11070
11072
  #
11071
- # @example Example: To upload an object
11073
+ # @example Example: To upload an object and specify optional tags
11072
11074
  #
11073
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
11074
- # # syntax. S3 returns VersionId of the newly created object.
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.
11075
11077
  #
11076
11078
  # resp = client.put_object({
11077
- # body: "HappyFace.jpg",
11079
+ # body: "c:\\HappyFace.jpg",
11078
11080
  # bucket: "examplebucket",
11079
11081
  # key: "HappyFace.jpg",
11082
+ # tagging: "key1=value1&key2=value2",
11080
11083
  # })
11081
11084
  #
11082
11085
  # resp.to_h outputs the following:
11083
11086
  # {
11084
11087
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11085
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
11088
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
11086
11089
  # }
11087
11090
  #
11088
- # @example Example: To upload an object and specify server-side encryption and object tags
11091
+ # @example Example: To upload an object and specify canned ACL.
11089
11092
  #
11090
- # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
11091
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
11093
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
11094
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
11092
11095
  #
11093
11096
  # resp = client.put_object({
11097
+ # acl: "authenticated-read",
11094
11098
  # body: "filetoupload",
11095
11099
  # bucket: "examplebucket",
11096
11100
  # key: "exampleobject",
11097
- # server_side_encryption: "AES256",
11098
- # tagging: "key1=value1&key2=value2",
11099
11101
  # })
11100
11102
  #
11101
11103
  # resp.to_h outputs the following:
11102
11104
  # {
11103
11105
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11104
- # server_side_encryption: "AES256",
11105
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
11106
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
11106
11107
  # }
11107
11108
  #
11108
- # @example Example: To upload an object (specify optional headers)
11109
+ # @example Example: To create an object.
11109
11110
  #
11110
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
11111
- # # storage class and use server-side encryption.
11111
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
11112
11112
  #
11113
11113
  # resp = client.put_object({
11114
- # body: "HappyFace.jpg",
11114
+ # body: "filetoupload",
11115
11115
  # bucket: "examplebucket",
11116
- # key: "HappyFace.jpg",
11117
- # server_side_encryption: "AES256",
11118
- # storage_class: "STANDARD_IA",
11116
+ # key: "objectkey",
11119
11117
  # })
11120
11118
  #
11121
11119
  # resp.to_h outputs the following:
11122
11120
  # {
11123
11121
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11124
- # server_side_encryption: "AES256",
11125
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
11122
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
11126
11123
  # }
11127
11124
  #
11128
- # @example Example: To create an object.
11125
+ # @example Example: To upload an object and specify server-side encryption and object tags
11129
11126
  #
11130
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
11127
+ # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
11128
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
11131
11129
  #
11132
11130
  # resp = client.put_object({
11133
11131
  # body: "filetoupload",
11134
11132
  # bucket: "examplebucket",
11135
- # key: "objectkey",
11133
+ # key: "exampleobject",
11134
+ # server_side_encryption: "AES256",
11135
+ # tagging: "key1=value1&key2=value2",
11136
11136
  # })
11137
11137
  #
11138
11138
  # resp.to_h outputs the following:
11139
11139
  # {
11140
11140
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11141
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
11141
+ # server_side_encryption: "AES256",
11142
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
11142
11143
  # }
11143
11144
  #
11144
- # @example Example: To upload an object and specify canned ACL.
11145
+ # @example Example: To upload object and specify user-defined metadata
11145
11146
  #
11146
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
11147
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
11147
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
11148
+ # # enabled, S3 returns version ID in response.
11148
11149
  #
11149
11150
  # resp = client.put_object({
11150
- # acl: "authenticated-read",
11151
11151
  # body: "filetoupload",
11152
11152
  # bucket: "examplebucket",
11153
11153
  # key: "exampleobject",
11154
+ # metadata: {
11155
+ # "metadata1" => "value1",
11156
+ # "metadata2" => "value2",
11157
+ # },
11154
11158
  # })
11155
11159
  #
11156
11160
  # resp.to_h outputs the following:
11157
11161
  # {
11158
11162
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11159
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
11163
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
11160
11164
  # }
11161
11165
  #
11162
- # @example Example: To upload an object and specify optional tags
11166
+ # @example Example: To upload an object
11163
11167
  #
11164
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
11165
- # # S3 returns version ID of the newly created object.
11168
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
11169
+ # # syntax. S3 returns VersionId of the newly created object.
11166
11170
  #
11167
11171
  # resp = client.put_object({
11168
- # body: "c:\\HappyFace.jpg",
11172
+ # body: "HappyFace.jpg",
11169
11173
  # bucket: "examplebucket",
11170
11174
  # key: "HappyFace.jpg",
11171
- # tagging: "key1=value1&key2=value2",
11172
11175
  # })
11173
11176
  #
11174
11177
  # resp.to_h outputs the following:
11175
11178
  # {
11176
11179
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11177
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
11180
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
11178
11181
  # }
11179
11182
  #
11180
- # @example Example: To upload object and specify user-defined metadata
11183
+ # @example Example: To upload an object (specify optional headers)
11181
11184
  #
11182
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
11183
- # # enabled, S3 returns version ID in response.
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.
11184
11187
  #
11185
11188
  # resp = client.put_object({
11186
- # body: "filetoupload",
11189
+ # body: "HappyFace.jpg",
11187
11190
  # bucket: "examplebucket",
11188
- # key: "exampleobject",
11189
- # metadata: {
11190
- # "metadata1" => "value1",
11191
- # "metadata2" => "value2",
11192
- # },
11191
+ # key: "HappyFace.jpg",
11192
+ # server_side_encryption: "AES256",
11193
+ # storage_class: "STANDARD_IA",
11193
11194
  # })
11194
11195
  #
11195
11196
  # resp.to_h outputs the following:
11196
11197
  # {
11197
11198
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11198
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
11199
+ # server_side_encryption: "AES256",
11200
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
11199
11201
  # }
11200
11202
  #
11201
11203
  # @example Streaming a file from disk
@@ -13632,7 +13634,7 @@ module Aws::S3
13632
13634
  params: params,
13633
13635
  config: config)
13634
13636
  context[:gem_name] = 'aws-sdk-s3'
13635
- context[:gem_version] = '1.90.0'
13637
+ context[:gem_version] = '1.91.0'
13636
13638
  Seahorse::Client::Request.new(handlers, context)
13637
13639
  end
13638
13640
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -634,6 +634,7 @@ module Aws::S3
634
634
  CORSConfiguration.add_member(:cors_rules, Shapes::ShapeRef.new(shape: CORSRules, required: true, location_name: "CORSRule"))
635
635
  CORSConfiguration.struct_class = Types::CORSConfiguration
636
636
 
637
+ CORSRule.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "ID"))
637
638
  CORSRule.add_member(:allowed_headers, Shapes::ShapeRef.new(shape: AllowedHeaders, location_name: "AllowedHeader"))
638
639
  CORSRule.add_member(:allowed_methods, Shapes::ShapeRef.new(shape: AllowedMethods, required: true, location_name: "AllowedMethod"))
639
640
  CORSRule.add_member(:allowed_origins, Shapes::ShapeRef.new(shape: AllowedOrigins, required: true, location_name: "AllowedOrigin"))
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -621,6 +621,7 @@ module Aws::S3
621
621
  # {
622
622
  # cors_rules: [ # required
623
623
  # {
624
+ # id: "ID",
624
625
  # allowed_headers: ["AllowedHeader"],
625
626
  # allowed_methods: ["AllowedMethod"], # required
626
627
  # allowed_origins: ["AllowedOrigin"], # required
@@ -649,6 +650,7 @@ module Aws::S3
649
650
  # data as a hash:
650
651
  #
651
652
  # {
653
+ # id: "ID",
652
654
  # allowed_headers: ["AllowedHeader"],
653
655
  # allowed_methods: ["AllowedMethod"], # required
654
656
  # allowed_origins: ["AllowedOrigin"], # required
@@ -656,6 +658,11 @@ module Aws::S3
656
658
  # max_age_seconds: 1,
657
659
  # }
658
660
  #
661
+ # @!attribute [rw] id
662
+ # Unique identifier for the rule. The value cannot be longer than 255
663
+ # characters.
664
+ # @return [String]
665
+ #
659
666
  # @!attribute [rw] allowed_headers
660
667
  # Headers that are specified in the `Access-Control-Request-Headers`
661
668
  # header. These headers are allowed in a preflight OPTIONS request. In
@@ -687,6 +694,7 @@ module Aws::S3
687
694
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CORSRule AWS API Documentation
688
695
  #
689
696
  class CORSRule < Struct.new(
697
+ :id,
690
698
  :allowed_headers,
691
699
  :allowed_methods,
692
700
  :allowed_origins,
@@ -10245,6 +10253,7 @@ module Aws::S3
10245
10253
  # cors_configuration: { # required
10246
10254
  # cors_rules: [ # required
10247
10255
  # {
10256
+ # id: "ID",
10248
10257
  # allowed_headers: ["AllowedHeader"],
10249
10258
  # allowed_methods: ["AllowedMethod"], # required
10250
10259
  # allowed_origins: ["AllowedOrigin"], # required
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
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.90.0
4
+ version: 1.91.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms