aws-sdk-s3 1.27.0 → 1.28.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
  SHA1:
3
- metadata.gz: 811350d803009da0123b7b5a578e652a7909fd29
4
- data.tar.gz: c24aeeef3d1eda5470c42dba4bf5cd1b170abbd7
3
+ metadata.gz: f11309286c6a4419584e8354fd858a38a27d1bf0
4
+ data.tar.gz: 01af8d883dfa9855230f500c13273858297dfb19
5
5
  SHA512:
6
- metadata.gz: da6a1fd09f2f111f02339891424ff1c80652e4388108627a3225f5dac0574cb25dd35c0f9f61d3c0265c4e76bc6f72b0ee2d77506f597df57d581fdaca216751
7
- data.tar.gz: 6867a563b6e04993197fc317df6ebd322902bb16e6582e6d52ac177e031de021e738ce220245608e23657d636afc3cc4cad67e82a0e9c635459e22d03a47a73b
6
+ metadata.gz: 92abd2658927eea4b2d95fa7f8999846638cf6474d12cef317d795c8070742e9661e178d2bc2746b00f04fdcaeb94fd1e77aaba8eb807fd5d19cab2397c4ff00
7
+ data.tar.gz: d9954688a3f18f313af612c7ee58cf38509b99e2aef3376e2ef0d1b5604b6a43417454a2371bc7c92ca7fb4c3c28f740d9050ab0781d845a6dfeaa29223e0b33
data/lib/aws-sdk-s3.rb CHANGED
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-s3/event_streams'
63
63
  # @service
64
64
  module Aws::S3
65
65
 
66
- GEM_VERSION = '1.27.0'
66
+ GEM_VERSION = '1.28.0'
67
67
 
68
68
  end
@@ -695,33 +695,33 @@ module Aws::S3
695
695
  # * {Types::CreateBucketOutput#location #location} => String
696
696
  #
697
697
  #
698
- # @example Example: To create a bucket in a specific region
698
+ # @example Example: To create a bucket
699
699
  #
700
- # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
700
+ # # The following example creates a bucket.
701
701
  #
702
702
  # resp = client.create_bucket({
703
703
  # bucket: "examplebucket",
704
- # create_bucket_configuration: {
705
- # location_constraint: "eu-west-1",
706
- # },
707
704
  # })
708
705
  #
709
706
  # resp.to_h outputs the following:
710
707
  # {
711
- # location: "http://examplebucket.s3.amazonaws.com/",
708
+ # location: "/examplebucket",
712
709
  # }
713
710
  #
714
- # @example Example: To create a bucket
711
+ # @example Example: To create a bucket in a specific region
715
712
  #
716
- # # The following example creates a bucket.
713
+ # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
717
714
  #
718
715
  # resp = client.create_bucket({
719
716
  # bucket: "examplebucket",
717
+ # create_bucket_configuration: {
718
+ # location_constraint: "eu-west-1",
719
+ # },
720
720
  # })
721
721
  #
722
722
  # resp.to_h outputs the following:
723
723
  # {
724
- # location: "/examplebucket",
724
+ # location: "http://examplebucket.s3.amazonaws.com/",
725
725
  # }
726
726
  #
727
727
  # @example Request syntax with placeholder values
@@ -1304,15 +1304,6 @@ module Aws::S3
1304
1304
  # * {Types::DeleteObjectOutput#request_charged #request_charged} => String
1305
1305
  #
1306
1306
  #
1307
- # @example Example: To delete an object (from a non-versioned bucket)
1308
- #
1309
- # # The following example deletes an object from a non-versioned bucket.
1310
- #
1311
- # resp = client.delete_object({
1312
- # bucket: "ExampleBucket",
1313
- # key: "HappyFace.jpg",
1314
- # })
1315
- #
1316
1307
  # @example Example: To delete an object
1317
1308
  #
1318
1309
  # # The following example deletes an object from an S3 bucket.
@@ -1326,6 +1317,15 @@ module Aws::S3
1326
1317
  # {
1327
1318
  # }
1328
1319
  #
1320
+ # @example Example: To delete an object (from a non-versioned bucket)
1321
+ #
1322
+ # # The following example deletes an object from a non-versioned bucket.
1323
+ #
1324
+ # resp = client.delete_object({
1325
+ # bucket: "ExampleBucket",
1326
+ # key: "HappyFace.jpg",
1327
+ # })
1328
+ #
1329
1329
  # @example Request syntax with placeholder values
1330
1330
  #
1331
1331
  # resp = client.delete_object({
@@ -1448,22 +1448,20 @@ module Aws::S3
1448
1448
  # * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
1449
1449
  #
1450
1450
  #
1451
- # @example Example: To delete multiple object versions from a versioned bucket
1451
+ # @example Example: To delete multiple objects from a versioned bucket
1452
1452
  #
1453
- # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
1454
- # # versions and returns the key and versions of deleted objects in the response.
1453
+ # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
1454
+ # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
1455
1455
  #
1456
1456
  # resp = client.delete_objects({
1457
1457
  # bucket: "examplebucket",
1458
1458
  # delete: {
1459
1459
  # objects: [
1460
1460
  # {
1461
- # key: "HappyFace.jpg",
1462
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
1461
+ # key: "objectkey1",
1463
1462
  # },
1464
1463
  # {
1465
- # key: "HappyFace.jpg",
1466
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
1464
+ # key: "objectkey2",
1467
1465
  # },
1468
1466
  # ],
1469
1467
  # quiet: false,
@@ -1474,30 +1472,34 @@ module Aws::S3
1474
1472
  # {
1475
1473
  # deleted: [
1476
1474
  # {
1477
- # key: "HappyFace.jpg",
1478
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
1475
+ # delete_marker: true,
1476
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
1477
+ # key: "objectkey1",
1479
1478
  # },
1480
1479
  # {
1481
- # key: "HappyFace.jpg",
1482
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
1480
+ # delete_marker: true,
1481
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
1482
+ # key: "objectkey2",
1483
1483
  # },
1484
1484
  # ],
1485
1485
  # }
1486
1486
  #
1487
- # @example Example: To delete multiple objects from a versioned bucket
1487
+ # @example Example: To delete multiple object versions from a versioned bucket
1488
1488
  #
1489
- # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
1490
- # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
1489
+ # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
1490
+ # # versions and returns the key and versions of deleted objects in the response.
1491
1491
  #
1492
1492
  # resp = client.delete_objects({
1493
1493
  # bucket: "examplebucket",
1494
1494
  # delete: {
1495
1495
  # objects: [
1496
1496
  # {
1497
- # key: "objectkey1",
1497
+ # key: "HappyFace.jpg",
1498
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
1498
1499
  # },
1499
1500
  # {
1500
- # key: "objectkey2",
1501
+ # key: "HappyFace.jpg",
1502
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
1501
1503
  # },
1502
1504
  # ],
1503
1505
  # quiet: false,
@@ -1508,14 +1510,12 @@ module Aws::S3
1508
1510
  # {
1509
1511
  # deleted: [
1510
1512
  # {
1511
- # delete_marker: true,
1512
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
1513
- # key: "objectkey1",
1513
+ # key: "HappyFace.jpg",
1514
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
1514
1515
  # },
1515
1516
  # {
1516
- # delete_marker: true,
1517
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
1518
- # key: "objectkey2",
1517
+ # key: "HappyFace.jpg",
1518
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
1519
1519
  # },
1520
1520
  # ],
1521
1521
  # }
@@ -3098,49 +3098,49 @@ module Aws::S3
3098
3098
  # * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
3099
3099
  #
3100
3100
  #
3101
- # @example Example: To retrieve tag set of an object
3101
+ # @example Example: To retrieve tag set of a specific object version
3102
3102
  #
3103
- # # The following example retrieves tag set of an object.
3103
+ # # The following example retrieves tag set of an object. The request specifies object version.
3104
3104
  #
3105
3105
  # resp = client.get_object_tagging({
3106
3106
  # bucket: "examplebucket",
3107
- # key: "HappyFace.jpg",
3107
+ # key: "exampleobject",
3108
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3108
3109
  # })
3109
3110
  #
3110
3111
  # resp.to_h outputs the following:
3111
3112
  # {
3112
3113
  # tag_set: [
3113
3114
  # {
3114
- # key: "Key4",
3115
- # value: "Value4",
3116
- # },
3117
- # {
3118
- # key: "Key3",
3119
- # value: "Value3",
3115
+ # key: "Key1",
3116
+ # value: "Value1",
3120
3117
  # },
3121
3118
  # ],
3122
- # version_id: "null",
3119
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3123
3120
  # }
3124
3121
  #
3125
- # @example Example: To retrieve tag set of a specific object version
3122
+ # @example Example: To retrieve tag set of an object
3126
3123
  #
3127
- # # The following example retrieves tag set of an object. The request specifies object version.
3124
+ # # The following example retrieves tag set of an object.
3128
3125
  #
3129
3126
  # resp = client.get_object_tagging({
3130
3127
  # bucket: "examplebucket",
3131
- # key: "exampleobject",
3132
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3128
+ # key: "HappyFace.jpg",
3133
3129
  # })
3134
3130
  #
3135
3131
  # resp.to_h outputs the following:
3136
3132
  # {
3137
3133
  # tag_set: [
3138
3134
  # {
3139
- # key: "Key1",
3140
- # value: "Value1",
3135
+ # key: "Key4",
3136
+ # value: "Value4",
3137
+ # },
3138
+ # {
3139
+ # key: "Key3",
3140
+ # value: "Value3",
3141
3141
  # },
3142
3142
  # ],
3143
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3143
+ # version_id: "null",
3144
3144
  # }
3145
3145
  #
3146
3146
  # @example Request syntax with placeholder values
@@ -5662,75 +5662,78 @@ module Aws::S3
5662
5662
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
5663
5663
  #
5664
5664
  #
5665
- # @example Example: To upload an object and specify server-side encryption and object tags
5665
+ # @example Example: To create an object.
5666
5666
  #
5667
- # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
5668
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
5667
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
5669
5668
  #
5670
5669
  # resp = client.put_object({
5671
5670
  # body: "filetoupload",
5672
5671
  # bucket: "examplebucket",
5673
- # key: "exampleobject",
5674
- # server_side_encryption: "AES256",
5675
- # tagging: "key1=value1&key2=value2",
5672
+ # key: "objectkey",
5676
5673
  # })
5677
5674
  #
5678
5675
  # resp.to_h outputs the following:
5679
5676
  # {
5680
5677
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5681
- # server_side_encryption: "AES256",
5682
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
5678
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
5683
5679
  # }
5684
5680
  #
5685
- # @example Example: To upload an object and specify canned ACL.
5681
+ # @example Example: To upload an object
5686
5682
  #
5687
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
5688
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
5683
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
5684
+ # # syntax. S3 returns VersionId of the newly created object.
5689
5685
  #
5690
5686
  # resp = client.put_object({
5691
- # acl: "authenticated-read",
5692
- # body: "filetoupload",
5687
+ # body: "HappyFace.jpg",
5693
5688
  # bucket: "examplebucket",
5694
- # key: "exampleobject",
5689
+ # key: "HappyFace.jpg",
5695
5690
  # })
5696
5691
  #
5697
5692
  # resp.to_h outputs the following:
5698
5693
  # {
5699
5694
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5700
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
5695
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
5701
5696
  # }
5702
5697
  #
5703
- # @example Example: To upload an object
5698
+ # @example Example: To upload an object and specify server-side encryption and object tags
5704
5699
  #
5705
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
5706
- # # syntax. S3 returns VersionId of the newly created object.
5700
+ # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
5701
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
5707
5702
  #
5708
5703
  # resp = client.put_object({
5709
- # body: "HappyFace.jpg",
5704
+ # body: "filetoupload",
5710
5705
  # bucket: "examplebucket",
5711
- # key: "HappyFace.jpg",
5706
+ # key: "exampleobject",
5707
+ # server_side_encryption: "AES256",
5708
+ # tagging: "key1=value1&key2=value2",
5712
5709
  # })
5713
5710
  #
5714
5711
  # resp.to_h outputs the following:
5715
5712
  # {
5716
5713
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5717
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
5714
+ # server_side_encryption: "AES256",
5715
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
5718
5716
  # }
5719
5717
  #
5720
- # @example Example: To create an object.
5718
+ # @example Example: To upload object and specify user-defined metadata
5721
5719
  #
5722
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
5720
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
5721
+ # # enabled, S3 returns version ID in response.
5723
5722
  #
5724
5723
  # resp = client.put_object({
5725
5724
  # body: "filetoupload",
5726
5725
  # bucket: "examplebucket",
5727
- # key: "objectkey",
5726
+ # key: "exampleobject",
5727
+ # metadata: {
5728
+ # "metadata1" => "value1",
5729
+ # "metadata2" => "value2",
5730
+ # },
5728
5731
  # })
5729
5732
  #
5730
5733
  # resp.to_h outputs the following:
5731
5734
  # {
5732
5735
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5733
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
5736
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
5734
5737
  # }
5735
5738
  #
5736
5739
  # @example Example: To upload an object and specify optional tags
@@ -5751,45 +5754,42 @@ module Aws::S3
5751
5754
  # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
5752
5755
  # }
5753
5756
  #
5754
- # @example Example: To upload object and specify user-defined metadata
5757
+ # @example Example: To upload an object (specify optional headers)
5755
5758
  #
5756
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
5757
- # # enabled, S3 returns version ID in response.
5759
+ # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
5760
+ # # storage class and use server-side encryption.
5758
5761
  #
5759
5762
  # resp = client.put_object({
5760
- # body: "filetoupload",
5763
+ # body: "HappyFace.jpg",
5761
5764
  # bucket: "examplebucket",
5762
- # key: "exampleobject",
5763
- # metadata: {
5764
- # "metadata1" => "value1",
5765
- # "metadata2" => "value2",
5766
- # },
5765
+ # key: "HappyFace.jpg",
5766
+ # server_side_encryption: "AES256",
5767
+ # storage_class: "STANDARD_IA",
5767
5768
  # })
5768
5769
  #
5769
5770
  # resp.to_h outputs the following:
5770
5771
  # {
5771
5772
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5772
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
5773
+ # server_side_encryption: "AES256",
5774
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
5773
5775
  # }
5774
5776
  #
5775
- # @example Example: To upload an object (specify optional headers)
5777
+ # @example Example: To upload an object and specify canned ACL.
5776
5778
  #
5777
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
5778
- # # storage class and use server-side encryption.
5779
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
5780
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
5779
5781
  #
5780
5782
  # resp = client.put_object({
5781
- # body: "HappyFace.jpg",
5783
+ # acl: "authenticated-read",
5784
+ # body: "filetoupload",
5782
5785
  # bucket: "examplebucket",
5783
- # key: "HappyFace.jpg",
5784
- # server_side_encryption: "AES256",
5785
- # storage_class: "STANDARD_IA",
5786
+ # key: "exampleobject",
5786
5787
  # })
5787
5788
  #
5788
5789
  # resp.to_h outputs the following:
5789
5790
  # {
5790
5791
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5791
- # server_side_encryption: "AES256",
5792
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
5792
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
5793
5793
  # }
5794
5794
  #
5795
5795
  # @example Streaming a file from disk
@@ -6986,7 +6986,7 @@ module Aws::S3
6986
6986
  params: params,
6987
6987
  config: config)
6988
6988
  context[:gem_name] = 'aws-sdk-s3'
6989
- context[:gem_version] = '1.27.0'
6989
+ context[:gem_version] = '1.28.0'
6990
6990
  Seahorse::Client::Request.new(handlers, context)
6991
6991
  end
6992
6992
 
@@ -348,7 +348,7 @@ module Aws::S3
348
348
  ObjectLockLegalHold = Shapes::StructureShape.new(name: 'ObjectLockLegalHold')
349
349
  ObjectLockLegalHoldStatus = Shapes::StringShape.new(name: 'ObjectLockLegalHoldStatus')
350
350
  ObjectLockMode = Shapes::StringShape.new(name: 'ObjectLockMode')
351
- ObjectLockRetainUntilDate = Shapes::TimestampShape.new(name: 'ObjectLockRetainUntilDate')
351
+ ObjectLockRetainUntilDate = Shapes::TimestampShape.new(name: 'ObjectLockRetainUntilDate', timestampFormat: "iso8601")
352
352
  ObjectLockRetention = Shapes::StructureShape.new(name: 'ObjectLockRetention')
353
353
  ObjectLockRetentionMode = Shapes::StringShape.new(name: 'ObjectLockRetentionMode')
354
354
  ObjectLockRule = Shapes::StructureShape.new(name: 'ObjectLockRule')
@@ -13,6 +13,8 @@ module Aws
13
13
  :put_bucket_lifecycle,
14
14
  :put_bucket_policy,
15
15
  :put_bucket_tagging,
16
+ :put_object_legal_hold,
17
+ :put_object_retention
16
18
  ]
17
19
 
18
20
  # @api private
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.27.0
4
+ version: 1.28.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: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms