aws-sdk-s3 1.178.0 → 1.179.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +69 -69
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ac741952c1e43e01cfb4680f29821e3683b8b3062899f851c065856de45f731
|
4
|
+
data.tar.gz: 4361e953be26ed55d548242e0ae0bcfeaa713bdc0b075cfb7a862125943d93bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc84c634c1f17911bab45dd55886018dcc7be32254f647c49c8f394f886d19b5210eb5ec7f1ba8cabff90e2b2728e5274336a3ab6a3558a60df1e110d97f5dcd
|
7
|
+
data.tar.gz: f8e25035400846cfa1989f6c93ddb4cc12a01f153b6439318badb3daf3cb40f13bceb01d59cbcb95ab67c9988c2a316140c4689cf600165f2c08f6aee96c4173
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.179.0
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -2593,33 +2593,33 @@ module Aws::S3
|
|
2593
2593
|
# * {Types::CreateBucketOutput#location #location} => String
|
2594
2594
|
#
|
2595
2595
|
#
|
2596
|
-
# @example Example: To create a bucket
|
2596
|
+
# @example Example: To create a bucket
|
2597
2597
|
#
|
2598
|
-
# # The following example creates a bucket.
|
2598
|
+
# # The following example creates a bucket.
|
2599
2599
|
#
|
2600
2600
|
# resp = client.create_bucket({
|
2601
2601
|
# bucket: "examplebucket",
|
2602
|
-
# create_bucket_configuration: {
|
2603
|
-
# location_constraint: "eu-west-1",
|
2604
|
-
# },
|
2605
2602
|
# })
|
2606
2603
|
#
|
2607
2604
|
# resp.to_h outputs the following:
|
2608
2605
|
# {
|
2609
|
-
# location: "
|
2606
|
+
# location: "/examplebucket",
|
2610
2607
|
# }
|
2611
2608
|
#
|
2612
|
-
# @example Example: To create a bucket
|
2609
|
+
# @example Example: To create a bucket in a specific region
|
2613
2610
|
#
|
2614
|
-
# # The following example creates a bucket.
|
2611
|
+
# # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
2615
2612
|
#
|
2616
2613
|
# resp = client.create_bucket({
|
2617
2614
|
# bucket: "examplebucket",
|
2615
|
+
# create_bucket_configuration: {
|
2616
|
+
# location_constraint: "eu-west-1",
|
2617
|
+
# },
|
2618
2618
|
# })
|
2619
2619
|
#
|
2620
2620
|
# resp.to_h outputs the following:
|
2621
2621
|
# {
|
2622
|
-
# location: "/
|
2622
|
+
# location: "http://examplebucket.<Region>.s3.amazonaws.com/",
|
2623
2623
|
# }
|
2624
2624
|
#
|
2625
2625
|
# @example Request syntax with placeholder values
|
@@ -5341,6 +5341,15 @@ module Aws::S3
|
|
5341
5341
|
# * {Types::DeleteObjectOutput#request_charged #request_charged} => String
|
5342
5342
|
#
|
5343
5343
|
#
|
5344
|
+
# @example Example: To delete an object (from a non-versioned bucket)
|
5345
|
+
#
|
5346
|
+
# # The following example deletes an object from a non-versioned bucket.
|
5347
|
+
#
|
5348
|
+
# resp = client.delete_object({
|
5349
|
+
# bucket: "ExampleBucket",
|
5350
|
+
# key: "HappyFace.jpg",
|
5351
|
+
# })
|
5352
|
+
#
|
5344
5353
|
# @example Example: To delete an object
|
5345
5354
|
#
|
5346
5355
|
# # The following example deletes an object from an S3 bucket.
|
@@ -5354,15 +5363,6 @@ module Aws::S3
|
|
5354
5363
|
# {
|
5355
5364
|
# }
|
5356
5365
|
#
|
5357
|
-
# @example Example: To delete an object (from a non-versioned bucket)
|
5358
|
-
#
|
5359
|
-
# # The following example deletes an object from a non-versioned bucket.
|
5360
|
-
#
|
5361
|
-
# resp = client.delete_object({
|
5362
|
-
# bucket: "ExampleBucket",
|
5363
|
-
# key: "HappyFace.jpg",
|
5364
|
-
# })
|
5365
|
-
#
|
5366
5366
|
# @example Request syntax with placeholder values
|
5367
5367
|
#
|
5368
5368
|
# resp = client.delete_object({
|
@@ -5780,22 +5780,20 @@ module Aws::S3
|
|
5780
5780
|
# * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
|
5781
5781
|
#
|
5782
5782
|
#
|
5783
|
-
# @example Example: To delete multiple
|
5783
|
+
# @example Example: To delete multiple objects from a versioned bucket
|
5784
5784
|
#
|
5785
|
-
# # The following example deletes objects from a bucket. The
|
5786
|
-
# #
|
5785
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
5786
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
5787
5787
|
#
|
5788
5788
|
# resp = client.delete_objects({
|
5789
5789
|
# bucket: "examplebucket",
|
5790
5790
|
# delete: {
|
5791
5791
|
# objects: [
|
5792
5792
|
# {
|
5793
|
-
# key: "
|
5794
|
-
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
5793
|
+
# key: "objectkey1",
|
5795
5794
|
# },
|
5796
5795
|
# {
|
5797
|
-
# key: "
|
5798
|
-
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
5796
|
+
# key: "objectkey2",
|
5799
5797
|
# },
|
5800
5798
|
# ],
|
5801
5799
|
# quiet: false,
|
@@ -5806,30 +5804,34 @@ module Aws::S3
|
|
5806
5804
|
# {
|
5807
5805
|
# deleted: [
|
5808
5806
|
# {
|
5809
|
-
#
|
5810
|
-
#
|
5807
|
+
# delete_marker: true,
|
5808
|
+
# delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
5809
|
+
# key: "objectkey1",
|
5811
5810
|
# },
|
5812
5811
|
# {
|
5813
|
-
#
|
5814
|
-
#
|
5812
|
+
# delete_marker: true,
|
5813
|
+
# delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
5814
|
+
# key: "objectkey2",
|
5815
5815
|
# },
|
5816
5816
|
# ],
|
5817
5817
|
# }
|
5818
5818
|
#
|
5819
|
-
# @example Example: To delete multiple
|
5819
|
+
# @example Example: To delete multiple object versions from a versioned bucket
|
5820
5820
|
#
|
5821
|
-
# # The following example deletes objects from a bucket. The
|
5822
|
-
# #
|
5821
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
5822
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
5823
5823
|
#
|
5824
5824
|
# resp = client.delete_objects({
|
5825
5825
|
# bucket: "examplebucket",
|
5826
5826
|
# delete: {
|
5827
5827
|
# objects: [
|
5828
5828
|
# {
|
5829
|
-
# key: "
|
5829
|
+
# key: "HappyFace.jpg",
|
5830
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
5830
5831
|
# },
|
5831
5832
|
# {
|
5832
|
-
# key: "
|
5833
|
+
# key: "HappyFace.jpg",
|
5834
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
5833
5835
|
# },
|
5834
5836
|
# ],
|
5835
5837
|
# quiet: false,
|
@@ -5840,14 +5842,12 @@ module Aws::S3
|
|
5840
5842
|
# {
|
5841
5843
|
# deleted: [
|
5842
5844
|
# {
|
5843
|
-
#
|
5844
|
-
#
|
5845
|
-
# key: "objectkey1",
|
5845
|
+
# key: "HappyFace.jpg",
|
5846
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
5846
5847
|
# },
|
5847
5848
|
# {
|
5848
|
-
#
|
5849
|
-
#
|
5850
|
-
# key: "objectkey2",
|
5849
|
+
# key: "HappyFace.jpg",
|
5850
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
5851
5851
|
# },
|
5852
5852
|
# ],
|
5853
5853
|
# }
|
@@ -17103,80 +17103,80 @@ module Aws::S3
|
|
17103
17103
|
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
17104
17104
|
# }
|
17105
17105
|
#
|
17106
|
-
# @example Example: To upload an object
|
17106
|
+
# @example Example: To upload an object and specify optional tags
|
17107
17107
|
#
|
17108
|
-
# # The following example uploads an object
|
17109
|
-
# #
|
17108
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
17109
|
+
# # S3 returns version ID of the newly created object.
|
17110
17110
|
#
|
17111
17111
|
# resp = client.put_object({
|
17112
|
-
# body: "HappyFace.jpg",
|
17112
|
+
# body: "c:\\HappyFace.jpg",
|
17113
17113
|
# bucket: "examplebucket",
|
17114
17114
|
# key: "HappyFace.jpg",
|
17115
|
+
# tagging: "key1=value1&key2=value2",
|
17115
17116
|
# })
|
17116
17117
|
#
|
17117
17118
|
# resp.to_h outputs the following:
|
17118
17119
|
# {
|
17119
17120
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17120
|
-
# version_id: "
|
17121
|
+
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
17121
17122
|
# }
|
17122
17123
|
#
|
17123
|
-
# @example Example: To upload
|
17124
|
+
# @example Example: To upload object and specify user-defined metadata
|
17124
17125
|
#
|
17125
|
-
# # The following example
|
17126
|
-
# #
|
17126
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
17127
|
+
# # enabled, S3 returns version ID in response.
|
17127
17128
|
#
|
17128
17129
|
# resp = client.put_object({
|
17129
17130
|
# body: "filetoupload",
|
17130
17131
|
# bucket: "examplebucket",
|
17131
17132
|
# key: "exampleobject",
|
17132
|
-
#
|
17133
|
-
#
|
17133
|
+
# metadata: {
|
17134
|
+
# "metadata1" => "value1",
|
17135
|
+
# "metadata2" => "value2",
|
17136
|
+
# },
|
17134
17137
|
# })
|
17135
17138
|
#
|
17136
17139
|
# resp.to_h outputs the following:
|
17137
17140
|
# {
|
17138
17141
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17139
|
-
#
|
17140
|
-
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
17142
|
+
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
17141
17143
|
# }
|
17142
17144
|
#
|
17143
|
-
# @example Example: To upload object
|
17145
|
+
# @example Example: To upload an object
|
17144
17146
|
#
|
17145
|
-
# # The following example
|
17146
|
-
# #
|
17147
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
17148
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
17147
17149
|
#
|
17148
17150
|
# resp = client.put_object({
|
17149
|
-
# body: "
|
17151
|
+
# body: "HappyFace.jpg",
|
17150
17152
|
# bucket: "examplebucket",
|
17151
|
-
# key: "
|
17152
|
-
# metadata: {
|
17153
|
-
# "metadata1" => "value1",
|
17154
|
-
# "metadata2" => "value2",
|
17155
|
-
# },
|
17153
|
+
# key: "HappyFace.jpg",
|
17156
17154
|
# })
|
17157
17155
|
#
|
17158
17156
|
# resp.to_h outputs the following:
|
17159
17157
|
# {
|
17160
17158
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17161
|
-
# version_id: "
|
17159
|
+
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
17162
17160
|
# }
|
17163
17161
|
#
|
17164
|
-
# @example Example: To upload an object and specify
|
17162
|
+
# @example Example: To upload an object and specify server-side encryption and object tags
|
17165
17163
|
#
|
17166
|
-
# # The following example uploads an object. The request specifies optional
|
17167
|
-
# # S3 returns version ID
|
17164
|
+
# # The following example uploads an object. The request specifies the optional server-side encryption option. The request
|
17165
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
17168
17166
|
#
|
17169
17167
|
# resp = client.put_object({
|
17170
|
-
# body: "
|
17168
|
+
# body: "filetoupload",
|
17171
17169
|
# bucket: "examplebucket",
|
17172
|
-
# key: "
|
17170
|
+
# key: "exampleobject",
|
17171
|
+
# server_side_encryption: "AES256",
|
17173
17172
|
# tagging: "key1=value1&key2=value2",
|
17174
17173
|
# })
|
17175
17174
|
#
|
17176
17175
|
# resp.to_h outputs the following:
|
17177
17176
|
# {
|
17178
17177
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
17179
|
-
#
|
17178
|
+
# server_side_encryption: "AES256",
|
17179
|
+
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
17180
17180
|
# }
|
17181
17181
|
#
|
17182
17182
|
# @example Example: To upload an object (specify optional headers)
|
@@ -20613,7 +20613,7 @@ module Aws::S3
|
|
20613
20613
|
tracer: tracer
|
20614
20614
|
)
|
20615
20615
|
context[:gem_name] = 'aws-sdk-s3'
|
20616
|
-
context[:gem_version] = '1.
|
20616
|
+
context[:gem_version] = '1.179.0'
|
20617
20617
|
Seahorse::Client::Request.new(handlers, context)
|
20618
20618
|
end
|
20619
20619
|
|
data/lib/aws-sdk-s3.rb
CHANGED
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.
|
4
|
+
version: 1.179.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: 2025-01-
|
11
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|