aws-sdk-s3 1.17.1 → 1.18.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef6caddd4c1ac491401b2f0554cebd465b01ff08
4
- data.tar.gz: 22e6e88e6a7e3d875544424ab941fc49a52370dd
3
+ metadata.gz: 403e3c23b920a2f660a119bc4b52023582f1fe30
4
+ data.tar.gz: 24173121b7a948246c78b8889d6b5376338f889f
5
5
  SHA512:
6
- metadata.gz: aaa5e9e4b3817eda94040322c68a70ed31e5283824b8ad014a47309d644253d7d5373792f35afde1e066acc222a4cbe29be73199389c39004d2408f199f4b4eb
7
- data.tar.gz: 32100ae53608fe6830979be3d1fc7fa1510cac953ad3dc8fb123bc68347e4282897f071a5977d36bf8087f417be358c54eb2e3d7de2e075a69142284f8b4ff6c
6
+ metadata.gz: 12b1039e40639cac7b4dad1e223f542c5baddaddee61b735a66987bb1c997c0ecd770c6cc33a5a28074c80d3f3f9a655fedda4f96ee335d9efa99c8f9a852a70
7
+ data.tar.gz: e726dfb3b15594257b4e680c48035c59499eb9bfad17d4f021cca788aec8e1ad7b79c06f08d0cd4a32eec30f7b875273dea0374d283d45c110b11c4c9a05f238
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.17.1'
66
+ GEM_VERSION = '1.18.0'
67
67
 
68
68
  end
@@ -19,6 +19,8 @@ require 'aws-sdk-core/plugins/response_paging.rb'
19
19
  require 'aws-sdk-core/plugins/stub_responses.rb'
20
20
  require 'aws-sdk-core/plugins/idempotency_token.rb'
21
21
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
22
+ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
23
+ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
22
24
  require 'aws-sdk-core/plugins/protocols/rest_xml.rb'
23
25
  require 'aws-sdk-s3/plugins/accelerate.rb'
24
26
  require 'aws-sdk-s3/plugins/dualstack.rb'
@@ -61,6 +63,8 @@ module Aws::S3
61
63
  add_plugin(Aws::Plugins::StubResponses)
62
64
  add_plugin(Aws::Plugins::IdempotencyToken)
63
65
  add_plugin(Aws::Plugins::JsonvalueConverter)
66
+ add_plugin(Aws::Plugins::ClientMetricsPlugin)
67
+ add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
64
68
  add_plugin(Aws::Plugins::Protocols::RestXml)
65
69
  add_plugin(Aws::S3::Plugins::Accelerate)
66
70
  add_plugin(Aws::S3::Plugins::Dualstack)
@@ -120,6 +124,22 @@ module Aws::S3
120
124
  #
121
125
  # @option options [String] :access_key_id
122
126
  #
127
+ # @option options [] :client_side_monitoring (false)
128
+ # When `true`, client-side metrics will be collected for all API requests from
129
+ # this client.
130
+ #
131
+ # @option options [] :client_side_monitoring_client_id ("")
132
+ # Allows you to provide an identifier for this client which will be attached to
133
+ # all generated client side metrics. Defaults to an empty string.
134
+ #
135
+ # @option options [] :client_side_monitoring_port (31000)
136
+ # Required for publishing client metrics. The port that the client side monitoring
137
+ # agent is running on, where client metrics will be published via UDP.
138
+ #
139
+ # @option options [] :client_side_monitoring_publisher (#<Aws::ClientSideMonitoring::Publisher:0x00007f20e3c7b9f0 @agent_port=nil, @mutex=#<Thread::Mutex:0x00007f20e3c7b9a0>>)
140
+ # Allows you to provide a custom client-side monitoring publisher class. By default,
141
+ # will use the Client Side Monitoring Agent Publisher.
142
+ #
123
143
  # @option options [Boolean] :compute_checksums (true)
124
144
  # When `true` a MD5 checksum will be computed for every request that
125
145
  # sends a body. When `false`, MD5 checksums will only be computed
@@ -1212,15 +1232,6 @@ module Aws::S3
1212
1232
  # * {Types::DeleteObjectOutput#request_charged #request_charged} => String
1213
1233
  #
1214
1234
  #
1215
- # @example Example: To delete an object (from a non-versioned bucket)
1216
- #
1217
- # # The following example deletes an object from a non-versioned bucket.
1218
- #
1219
- # resp = client.delete_object({
1220
- # bucket: "ExampleBucket",
1221
- # key: "HappyFace.jpg",
1222
- # })
1223
- #
1224
1235
  # @example Example: To delete an object
1225
1236
  #
1226
1237
  # # The following example deletes an object from an S3 bucket.
@@ -1234,6 +1245,15 @@ module Aws::S3
1234
1245
  # {
1235
1246
  # }
1236
1247
  #
1248
+ # @example Example: To delete an object (from a non-versioned bucket)
1249
+ #
1250
+ # # The following example deletes an object from a non-versioned bucket.
1251
+ #
1252
+ # resp = client.delete_object({
1253
+ # bucket: "ExampleBucket",
1254
+ # key: "HappyFace.jpg",
1255
+ # })
1256
+ #
1237
1257
  # @example Request syntax with placeholder values
1238
1258
  #
1239
1259
  # resp = client.delete_object({
@@ -5289,24 +5309,40 @@ module Aws::S3
5289
5309
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
5290
5310
  #
5291
5311
  #
5292
- # @example Example: To upload an object and specify server-side encryption and object tags
5312
+ # @example Example: To create an object.
5293
5313
  #
5294
- # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
5295
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
5314
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
5296
5315
  #
5297
5316
  # resp = client.put_object({
5298
5317
  # body: "filetoupload",
5299
5318
  # bucket: "examplebucket",
5300
- # key: "exampleobject",
5319
+ # key: "objectkey",
5320
+ # })
5321
+ #
5322
+ # resp.to_h outputs the following:
5323
+ # {
5324
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5325
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
5326
+ # }
5327
+ #
5328
+ # @example Example: To upload an object (specify optional headers)
5329
+ #
5330
+ # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
5331
+ # # storage class and use server-side encryption.
5332
+ #
5333
+ # resp = client.put_object({
5334
+ # body: "HappyFace.jpg",
5335
+ # bucket: "examplebucket",
5336
+ # key: "HappyFace.jpg",
5301
5337
  # server_side_encryption: "AES256",
5302
- # tagging: "key1=value1&key2=value2",
5338
+ # storage_class: "STANDARD_IA",
5303
5339
  # })
5304
5340
  #
5305
5341
  # resp.to_h outputs the following:
5306
5342
  # {
5307
5343
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5308
5344
  # server_side_encryption: "AES256",
5309
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
5345
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
5310
5346
  # }
5311
5347
  #
5312
5348
  # @example Example: To upload an object and specify canned ACL.
@@ -5344,20 +5380,25 @@ module Aws::S3
5344
5380
  # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
5345
5381
  # }
5346
5382
  #
5347
- # @example Example: To create an object.
5383
+ # @example Example: To upload object and specify user-defined metadata
5348
5384
  #
5349
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
5385
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
5386
+ # # enabled, S3 returns version ID in response.
5350
5387
  #
5351
5388
  # resp = client.put_object({
5352
5389
  # body: "filetoupload",
5353
5390
  # bucket: "examplebucket",
5354
- # key: "objectkey",
5391
+ # key: "exampleobject",
5392
+ # metadata: {
5393
+ # "metadata1" => "value1",
5394
+ # "metadata2" => "value2",
5395
+ # },
5355
5396
  # })
5356
5397
  #
5357
5398
  # resp.to_h outputs the following:
5358
5399
  # {
5359
5400
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5360
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
5401
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
5361
5402
  # }
5362
5403
  #
5363
5404
  # @example Example: To upload an object and specify optional tags
@@ -5378,45 +5419,24 @@ module Aws::S3
5378
5419
  # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
5379
5420
  # }
5380
5421
  #
5381
- # @example Example: To upload object and specify user-defined metadata
5422
+ # @example Example: To upload an object and specify server-side encryption and object tags
5382
5423
  #
5383
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
5384
- # # enabled, S3 returns version ID in response.
5424
+ # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
5425
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
5385
5426
  #
5386
5427
  # resp = client.put_object({
5387
5428
  # body: "filetoupload",
5388
5429
  # bucket: "examplebucket",
5389
5430
  # key: "exampleobject",
5390
- # metadata: {
5391
- # "metadata1" => "value1",
5392
- # "metadata2" => "value2",
5393
- # },
5394
- # })
5395
- #
5396
- # resp.to_h outputs the following:
5397
- # {
5398
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5399
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
5400
- # }
5401
- #
5402
- # @example Example: To upload an object (specify optional headers)
5403
- #
5404
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
5405
- # # storage class and use server-side encryption.
5406
- #
5407
- # resp = client.put_object({
5408
- # body: "HappyFace.jpg",
5409
- # bucket: "examplebucket",
5410
- # key: "HappyFace.jpg",
5411
5431
  # server_side_encryption: "AES256",
5412
- # storage_class: "STANDARD_IA",
5432
+ # tagging: "key1=value1&key2=value2",
5413
5433
  # })
5414
5434
  #
5415
5435
  # resp.to_h outputs the following:
5416
5436
  # {
5417
5437
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5418
5438
  # server_side_encryption: "AES256",
5419
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
5439
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
5420
5440
  # }
5421
5441
  #
5422
5442
  # @example Streaming a file from disk
@@ -5734,6 +5754,8 @@ module Aws::S3
5734
5754
  # json: {
5735
5755
  # type: "DOCUMENT", # accepts DOCUMENT, LINES
5736
5756
  # },
5757
+ # parquet: {
5758
+ # },
5737
5759
  # },
5738
5760
  # expression_type: "SQL", # required, accepts SQL
5739
5761
  # expression: "Expression", # required
@@ -6014,6 +6036,8 @@ module Aws::S3
6014
6036
  # json: {
6015
6037
  # type: "DOCUMENT", # accepts DOCUMENT, LINES
6016
6038
  # },
6039
+ # parquet: {
6040
+ # },
6017
6041
  # },
6018
6042
  # output_serialization: { # required
6019
6043
  # csv: {
@@ -6287,45 +6311,45 @@ module Aws::S3
6287
6311
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
6288
6312
  #
6289
6313
  #
6290
- # @example Example: To upload a part by copying byte range from an existing object as data source
6314
+ # @example Example: To upload a part by copying data from an existing object as data source
6291
6315
  #
6292
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
6293
- # # data source.
6316
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
6294
6317
  #
6295
6318
  # resp = client.upload_part_copy({
6296
6319
  # bucket: "examplebucket",
6297
6320
  # copy_source: "/bucketname/sourceobjectkey",
6298
- # copy_source_range: "bytes=1-100000",
6299
6321
  # key: "examplelargeobject",
6300
- # part_number: 2,
6322
+ # part_number: 1,
6301
6323
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
6302
6324
  # })
6303
6325
  #
6304
6326
  # resp.to_h outputs the following:
6305
6327
  # {
6306
6328
  # copy_part_result: {
6307
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
6308
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
6329
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
6330
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
6309
6331
  # },
6310
6332
  # }
6311
6333
  #
6312
- # @example Example: To upload a part by copying data from an existing object as data source
6334
+ # @example Example: To upload a part by copying byte range from an existing object as data source
6313
6335
  #
6314
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
6336
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
6337
+ # # data source.
6315
6338
  #
6316
6339
  # resp = client.upload_part_copy({
6317
6340
  # bucket: "examplebucket",
6318
6341
  # copy_source: "/bucketname/sourceobjectkey",
6342
+ # copy_source_range: "bytes=1-100000",
6319
6343
  # key: "examplelargeobject",
6320
- # part_number: 1,
6344
+ # part_number: 2,
6321
6345
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
6322
6346
  # })
6323
6347
  #
6324
6348
  # resp.to_h outputs the following:
6325
6349
  # {
6326
6350
  # copy_part_result: {
6327
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
6328
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
6351
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
6352
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
6329
6353
  # },
6330
6354
  # }
6331
6355
  #
@@ -6384,7 +6408,7 @@ module Aws::S3
6384
6408
  params: params,
6385
6409
  config: config)
6386
6410
  context[:gem_name] = 'aws-sdk-s3'
6387
- context[:gem_version] = '1.17.1'
6411
+ context[:gem_version] = '1.18.0'
6388
6412
  Seahorse::Client::Request.new(handlers, context)
6389
6413
  end
6390
6414
 
@@ -336,6 +336,7 @@ module Aws::S3
336
336
  OutputSerialization = Shapes::StructureShape.new(name: 'OutputSerialization')
337
337
  Owner = Shapes::StructureShape.new(name: 'Owner')
338
338
  OwnerOverride = Shapes::StringShape.new(name: 'OwnerOverride')
339
+ ParquetInput = Shapes::StructureShape.new(name: 'ParquetInput')
339
340
  Part = Shapes::StructureShape.new(name: 'Part')
340
341
  PartNumber = Shapes::IntegerShape.new(name: 'PartNumber')
341
342
  PartNumberMarker = Shapes::IntegerShape.new(name: 'PartNumberMarker')
@@ -1137,6 +1138,7 @@ module Aws::S3
1137
1138
  InputSerialization.add_member(:csv, Shapes::ShapeRef.new(shape: CSVInput, location_name: "CSV"))
1138
1139
  InputSerialization.add_member(:compression_type, Shapes::ShapeRef.new(shape: CompressionType, location_name: "CompressionType"))
1139
1140
  InputSerialization.add_member(:json, Shapes::ShapeRef.new(shape: JSONInput, location_name: "JSON"))
1141
+ InputSerialization.add_member(:parquet, Shapes::ShapeRef.new(shape: ParquetInput, location_name: "Parquet"))
1140
1142
  InputSerialization.struct_class = Types::InputSerialization
1141
1143
 
1142
1144
  InventoryConfiguration.add_member(:destination, Shapes::ShapeRef.new(shape: InventoryDestination, required: true, location_name: "Destination"))
@@ -1465,6 +1467,8 @@ module Aws::S3
1465
1467
  Owner.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "ID"))
1466
1468
  Owner.struct_class = Types::Owner
1467
1469
 
1470
+ ParquetInput.struct_class = Types::ParquetInput
1471
+
1468
1472
  Part.add_member(:part_number, Shapes::ShapeRef.new(shape: PartNumber, location_name: "PartNumber"))
1469
1473
  Part.add_member(:last_modified, Shapes::ShapeRef.new(shape: LastModified, location_name: "LastModified"))
1470
1474
  Part.add_member(:etag, Shapes::ShapeRef.new(shape: ETag, location_name: "ETag"))
@@ -1959,10 +1963,16 @@ module Aws::S3
1959
1963
  api.version = "2006-03-01"
1960
1964
 
1961
1965
  api.metadata = {
1966
+ "apiVersion" => "2006-03-01",
1967
+ "checksumFormat" => "md5",
1962
1968
  "endpointPrefix" => "s3",
1969
+ "globalEndpoint" => "s3.amazonaws.com",
1963
1970
  "protocol" => "rest-xml",
1971
+ "serviceAbbreviation" => "Amazon S3",
1964
1972
  "serviceFullName" => "Amazon Simple Storage Service",
1973
+ "serviceId" => "S3",
1965
1974
  "timestampFormat" => "rfc822",
1975
+ "uid" => "s3-2006-03-01",
1966
1976
  }
1967
1977
 
1968
1978
  api.add_operation(:abort_multipart_upload, Seahorse::Model::Operation.new.tap do |o|
@@ -904,6 +904,8 @@ module Aws::S3
904
904
  # json: {
905
905
  # type: "DOCUMENT", # accepts DOCUMENT, LINES
906
906
  # },
907
+ # parquet: {
908
+ # },
907
909
  # },
908
910
  # expression_type: "SQL", # required, accepts SQL
909
911
  # expression: "Expression", # required
@@ -747,6 +747,8 @@ module Aws::S3
747
747
  # json: {
748
748
  # type: "DOCUMENT", # accepts DOCUMENT, LINES
749
749
  # },
750
+ # parquet: {
751
+ # },
750
752
  # },
751
753
  # expression_type: "SQL", # required, accepts SQL
752
754
  # expression: "Expression", # required
@@ -3646,6 +3646,8 @@ module Aws::S3
3646
3646
  # json: {
3647
3647
  # type: "DOCUMENT", # accepts DOCUMENT, LINES
3648
3648
  # },
3649
+ # parquet: {
3650
+ # },
3649
3651
  # }
3650
3652
  #
3651
3653
  # @!attribute [rw] csv
@@ -3661,12 +3663,17 @@ module Aws::S3
3661
3663
  # Specifies JSON as object's input serialization format.
3662
3664
  # @return [Types::JSONInput]
3663
3665
  #
3666
+ # @!attribute [rw] parquet
3667
+ # Specifies Parquet as object's input serialization format.
3668
+ # @return [Types::ParquetInput]
3669
+ #
3664
3670
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InputSerialization AWS API Documentation
3665
3671
  #
3666
3672
  class InputSerialization < Struct.new(
3667
3673
  :csv,
3668
3674
  :compression_type,
3669
- :json)
3675
+ :json,
3676
+ :parquet)
3670
3677
  include Aws::Structure
3671
3678
  end
3672
3679
 
@@ -5782,6 +5789,12 @@ module Aws::S3
5782
5789
  include Aws::Structure
5783
5790
  end
5784
5791
 
5792
+ # @api private
5793
+ #
5794
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ParquetInput AWS API Documentation
5795
+ #
5796
+ class ParquetInput < Aws::EmptyStructure; end
5797
+
5785
5798
  # @!attribute [rw] part_number
5786
5799
  # Part number identifying the part. This is a positive integer between
5787
5800
  # 1 and 10,000.
@@ -7533,6 +7546,8 @@ module Aws::S3
7533
7546
  # json: {
7534
7547
  # type: "DOCUMENT", # accepts DOCUMENT, LINES
7535
7548
  # },
7549
+ # parquet: {
7550
+ # },
7536
7551
  # },
7537
7552
  # expression_type: "SQL", # required, accepts SQL
7538
7553
  # expression: "Expression", # required
@@ -7652,6 +7667,8 @@ module Aws::S3
7652
7667
  # json: {
7653
7668
  # type: "DOCUMENT", # accepts DOCUMENT, LINES
7654
7669
  # },
7670
+ # parquet: {
7671
+ # },
7655
7672
  # },
7656
7673
  # expression_type: "SQL", # required, accepts SQL
7657
7674
  # expression: "Expression", # required
@@ -8078,6 +8095,8 @@ module Aws::S3
8078
8095
  # json: {
8079
8096
  # type: "DOCUMENT", # accepts DOCUMENT, LINES
8080
8097
  # },
8098
+ # parquet: {
8099
+ # },
8081
8100
  # },
8082
8101
  # output_serialization: { # required
8083
8102
  # csv: {
@@ -8188,6 +8207,8 @@ module Aws::S3
8188
8207
  # json: {
8189
8208
  # type: "DOCUMENT", # accepts DOCUMENT, LINES
8190
8209
  # },
8210
+ # parquet: {
8211
+ # },
8191
8212
  # },
8192
8213
  # expression_type: "SQL", # required, accepts SQL
8193
8214
  # expression: "Expression", # required
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.17.1
4
+ version: 1.18.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-08-29 00:00:00.000000000 Z
11
+ date: 2018-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms