aws-sdk-s3 1.165.0 → 1.167.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +12 -12
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +38 -1
- data/lib/aws-sdk-s3/bucket_policy.rb +4 -4
- data/lib/aws-sdk-s3/client.rb +186 -159
- data/lib/aws-sdk-s3/client_api.rb +8 -1
- data/lib/aws-sdk-s3/multipart_upload.rb +4 -4
- data/lib/aws-sdk-s3/multipart_upload_part.rb +8 -8
- data/lib/aws-sdk-s3/object.rb +14 -14
- data/lib/aws-sdk-s3/object_summary.rb +12 -12
- data/lib/aws-sdk-s3/object_version.rb +4 -4
- data/lib/aws-sdk-s3/types.rb +108 -44
- data/lib/aws-sdk-s3.rb +3 -1
- data/sig/bucket_lifecycle_configuration.rbs +7 -3
- data/sig/client.rbs +9 -3
- data/sig/types.rbs +7 -0
- metadata +2 -2
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -57,8 +57,6 @@ require 'aws-sdk-s3/plugins/streaming_retry.rb'
|
|
57
57
|
require 'aws-sdk-s3/plugins/url_encoded_keys.rb'
|
58
58
|
require 'aws-sdk-core/plugins/event_stream_configuration.rb'
|
59
59
|
|
60
|
-
Aws::Plugins::GlobalConfiguration.add_identifier(:s3)
|
61
|
-
|
62
60
|
module Aws::S3
|
63
61
|
# An API client for S3. To construct a client, you need to configure a `:region` and `:credentials`.
|
64
62
|
#
|
@@ -951,9 +949,9 @@ module Aws::S3
|
|
951
949
|
# @option params [String] :checksum_crc32
|
952
950
|
# This header can be used as a data integrity check to verify that the
|
953
951
|
# data received is the same data that was originally sent. This header
|
954
|
-
# specifies the base64-encoded, 32-bit
|
955
|
-
# more information, see [Checking object integrity][1] in the
|
956
|
-
# User Guide*.
|
952
|
+
# specifies the base64-encoded, 32-bit CRC-32 checksum of the object.
|
953
|
+
# For more information, see [Checking object integrity][1] in the
|
954
|
+
# *Amazon S3 User Guide*.
|
957
955
|
#
|
958
956
|
#
|
959
957
|
#
|
@@ -962,7 +960,7 @@ module Aws::S3
|
|
962
960
|
# @option params [String] :checksum_crc32c
|
963
961
|
# This header can be used as a data integrity check to verify that the
|
964
962
|
# data received is the same data that was originally sent. This header
|
965
|
-
# specifies the base64-encoded, 32-bit
|
963
|
+
# specifies the base64-encoded, 32-bit CRC-32C checksum of the object.
|
966
964
|
# For more information, see [Checking object integrity][1] in the
|
967
965
|
# *Amazon S3 User Guide*.
|
968
966
|
#
|
@@ -4962,15 +4960,6 @@ module Aws::S3
|
|
4962
4960
|
# * {Types::DeleteObjectOutput#request_charged #request_charged} => String
|
4963
4961
|
#
|
4964
4962
|
#
|
4965
|
-
# @example Example: To delete an object (from a non-versioned bucket)
|
4966
|
-
#
|
4967
|
-
# # The following example deletes an object from a non-versioned bucket.
|
4968
|
-
#
|
4969
|
-
# resp = client.delete_object({
|
4970
|
-
# bucket: "ExampleBucket",
|
4971
|
-
# key: "HappyFace.jpg",
|
4972
|
-
# })
|
4973
|
-
#
|
4974
4963
|
# @example Example: To delete an object
|
4975
4964
|
#
|
4976
4965
|
# # The following example deletes an object from an S3 bucket.
|
@@ -4984,6 +4973,15 @@ module Aws::S3
|
|
4984
4973
|
# {
|
4985
4974
|
# }
|
4986
4975
|
#
|
4976
|
+
# @example Example: To delete an object (from a non-versioned bucket)
|
4977
|
+
#
|
4978
|
+
# # The following example deletes an object from a non-versioned bucket.
|
4979
|
+
#
|
4980
|
+
# resp = client.delete_object({
|
4981
|
+
# bucket: "ExampleBucket",
|
4982
|
+
# key: "HappyFace.jpg",
|
4983
|
+
# })
|
4984
|
+
#
|
4987
4985
|
# @example Request syntax with placeholder values
|
4988
4986
|
#
|
4989
4987
|
# resp = client.delete_object({
|
@@ -5362,13 +5360,13 @@ module Aws::S3
|
|
5362
5360
|
# For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
|
5363
5361
|
# the supported algorithm from the following list:
|
5364
5362
|
#
|
5365
|
-
# * CRC32
|
5363
|
+
# * `CRC32`
|
5366
5364
|
#
|
5367
|
-
# * CRC32C
|
5365
|
+
# * `CRC32C`
|
5368
5366
|
#
|
5369
|
-
# * SHA1
|
5367
|
+
# * `SHA1`
|
5370
5368
|
#
|
5371
|
-
# * SHA256
|
5369
|
+
# * `SHA256`
|
5372
5370
|
#
|
5373
5371
|
# For more information, see [Checking object integrity][1] in the
|
5374
5372
|
# *Amazon S3 User Guide*.
|
@@ -5393,22 +5391,20 @@ module Aws::S3
|
|
5393
5391
|
# * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
|
5394
5392
|
#
|
5395
5393
|
#
|
5396
|
-
# @example Example: To delete multiple
|
5394
|
+
# @example Example: To delete multiple objects from a versioned bucket
|
5397
5395
|
#
|
5398
|
-
# # The following example deletes objects from a bucket. The
|
5399
|
-
# #
|
5396
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
5397
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
5400
5398
|
#
|
5401
5399
|
# resp = client.delete_objects({
|
5402
5400
|
# bucket: "examplebucket",
|
5403
5401
|
# delete: {
|
5404
5402
|
# objects: [
|
5405
5403
|
# {
|
5406
|
-
# key: "
|
5407
|
-
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
5404
|
+
# key: "objectkey1",
|
5408
5405
|
# },
|
5409
5406
|
# {
|
5410
|
-
# key: "
|
5411
|
-
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
5407
|
+
# key: "objectkey2",
|
5412
5408
|
# },
|
5413
5409
|
# ],
|
5414
5410
|
# quiet: false,
|
@@ -5419,30 +5415,34 @@ module Aws::S3
|
|
5419
5415
|
# {
|
5420
5416
|
# deleted: [
|
5421
5417
|
# {
|
5422
|
-
#
|
5423
|
-
#
|
5418
|
+
# delete_marker: true,
|
5419
|
+
# delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
5420
|
+
# key: "objectkey1",
|
5424
5421
|
# },
|
5425
5422
|
# {
|
5426
|
-
#
|
5427
|
-
#
|
5423
|
+
# delete_marker: true,
|
5424
|
+
# delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
5425
|
+
# key: "objectkey2",
|
5428
5426
|
# },
|
5429
5427
|
# ],
|
5430
5428
|
# }
|
5431
5429
|
#
|
5432
|
-
# @example Example: To delete multiple
|
5430
|
+
# @example Example: To delete multiple object versions from a versioned bucket
|
5433
5431
|
#
|
5434
|
-
# # The following example deletes objects from a bucket. The
|
5435
|
-
# #
|
5432
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
5433
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
5436
5434
|
#
|
5437
5435
|
# resp = client.delete_objects({
|
5438
5436
|
# bucket: "examplebucket",
|
5439
5437
|
# delete: {
|
5440
5438
|
# objects: [
|
5441
5439
|
# {
|
5442
|
-
# key: "
|
5440
|
+
# key: "HappyFace.jpg",
|
5441
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
5443
5442
|
# },
|
5444
5443
|
# {
|
5445
|
-
# key: "
|
5444
|
+
# key: "HappyFace.jpg",
|
5445
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
5446
5446
|
# },
|
5447
5447
|
# ],
|
5448
5448
|
# quiet: false,
|
@@ -5453,14 +5453,12 @@ module Aws::S3
|
|
5453
5453
|
# {
|
5454
5454
|
# deleted: [
|
5455
5455
|
# {
|
5456
|
-
#
|
5457
|
-
#
|
5458
|
-
# key: "objectkey1",
|
5456
|
+
# key: "HappyFace.jpg",
|
5457
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
5459
5458
|
# },
|
5460
5459
|
# {
|
5461
|
-
#
|
5462
|
-
#
|
5463
|
-
# key: "objectkey2",
|
5460
|
+
# key: "HappyFace.jpg",
|
5461
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
5464
5462
|
# },
|
5465
5463
|
# ],
|
5466
5464
|
# }
|
@@ -6429,6 +6427,7 @@ module Aws::S3
|
|
6429
6427
|
# @return [Types::GetBucketLifecycleConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6430
6428
|
#
|
6431
6429
|
# * {Types::GetBucketLifecycleConfigurationOutput#rules #rules} => Array<Types::LifecycleRule>
|
6430
|
+
# * {Types::GetBucketLifecycleConfigurationOutput#transition_default_minimum_object_size #transition_default_minimum_object_size} => String
|
6432
6431
|
#
|
6433
6432
|
#
|
6434
6433
|
# @example Example: To get lifecycle configuration on a bucket
|
@@ -6494,6 +6493,7 @@ module Aws::S3
|
|
6494
6493
|
# resp.rules[0].noncurrent_version_expiration.noncurrent_days #=> Integer
|
6495
6494
|
# resp.rules[0].noncurrent_version_expiration.newer_noncurrent_versions #=> Integer
|
6496
6495
|
# resp.rules[0].abort_incomplete_multipart_upload.days_after_initiation #=> Integer
|
6496
|
+
# resp.transition_default_minimum_object_size #=> String, one of "varies_by_storage_class", "all_storage_classes_128K"
|
6497
6497
|
#
|
6498
6498
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfiguration AWS API Documentation
|
6499
6499
|
#
|
@@ -8233,49 +8233,49 @@ module Aws::S3
|
|
8233
8233
|
# * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
|
8234
8234
|
#
|
8235
8235
|
#
|
8236
|
-
# @example Example: To retrieve an object
|
8236
|
+
# @example Example: To retrieve a byte range of an object
|
8237
8237
|
#
|
8238
|
-
# # The following example retrieves an object for an S3 bucket.
|
8238
|
+
# # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
|
8239
|
+
# # specific byte range.
|
8239
8240
|
#
|
8240
8241
|
# resp = client.get_object({
|
8241
8242
|
# bucket: "examplebucket",
|
8242
|
-
# key: "
|
8243
|
+
# key: "SampleFile.txt",
|
8244
|
+
# range: "bytes=0-9",
|
8243
8245
|
# })
|
8244
8246
|
#
|
8245
8247
|
# resp.to_h outputs the following:
|
8246
8248
|
# {
|
8247
8249
|
# accept_ranges: "bytes",
|
8248
|
-
# content_length:
|
8249
|
-
#
|
8250
|
-
#
|
8251
|
-
#
|
8250
|
+
# content_length: 10,
|
8251
|
+
# content_range: "bytes 0-9/43",
|
8252
|
+
# content_type: "text/plain",
|
8253
|
+
# etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
8254
|
+
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
8252
8255
|
# metadata: {
|
8253
8256
|
# },
|
8254
|
-
# tag_count: 2,
|
8255
8257
|
# version_id: "null",
|
8256
8258
|
# }
|
8257
8259
|
#
|
8258
|
-
# @example Example: To retrieve
|
8260
|
+
# @example Example: To retrieve an object
|
8259
8261
|
#
|
8260
|
-
# # The following example retrieves an object for an S3 bucket.
|
8261
|
-
# # specific byte range.
|
8262
|
+
# # The following example retrieves an object for an S3 bucket.
|
8262
8263
|
#
|
8263
8264
|
# resp = client.get_object({
|
8264
8265
|
# bucket: "examplebucket",
|
8265
|
-
# key: "
|
8266
|
-
# range: "bytes=0-9",
|
8266
|
+
# key: "HappyFace.jpg",
|
8267
8267
|
# })
|
8268
8268
|
#
|
8269
8269
|
# resp.to_h outputs the following:
|
8270
8270
|
# {
|
8271
8271
|
# accept_ranges: "bytes",
|
8272
|
-
# content_length:
|
8273
|
-
#
|
8274
|
-
#
|
8275
|
-
#
|
8276
|
-
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
8272
|
+
# content_length: 3191,
|
8273
|
+
# content_type: "image/jpeg",
|
8274
|
+
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
8275
|
+
# last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
|
8277
8276
|
# metadata: {
|
8278
8277
|
# },
|
8278
|
+
# tag_count: 2,
|
8279
8279
|
# version_id: "null",
|
8280
8280
|
# }
|
8281
8281
|
#
|
@@ -9291,49 +9291,49 @@ module Aws::S3
|
|
9291
9291
|
# * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
|
9292
9292
|
#
|
9293
9293
|
#
|
9294
|
-
# @example Example: To retrieve tag set of
|
9294
|
+
# @example Example: To retrieve tag set of an object
|
9295
9295
|
#
|
9296
|
-
# # The following example retrieves tag set of an object.
|
9296
|
+
# # The following example retrieves tag set of an object.
|
9297
9297
|
#
|
9298
9298
|
# resp = client.get_object_tagging({
|
9299
9299
|
# bucket: "examplebucket",
|
9300
|
-
# key: "
|
9301
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
9300
|
+
# key: "HappyFace.jpg",
|
9302
9301
|
# })
|
9303
9302
|
#
|
9304
9303
|
# resp.to_h outputs the following:
|
9305
9304
|
# {
|
9306
9305
|
# tag_set: [
|
9307
9306
|
# {
|
9308
|
-
# key: "
|
9309
|
-
# value: "
|
9307
|
+
# key: "Key4",
|
9308
|
+
# value: "Value4",
|
9309
|
+
# },
|
9310
|
+
# {
|
9311
|
+
# key: "Key3",
|
9312
|
+
# value: "Value3",
|
9310
9313
|
# },
|
9311
9314
|
# ],
|
9312
|
-
# version_id: "
|
9315
|
+
# version_id: "null",
|
9313
9316
|
# }
|
9314
9317
|
#
|
9315
|
-
# @example Example: To retrieve tag set of
|
9318
|
+
# @example Example: To retrieve tag set of a specific object version
|
9316
9319
|
#
|
9317
|
-
# # The following example retrieves tag set of an object.
|
9320
|
+
# # The following example retrieves tag set of an object. The request specifies object version.
|
9318
9321
|
#
|
9319
9322
|
# resp = client.get_object_tagging({
|
9320
9323
|
# bucket: "examplebucket",
|
9321
|
-
# key: "
|
9324
|
+
# key: "exampleobject",
|
9325
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
9322
9326
|
# })
|
9323
9327
|
#
|
9324
9328
|
# resp.to_h outputs the following:
|
9325
9329
|
# {
|
9326
9330
|
# tag_set: [
|
9327
9331
|
# {
|
9328
|
-
# key: "
|
9329
|
-
# value: "
|
9330
|
-
# },
|
9331
|
-
# {
|
9332
|
-
# key: "Key3",
|
9333
|
-
# value: "Value3",
|
9332
|
+
# key: "Key1",
|
9333
|
+
# value: "Value1",
|
9334
9334
|
# },
|
9335
9335
|
# ],
|
9336
|
-
# version_id: "
|
9336
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
9337
9337
|
# }
|
9338
9338
|
#
|
9339
9339
|
# @example Request syntax with placeholder values
|
@@ -9739,7 +9739,11 @@ module Aws::S3
|
|
9739
9739
|
# have the `s3:GetObject` permission. You need the relevant read
|
9740
9740
|
# object (or version) permission for this operation. For more
|
9741
9741
|
# information, see [Actions, resources, and condition keys for
|
9742
|
-
# Amazon S3][2] in the *Amazon S3 User Guide*.
|
9742
|
+
# Amazon S3][2] in the *Amazon S3 User Guide*. For more information
|
9743
|
+
# about the permissions to S3 API operations by S3 resource types,
|
9744
|
+
# see [Required permissions for Amazon S3 API
|
9745
|
+
# operations](/AmazonS3/latest/userguide/using-with-s3-policy-actions.html)
|
9746
|
+
# in the *Amazon S3 User Guide*.
|
9743
9747
|
#
|
9744
9748
|
# If the object you request doesn't exist, the error that Amazon S3
|
9745
9749
|
# returns depends on whether you also have the `s3:ListBucket`
|
@@ -13751,23 +13755,22 @@ module Aws::S3
|
|
13751
13755
|
# lifecycle configuration. For information about lifecycle
|
13752
13756
|
# configuration, see [Managing your storage lifecycle][1].
|
13753
13757
|
#
|
13754
|
-
# <note markdown="1"> Bucket lifecycle configuration now supports specifying a lifecycle
|
13755
|
-
# rule using an object key name prefix, one or more object tags, object
|
13756
|
-
# size, or any combination of these. Accordingly, this section describes
|
13757
|
-
# the latest API. The previous version of the API supported filtering
|
13758
|
-
# based only on an object key name prefix, which is supported for
|
13759
|
-
# backward compatibility. For the related API description, see
|
13760
|
-
# [PutBucketLifecycle][2].
|
13761
|
-
#
|
13762
|
-
# </note>
|
13763
|
-
#
|
13764
13758
|
# Rules
|
13765
13759
|
#
|
13766
13760
|
# : You specify the lifecycle configuration in your request body. The
|
13767
13761
|
# lifecycle configuration is specified as XML consisting of one or
|
13768
13762
|
# more rules. An Amazon S3 Lifecycle configuration can have up to
|
13769
|
-
# 1,000 rules. This limit is not adjustable.
|
13770
|
-
#
|
13763
|
+
# 1,000 rules. This limit is not adjustable.
|
13764
|
+
#
|
13765
|
+
# Bucket lifecycle configuration supports specifying a lifecycle rule
|
13766
|
+
# using an object key name prefix, one or more object tags, object
|
13767
|
+
# size, or any combination of these. Accordingly, this section
|
13768
|
+
# describes the latest API. The previous version of the API supported
|
13769
|
+
# filtering based only on an object key name prefix, which is
|
13770
|
+
# supported for backward compatibility. For the related API
|
13771
|
+
# description, see [PutBucketLifecycle][2].
|
13772
|
+
#
|
13773
|
+
# A lifecycle rule consists of the following:
|
13771
13774
|
#
|
13772
13775
|
# * A filter identifying a subset of objects to which the rule
|
13773
13776
|
# applies. The filter can be based on a key name prefix, object
|
@@ -13858,7 +13861,26 @@ module Aws::S3
|
|
13858
13861
|
# you provide does not match the actual owner of the bucket, the request
|
13859
13862
|
# fails with the HTTP status code `403 Forbidden` (access denied).
|
13860
13863
|
#
|
13861
|
-
# @
|
13864
|
+
# @option params [String] :transition_default_minimum_object_size
|
13865
|
+
# Indicates which default minimum object size behavior is applied to the
|
13866
|
+
# lifecycle configuration.
|
13867
|
+
#
|
13868
|
+
# * `all_storage_classes_128K` - Objects smaller than 128 KB will not
|
13869
|
+
# transition to any storage class by default.
|
13870
|
+
#
|
13871
|
+
# * `varies_by_storage_class` - Objects smaller than 128 KB will
|
13872
|
+
# transition to Glacier Flexible Retrieval or Glacier Deep Archive
|
13873
|
+
# storage classes. By default, all other storage classes will prevent
|
13874
|
+
# transitions smaller than 128 KB.
|
13875
|
+
#
|
13876
|
+
# To customize the minimum object size for any transition you can add a
|
13877
|
+
# filter that specifies a custom `ObjectSizeGreaterThan` or
|
13878
|
+
# `ObjectSizeLessThan` in the body of your transition rule. Custom
|
13879
|
+
# filters always take precedence over the default transition behavior.
|
13880
|
+
#
|
13881
|
+
# @return [Types::PutBucketLifecycleConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
13882
|
+
#
|
13883
|
+
# * {Types::PutBucketLifecycleConfigurationOutput#transition_default_minimum_object_size #transition_default_minimum_object_size} => String
|
13862
13884
|
#
|
13863
13885
|
#
|
13864
13886
|
# @example Example: Put bucket lifecycle
|
@@ -13950,8 +13972,13 @@ module Aws::S3
|
|
13950
13972
|
# ],
|
13951
13973
|
# },
|
13952
13974
|
# expected_bucket_owner: "AccountId",
|
13975
|
+
# transition_default_minimum_object_size: "varies_by_storage_class", # accepts varies_by_storage_class, all_storage_classes_128K
|
13953
13976
|
# })
|
13954
13977
|
#
|
13978
|
+
# @example Response structure
|
13979
|
+
#
|
13980
|
+
# resp.transition_default_minimum_object_size #=> String, one of "varies_by_storage_class", "all_storage_classes_128K"
|
13981
|
+
#
|
13955
13982
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfiguration AWS API Documentation
|
13956
13983
|
#
|
13957
13984
|
# @overload put_bucket_lifecycle_configuration(params = {})
|
@@ -14704,13 +14731,13 @@ module Aws::S3
|
|
14704
14731
|
# For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
|
14705
14732
|
# the supported algorithm from the following list:
|
14706
14733
|
#
|
14707
|
-
# * CRC32
|
14734
|
+
# * `CRC32`
|
14708
14735
|
#
|
14709
|
-
# * CRC32C
|
14736
|
+
# * `CRC32C`
|
14710
14737
|
#
|
14711
|
-
# * SHA1
|
14738
|
+
# * `SHA1`
|
14712
14739
|
#
|
14713
|
-
# * SHA256
|
14740
|
+
# * `SHA256`
|
14714
14741
|
#
|
14715
14742
|
# For more information, see [Checking object integrity][1] in the
|
14716
14743
|
# *Amazon S3 User Guide*.
|
@@ -15885,13 +15912,13 @@ module Aws::S3
|
|
15885
15912
|
# For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
|
15886
15913
|
# the supported algorithm from the following list:
|
15887
15914
|
#
|
15888
|
-
# * CRC32
|
15915
|
+
# * `CRC32`
|
15889
15916
|
#
|
15890
|
-
# * CRC32C
|
15917
|
+
# * `CRC32C`
|
15891
15918
|
#
|
15892
|
-
# * SHA1
|
15919
|
+
# * `SHA1`
|
15893
15920
|
#
|
15894
|
-
# * SHA256
|
15921
|
+
# * `SHA256`
|
15895
15922
|
#
|
15896
15923
|
# For more information, see [Checking object integrity][1] in the
|
15897
15924
|
# *Amazon S3 User Guide*.
|
@@ -15914,9 +15941,9 @@ module Aws::S3
|
|
15914
15941
|
# @option params [String] :checksum_crc32
|
15915
15942
|
# This header can be used as a data integrity check to verify that the
|
15916
15943
|
# data received is the same data that was originally sent. This header
|
15917
|
-
# specifies the base64-encoded, 32-bit
|
15918
|
-
# more information, see [Checking object integrity][1] in the
|
15919
|
-
# User Guide*.
|
15944
|
+
# specifies the base64-encoded, 32-bit CRC-32 checksum of the object.
|
15945
|
+
# For more information, see [Checking object integrity][1] in the
|
15946
|
+
# *Amazon S3 User Guide*.
|
15920
15947
|
#
|
15921
15948
|
#
|
15922
15949
|
#
|
@@ -15925,7 +15952,7 @@ module Aws::S3
|
|
15925
15952
|
# @option params [String] :checksum_crc32c
|
15926
15953
|
# This header can be used as a data integrity check to verify that the
|
15927
15954
|
# data received is the same data that was originally sent. This header
|
15928
|
-
# specifies the base64-encoded, 32-bit
|
15955
|
+
# specifies the base64-encoded, 32-bit CRC-32C checksum of the object.
|
15929
15956
|
# For more information, see [Checking object integrity][1] in the
|
15930
15957
|
# *Amazon S3 User Guide*.
|
15931
15958
|
#
|
@@ -16323,22 +16350,22 @@ module Aws::S3
|
|
16323
16350
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
16324
16351
|
#
|
16325
16352
|
#
|
16326
|
-
# @example Example: To upload an object and specify
|
16353
|
+
# @example Example: To upload an object and specify canned ACL.
|
16327
16354
|
#
|
16328
|
-
# # The following example uploads
|
16329
|
-
# # S3 returns version ID
|
16355
|
+
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
16356
|
+
# # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
16330
16357
|
#
|
16331
16358
|
# resp = client.put_object({
|
16332
|
-
#
|
16359
|
+
# acl: "authenticated-read",
|
16360
|
+
# body: "filetoupload",
|
16333
16361
|
# bucket: "examplebucket",
|
16334
|
-
# key: "
|
16335
|
-
# tagging: "key1=value1&key2=value2",
|
16362
|
+
# key: "exampleobject",
|
16336
16363
|
# })
|
16337
16364
|
#
|
16338
16365
|
# resp.to_h outputs the following:
|
16339
16366
|
# {
|
16340
16367
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
16341
|
-
# version_id: "
|
16368
|
+
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
16342
16369
|
# }
|
16343
16370
|
#
|
16344
16371
|
# @example Example: To create an object.
|
@@ -16357,42 +16384,39 @@ module Aws::S3
|
|
16357
16384
|
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
16358
16385
|
# }
|
16359
16386
|
#
|
16360
|
-
# @example Example: To upload object
|
16387
|
+
# @example Example: To upload an object
|
16361
16388
|
#
|
16362
|
-
# # The following example
|
16363
|
-
# #
|
16389
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
16390
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
16364
16391
|
#
|
16365
16392
|
# resp = client.put_object({
|
16366
|
-
# body: "
|
16393
|
+
# body: "HappyFace.jpg",
|
16367
16394
|
# bucket: "examplebucket",
|
16368
|
-
# key: "
|
16369
|
-
# metadata: {
|
16370
|
-
# "metadata1" => "value1",
|
16371
|
-
# "metadata2" => "value2",
|
16372
|
-
# },
|
16395
|
+
# key: "HappyFace.jpg",
|
16373
16396
|
# })
|
16374
16397
|
#
|
16375
16398
|
# resp.to_h outputs the following:
|
16376
16399
|
# {
|
16377
16400
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
16378
|
-
# version_id: "
|
16401
|
+
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
16379
16402
|
# }
|
16380
16403
|
#
|
16381
|
-
# @example Example: To upload an object
|
16404
|
+
# @example Example: To upload an object and specify optional tags
|
16382
16405
|
#
|
16383
|
-
# # The following example uploads an object
|
16384
|
-
# #
|
16406
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
16407
|
+
# # S3 returns version ID of the newly created object.
|
16385
16408
|
#
|
16386
16409
|
# resp = client.put_object({
|
16387
|
-
# body: "HappyFace.jpg",
|
16410
|
+
# body: "c:\\HappyFace.jpg",
|
16388
16411
|
# bucket: "examplebucket",
|
16389
16412
|
# key: "HappyFace.jpg",
|
16413
|
+
# tagging: "key1=value1&key2=value2",
|
16390
16414
|
# })
|
16391
16415
|
#
|
16392
16416
|
# resp.to_h outputs the following:
|
16393
16417
|
# {
|
16394
16418
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
16395
|
-
# version_id: "
|
16419
|
+
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
16396
16420
|
# }
|
16397
16421
|
#
|
16398
16422
|
# @example Example: To upload an object and specify server-side encryption and object tags
|
@@ -16415,42 +16439,45 @@ module Aws::S3
|
|
16415
16439
|
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
16416
16440
|
# }
|
16417
16441
|
#
|
16418
|
-
# @example Example: To upload an object
|
16442
|
+
# @example Example: To upload an object (specify optional headers)
|
16419
16443
|
#
|
16420
|
-
# # The following example uploads
|
16421
|
-
# #
|
16444
|
+
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
16445
|
+
# # storage class and use server-side encryption.
|
16422
16446
|
#
|
16423
16447
|
# resp = client.put_object({
|
16424
|
-
#
|
16425
|
-
# body: "filetoupload",
|
16448
|
+
# body: "HappyFace.jpg",
|
16426
16449
|
# bucket: "examplebucket",
|
16427
|
-
# key: "
|
16450
|
+
# key: "HappyFace.jpg",
|
16451
|
+
# server_side_encryption: "AES256",
|
16452
|
+
# storage_class: "STANDARD_IA",
|
16428
16453
|
# })
|
16429
16454
|
#
|
16430
16455
|
# resp.to_h outputs the following:
|
16431
16456
|
# {
|
16432
16457
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
16433
|
-
#
|
16458
|
+
# server_side_encryption: "AES256",
|
16459
|
+
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
16434
16460
|
# }
|
16435
16461
|
#
|
16436
|
-
# @example Example: To upload
|
16462
|
+
# @example Example: To upload object and specify user-defined metadata
|
16437
16463
|
#
|
16438
|
-
# # The following example
|
16439
|
-
# #
|
16464
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
16465
|
+
# # enabled, S3 returns version ID in response.
|
16440
16466
|
#
|
16441
16467
|
# resp = client.put_object({
|
16442
|
-
# body: "
|
16468
|
+
# body: "filetoupload",
|
16443
16469
|
# bucket: "examplebucket",
|
16444
|
-
# key: "
|
16445
|
-
#
|
16446
|
-
#
|
16470
|
+
# key: "exampleobject",
|
16471
|
+
# metadata: {
|
16472
|
+
# "metadata1" => "value1",
|
16473
|
+
# "metadata2" => "value2",
|
16474
|
+
# },
|
16447
16475
|
# })
|
16448
16476
|
#
|
16449
16477
|
# resp.to_h outputs the following:
|
16450
16478
|
# {
|
16451
16479
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
16452
|
-
#
|
16453
|
-
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
16480
|
+
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
16454
16481
|
# }
|
16455
16482
|
#
|
16456
16483
|
# @example Streaming a file from disk
|
@@ -18654,9 +18681,9 @@ module Aws::S3
|
|
18654
18681
|
# @option params [String] :checksum_crc32
|
18655
18682
|
# This header can be used as a data integrity check to verify that the
|
18656
18683
|
# data received is the same data that was originally sent. This header
|
18657
|
-
# specifies the base64-encoded, 32-bit
|
18658
|
-
# more information, see [Checking object integrity][1] in the
|
18659
|
-
# User Guide*.
|
18684
|
+
# specifies the base64-encoded, 32-bit CRC-32 checksum of the object.
|
18685
|
+
# For more information, see [Checking object integrity][1] in the
|
18686
|
+
# *Amazon S3 User Guide*.
|
18660
18687
|
#
|
18661
18688
|
#
|
18662
18689
|
#
|
@@ -18665,7 +18692,7 @@ module Aws::S3
|
|
18665
18692
|
# @option params [String] :checksum_crc32c
|
18666
18693
|
# This header can be used as a data integrity check to verify that the
|
18667
18694
|
# data received is the same data that was originally sent. This header
|
18668
|
-
# specifies the base64-encoded, 32-bit
|
18695
|
+
# specifies the base64-encoded, 32-bit CRC-32C checksum of the object.
|
18669
18696
|
# For more information, see [Checking object integrity][1] in the
|
18670
18697
|
# *Amazon S3 User Guide*.
|
18671
18698
|
#
|
@@ -19314,45 +19341,45 @@ module Aws::S3
|
|
19314
19341
|
# * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
|
19315
19342
|
#
|
19316
19343
|
#
|
19317
|
-
# @example Example: To upload a part by copying
|
19344
|
+
# @example Example: To upload a part by copying data from an existing object as data source
|
19318
19345
|
#
|
19319
|
-
# # The following example uploads a part of a multipart upload by copying
|
19320
|
-
# # data source.
|
19346
|
+
# # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
19321
19347
|
#
|
19322
19348
|
# resp = client.upload_part_copy({
|
19323
19349
|
# bucket: "examplebucket",
|
19324
19350
|
# copy_source: "/bucketname/sourceobjectkey",
|
19325
|
-
# copy_source_range: "bytes=1-100000",
|
19326
19351
|
# key: "examplelargeobject",
|
19327
|
-
# part_number:
|
19352
|
+
# part_number: 1,
|
19328
19353
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
19329
19354
|
# })
|
19330
19355
|
#
|
19331
19356
|
# resp.to_h outputs the following:
|
19332
19357
|
# {
|
19333
19358
|
# copy_part_result: {
|
19334
|
-
# etag: "\"
|
19335
|
-
# last_modified: Time.parse("2016-12-29T21:
|
19359
|
+
# etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
19360
|
+
# last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
|
19336
19361
|
# },
|
19337
19362
|
# }
|
19338
19363
|
#
|
19339
|
-
# @example Example: To upload a part by copying
|
19364
|
+
# @example Example: To upload a part by copying byte range from an existing object as data source
|
19340
19365
|
#
|
19341
|
-
# # The following example uploads a part of a multipart upload by copying
|
19366
|
+
# # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
|
19367
|
+
# # data source.
|
19342
19368
|
#
|
19343
19369
|
# resp = client.upload_part_copy({
|
19344
19370
|
# bucket: "examplebucket",
|
19345
19371
|
# copy_source: "/bucketname/sourceobjectkey",
|
19372
|
+
# copy_source_range: "bytes=1-100000",
|
19346
19373
|
# key: "examplelargeobject",
|
19347
|
-
# part_number:
|
19374
|
+
# part_number: 2,
|
19348
19375
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
19349
19376
|
# })
|
19350
19377
|
#
|
19351
19378
|
# resp.to_h outputs the following:
|
19352
19379
|
# {
|
19353
19380
|
# copy_part_result: {
|
19354
|
-
# etag: "\"
|
19355
|
-
# last_modified: Time.parse("2016-12-29T21:
|
19381
|
+
# etag: "\"65d16d19e65a7508a51f043180edcc36\"",
|
19382
|
+
# last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
|
19356
19383
|
# },
|
19357
19384
|
# }
|
19358
19385
|
#
|
@@ -19551,7 +19578,7 @@ module Aws::S3
|
|
19551
19578
|
# @option params [String] :checksum_crc32
|
19552
19579
|
# This header can be used as a data integrity check to verify that the
|
19553
19580
|
# data received is the same data that was originally sent. This
|
19554
|
-
# specifies the base64-encoded, 32-bit
|
19581
|
+
# specifies the base64-encoded, 32-bit CRC-32 checksum of the object
|
19555
19582
|
# returned by the Object Lambda function. This may not match the
|
19556
19583
|
# checksum for the object stored in Amazon S3. Amazon S3 will perform
|
19557
19584
|
# validation of the checksum values only when the original `GetObject`
|
@@ -19571,7 +19598,7 @@ module Aws::S3
|
|
19571
19598
|
# @option params [String] :checksum_crc32c
|
19572
19599
|
# This header can be used as a data integrity check to verify that the
|
19573
19600
|
# data received is the same data that was originally sent. This
|
19574
|
-
# specifies the base64-encoded, 32-bit
|
19601
|
+
# specifies the base64-encoded, 32-bit CRC-32C checksum of the object
|
19575
19602
|
# returned by the Object Lambda function. This may not match the
|
19576
19603
|
# checksum for the object stored in Amazon S3. Amazon S3 will perform
|
19577
19604
|
# validation of the checksum values only when the original `GetObject`
|
@@ -19814,7 +19841,7 @@ module Aws::S3
|
|
19814
19841
|
tracer: tracer
|
19815
19842
|
)
|
19816
19843
|
context[:gem_name] = 'aws-sdk-s3'
|
19817
|
-
context[:gem_version] = '1.
|
19844
|
+
context[:gem_version] = '1.167.0'
|
19818
19845
|
Seahorse::Client::Request.new(handlers, context)
|
19819
19846
|
end
|
19820
19847
|
|