aws-sdk-s3 1.0.0.rc1 → 1.0.0.rc2

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: 985a0a613949dc79ec819aa15c5b736abe964de9
4
- data.tar.gz: 8cdcdd8a36a08c742088700471b92ebf74373d87
3
+ metadata.gz: 2d5b92cdd03efcb5780b4ecee079a8d4c3b9fa41
4
+ data.tar.gz: acf5d73b772c3373bfb086d6eeea9059be4dc69f
5
5
  SHA512:
6
- metadata.gz: d4cd193c076af2e7e878149ca1809058e2bd8309339c6d33cf35097ee509177f18c1a8e780281c8ca021afa72d66fc24935e21e8d59085940e0601d73c8be381
7
- data.tar.gz: 4d85c28c3131be7d98b74bd4d50df966c0451ae43a5258830cb4a459d17d6b4c687b62538718e9ea8c0f652c595395344d110cde18e5925daaf6fd0624715e06
6
+ metadata.gz: a39d7a9a551ea31a001724d41431bdc5a374a602025603d8f7740ecb2f45c51706468f482c469abb523136dc36105bb261daed6f5f23a1a3b058141f088b3a20
7
+ data.tar.gz: 04153b495101265b25bc7b81d0b4621372abf966889bc653b93d0e6289d41bda7dee081ff770f2702c50560b301960f29f5c0dc42255dcb8cd571b8848d064a8
@@ -61,6 +61,6 @@ require_relative 'aws-sdk-s3/customizations'
61
61
  # @service
62
62
  module Aws::S3
63
63
 
64
- GEM_VERSION = '1.0.0.rc1'
64
+ GEM_VERSION = '1.0.0.rc2'
65
65
 
66
66
  end
@@ -226,6 +226,7 @@ module Aws
226
226
  # sse_customer_key_md5: "SSECustomerKeyMD5",
227
227
  # ssekms_key_id: "SSEKMSKeyId",
228
228
  # request_payer: "requester", # accepts requester
229
+ # tagging: "TaggingHeader",
229
230
  # })
230
231
  # @param [Hash] options ({})
231
232
  # @option options [String] :acl
@@ -298,6 +299,9 @@ module Aws
298
299
  # requests. Documentation on downloading objects from requester pays
299
300
  # buckets can be found at
300
301
  # http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
302
+ # @option options [String] :tagging
303
+ # The tag-set for the object. The tag-set must be encoded as URL Query
304
+ # parameters
301
305
  # @return [Object]
302
306
  def put_object(options = {})
303
307
  options = options.merge(bucket: @name)
@@ -313,6 +313,9 @@ module Aws
313
313
  # @option params [String] :metadata_directive
314
314
  # Specifies whether the metadata is copied from the source object or
315
315
  # replaced with metadata provided in the request.
316
+ # @option params [String] :tagging_directive
317
+ # Specifies whether the object tag-set are copied from the source object
318
+ # or replaced with tag-set provided in the request.
316
319
  # @option params [String] :server_side_encryption
317
320
  # The Server-side encryption algorithm used when storing this object in
318
321
  # S3 (e.g., AES256, aws:kms).
@@ -358,6 +361,10 @@ module Aws
358
361
  # requests. Documentation on downloading objects from requester pays
359
362
  # buckets can be found at
360
363
  # http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
364
+ # @option params [String] :tagging
365
+ # The tag-set for the object destination object this value must be used
366
+ # in conjunction with the TaggingDirective. The tag-set must be encoded
367
+ # as URL Query parameters
361
368
  # @return [Types::CopyObjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
362
369
  #
363
370
  # * {Types::CopyObjectOutput#copy_object_result #CopyObjectResult} => Types::CopyObjectResult
@@ -394,6 +401,7 @@ module Aws
394
401
  # "MetadataKey" => "MetadataValue",
395
402
  # },
396
403
  # metadata_directive: "COPY", # accepts COPY, REPLACE
404
+ # tagging_directive: "COPY", # accepts COPY, REPLACE
397
405
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
398
406
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA
399
407
  # website_redirect_location: "WebsiteRedirectLocation",
@@ -405,6 +413,7 @@ module Aws
405
413
  # copy_source_sse_customer_key: "CopySourceSSECustomerKey",
406
414
  # copy_source_sse_customer_key_md5: "CopySourceSSECustomerKeyMD5",
407
415
  # request_payer: "requester", # accepts requester
416
+ # tagging: "TaggingHeader",
408
417
  # })
409
418
  #
410
419
  # @example Response structure
@@ -615,6 +624,27 @@ module Aws
615
624
  req.send_request(options)
616
625
  end
617
626
 
627
+ # Deletes an analytics configuration for the bucket (specified by the
628
+ # analytics configuration ID).
629
+ # @option params [required, String] :bucket
630
+ # The name of the bucket from which an analytics configuration is
631
+ # deleted.
632
+ # @option params [required, String] :id
633
+ # The identifier used to represent an analytics configuration.
634
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
635
+ #
636
+ # @example Request syntax with placeholder values
637
+ # resp = client.delete_bucket_analytics_configuration({
638
+ # bucket: "BucketName", # required
639
+ # id: "AnalyticsId", # required
640
+ # })
641
+ # @overload delete_bucket_analytics_configuration(params = {})
642
+ # @param [Hash] params ({})
643
+ def delete_bucket_analytics_configuration(params = {}, options = {})
644
+ req = build_request(:delete_bucket_analytics_configuration, params)
645
+ req.send_request(options)
646
+ end
647
+
618
648
  # Deletes the cors configuration information set for the bucket.
619
649
  # @option params [required, String] :bucket
620
650
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
@@ -630,6 +660,27 @@ module Aws
630
660
  req.send_request(options)
631
661
  end
632
662
 
663
+ # Deletes an inventory configuration (identified by the inventory ID)
664
+ # from the bucket.
665
+ # @option params [required, String] :bucket
666
+ # The name of the bucket containing the inventory configuration to
667
+ # delete.
668
+ # @option params [required, String] :id
669
+ # The ID used to identify the inventory configuration.
670
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
671
+ #
672
+ # @example Request syntax with placeholder values
673
+ # resp = client.delete_bucket_inventory_configuration({
674
+ # bucket: "BucketName", # required
675
+ # id: "InventoryId", # required
676
+ # })
677
+ # @overload delete_bucket_inventory_configuration(params = {})
678
+ # @param [Hash] params ({})
679
+ def delete_bucket_inventory_configuration(params = {}, options = {})
680
+ req = build_request(:delete_bucket_inventory_configuration, params)
681
+ req.send_request(options)
682
+ end
683
+
633
684
  # Deletes the lifecycle configuration from the bucket.
634
685
  # @option params [required, String] :bucket
635
686
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
@@ -645,6 +696,26 @@ module Aws
645
696
  req.send_request(options)
646
697
  end
647
698
 
699
+ # Deletes a metrics configuration (specified by the metrics
700
+ # configuration ID) from the bucket.
701
+ # @option params [required, String] :bucket
702
+ # The name of the bucket containing the metrics configuration to delete.
703
+ # @option params [required, String] :id
704
+ # The ID used to identify the metrics configuration.
705
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
706
+ #
707
+ # @example Request syntax with placeholder values
708
+ # resp = client.delete_bucket_metrics_configuration({
709
+ # bucket: "BucketName", # required
710
+ # id: "MetricsId", # required
711
+ # })
712
+ # @overload delete_bucket_metrics_configuration(params = {})
713
+ # @param [Hash] params ({})
714
+ def delete_bucket_metrics_configuration(params = {}, options = {})
715
+ req = build_request(:delete_bucket_metrics_configuration, params)
716
+ req.send_request(options)
717
+ end
718
+
648
719
  # Deletes the policy from the bucket.
649
720
  # @option params [required, String] :bucket
650
721
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
@@ -747,6 +818,31 @@ module Aws
747
818
  req.send_request(options)
748
819
  end
749
820
 
821
+ # Removes the tag-set from an existing object.
822
+ # @option params [required, String] :bucket
823
+ # @option params [required, String] :key
824
+ # @option params [String] :version_id
825
+ # The versionId of the object that the tag-set will be removed from.
826
+ # @return [Types::DeleteObjectTaggingOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
827
+ #
828
+ # * {Types::DeleteObjectTaggingOutput#version_id #VersionId} => String
829
+ #
830
+ # @example Request syntax with placeholder values
831
+ # resp = client.delete_object_tagging({
832
+ # bucket: "BucketName", # required
833
+ # key: "ObjectKey", # required
834
+ # version_id: "ObjectVersionId",
835
+ # })
836
+ #
837
+ # @example Response structure
838
+ # resp.version_id #=> String
839
+ # @overload delete_object_tagging(params = {})
840
+ # @param [Hash] params ({})
841
+ def delete_object_tagging(params = {}, options = {})
842
+ req = build_request(:delete_object_tagging, params)
843
+ req.send_request(options)
844
+ end
845
+
750
846
  # This operation enables you to delete multiple objects from a bucket
751
847
  # using a single HTTP request. You may specify up to 1000 keys.
752
848
  # @option params [required, String] :bucket
@@ -852,6 +948,44 @@ module Aws
852
948
  req.send_request(options)
853
949
  end
854
950
 
951
+ # Gets an analytics configuration for the bucket (specified by the
952
+ # analytics configuration ID).
953
+ # @option params [required, String] :bucket
954
+ # The name of the bucket from which an analytics configuration is
955
+ # retrieved.
956
+ # @option params [required, String] :id
957
+ # The identifier used to represent an analytics configuration.
958
+ # @return [Types::GetBucketAnalyticsConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
959
+ #
960
+ # * {Types::GetBucketAnalyticsConfigurationOutput#analytics_configuration #AnalyticsConfiguration} => Types::AnalyticsConfiguration
961
+ #
962
+ # @example Request syntax with placeholder values
963
+ # resp = client.get_bucket_analytics_configuration({
964
+ # bucket: "BucketName", # required
965
+ # id: "AnalyticsId", # required
966
+ # })
967
+ #
968
+ # @example Response structure
969
+ # resp.analytics_configuration.id #=> String
970
+ # resp.analytics_configuration.filter.prefix #=> String
971
+ # resp.analytics_configuration.filter.tag.key #=> String
972
+ # resp.analytics_configuration.filter.tag.value #=> String
973
+ # resp.analytics_configuration.filter.and.prefix #=> String
974
+ # resp.analytics_configuration.filter.and.tags #=> Array
975
+ # resp.analytics_configuration.filter.and.tags[0].key #=> String
976
+ # resp.analytics_configuration.filter.and.tags[0].value #=> String
977
+ # resp.analytics_configuration.storage_class_analysis.data_export.output_schema_version #=> String, one of "V_1"
978
+ # resp.analytics_configuration.storage_class_analysis.data_export.destination.s3_bucket_destination.format #=> String, one of "CSV"
979
+ # resp.analytics_configuration.storage_class_analysis.data_export.destination.s3_bucket_destination.bucket_account_id #=> String
980
+ # resp.analytics_configuration.storage_class_analysis.data_export.destination.s3_bucket_destination.bucket #=> String
981
+ # resp.analytics_configuration.storage_class_analysis.data_export.destination.s3_bucket_destination.prefix #=> String
982
+ # @overload get_bucket_analytics_configuration(params = {})
983
+ # @param [Hash] params ({})
984
+ def get_bucket_analytics_configuration(params = {}, options = {})
985
+ req = build_request(:get_bucket_analytics_configuration, params)
986
+ req.send_request(options)
987
+ end
988
+
855
989
  # Returns the cors configuration for the bucket.
856
990
  # @option params [required, String] :bucket
857
991
  # @return [Types::GetBucketCorsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -881,6 +1015,42 @@ module Aws
881
1015
  req.send_request(options)
882
1016
  end
883
1017
 
1018
+ # Returns an inventory configuration (identified by the inventory ID)
1019
+ # from the bucket.
1020
+ # @option params [required, String] :bucket
1021
+ # The name of the bucket containing the inventory configuration to
1022
+ # retrieve.
1023
+ # @option params [required, String] :id
1024
+ # The ID used to identify the inventory configuration.
1025
+ # @return [Types::GetBucketInventoryConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1026
+ #
1027
+ # * {Types::GetBucketInventoryConfigurationOutput#inventory_configuration #InventoryConfiguration} => Types::InventoryConfiguration
1028
+ #
1029
+ # @example Request syntax with placeholder values
1030
+ # resp = client.get_bucket_inventory_configuration({
1031
+ # bucket: "BucketName", # required
1032
+ # id: "InventoryId", # required
1033
+ # })
1034
+ #
1035
+ # @example Response structure
1036
+ # resp.inventory_configuration.destination.s3_bucket_destination.account_id #=> String
1037
+ # resp.inventory_configuration.destination.s3_bucket_destination.bucket #=> String
1038
+ # resp.inventory_configuration.destination.s3_bucket_destination.format #=> String, one of "CSV"
1039
+ # resp.inventory_configuration.destination.s3_bucket_destination.prefix #=> String
1040
+ # resp.inventory_configuration.is_enabled #=> Boolean
1041
+ # resp.inventory_configuration.filter.prefix #=> String
1042
+ # resp.inventory_configuration.id #=> String
1043
+ # resp.inventory_configuration.included_object_versions #=> String, one of "All", "Current"
1044
+ # resp.inventory_configuration.optional_fields #=> Array
1045
+ # resp.inventory_configuration.optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus"
1046
+ # resp.inventory_configuration.schedule.frequency #=> String, one of "Daily", "Weekly"
1047
+ # @overload get_bucket_inventory_configuration(params = {})
1048
+ # @param [Hash] params ({})
1049
+ def get_bucket_inventory_configuration(params = {}, options = {})
1050
+ req = build_request(:get_bucket_inventory_configuration, params)
1051
+ req.send_request(options)
1052
+ end
1053
+
884
1054
  # Deprecated, see the GetBucketLifecycleConfiguration operation.
885
1055
  # @option params [required, String] :bucket
886
1056
  # @return [Types::GetBucketLifecycleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -932,6 +1102,13 @@ module Aws
932
1102
  # resp.rules[0].expiration.expired_object_delete_marker #=> Boolean
933
1103
  # resp.rules[0].id #=> String
934
1104
  # resp.rules[0].prefix #=> String
1105
+ # resp.rules[0].filter.prefix #=> String
1106
+ # resp.rules[0].filter.tag.key #=> String
1107
+ # resp.rules[0].filter.tag.value #=> String
1108
+ # resp.rules[0].filter.and.prefix #=> String
1109
+ # resp.rules[0].filter.and.tags #=> Array
1110
+ # resp.rules[0].filter.and.tags[0].key #=> String
1111
+ # resp.rules[0].filter.and.tags[0].value #=> String
935
1112
  # resp.rules[0].status #=> String, one of "Enabled", "Disabled"
936
1113
  # resp.rules[0].transitions #=> Array
937
1114
  # resp.rules[0].transitions[0].date #=> Time
@@ -999,6 +1176,39 @@ module Aws
999
1176
  req.send_request(options)
1000
1177
  end
1001
1178
 
1179
+ # Gets a metrics configuration (specified by the metrics configuration
1180
+ # ID) from the bucket.
1181
+ # @option params [required, String] :bucket
1182
+ # The name of the bucket containing the metrics configuration to
1183
+ # retrieve.
1184
+ # @option params [required, String] :id
1185
+ # The ID used to identify the metrics configuration.
1186
+ # @return [Types::GetBucketMetricsConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1187
+ #
1188
+ # * {Types::GetBucketMetricsConfigurationOutput#metrics_configuration #MetricsConfiguration} => Types::MetricsConfiguration
1189
+ #
1190
+ # @example Request syntax with placeholder values
1191
+ # resp = client.get_bucket_metrics_configuration({
1192
+ # bucket: "BucketName", # required
1193
+ # id: "MetricsId", # required
1194
+ # })
1195
+ #
1196
+ # @example Response structure
1197
+ # resp.metrics_configuration.id #=> String
1198
+ # resp.metrics_configuration.filter.prefix #=> String
1199
+ # resp.metrics_configuration.filter.tag.key #=> String
1200
+ # resp.metrics_configuration.filter.tag.value #=> String
1201
+ # resp.metrics_configuration.filter.and.prefix #=> String
1202
+ # resp.metrics_configuration.filter.and.tags #=> Array
1203
+ # resp.metrics_configuration.filter.and.tags[0].key #=> String
1204
+ # resp.metrics_configuration.filter.and.tags[0].value #=> String
1205
+ # @overload get_bucket_metrics_configuration(params = {})
1206
+ # @param [Hash] params ({})
1207
+ def get_bucket_metrics_configuration(params = {}, options = {})
1208
+ req = build_request(:get_bucket_metrics_configuration, params)
1209
+ req.send_request(options)
1210
+ end
1211
+
1002
1212
  # Deprecated, see the GetBucketNotificationConfiguration operation.
1003
1213
  # @option params [required, String] :bucket
1004
1214
  # Name of the bucket to get the notification configuration for.
@@ -1316,6 +1526,7 @@ module Aws
1316
1526
  # * {Types::GetObjectOutput#request_charged #RequestCharged} => String
1317
1527
  # * {Types::GetObjectOutput#replication_status #ReplicationStatus} => String
1318
1528
  # * {Types::GetObjectOutput#parts_count #PartsCount} => Integer
1529
+ # * {Types::GetObjectOutput#tag_count #TagCount} => Integer
1319
1530
  #
1320
1531
  # @example Download an object to disk
1321
1532
  # # stream object directly to disk
@@ -1328,14 +1539,6 @@ module Aws
1328
1539
  # resp.metadata #=> { ... }
1329
1540
  # resp.etag #=> "..."
1330
1541
  #
1331
- # @example Download object into memory
1332
- # # omit :response_target to download to a StringIO in memory
1333
- # resp = s3.get_object(bucket: 'bucket-name', key: 'object-key')
1334
- #
1335
- # # call #read or #string on the response body
1336
- # resp.body.read
1337
- # #=> '...'
1338
- #
1339
1542
  # @example Streaming data to a block
1340
1543
  # # WARNING: yielding data to a block disables retries of networking errors
1341
1544
  # File.open('/path/to/file', 'wb') do |file|
@@ -1344,6 +1547,14 @@ module Aws
1344
1547
  # end
1345
1548
  # end
1346
1549
  #
1550
+ # @example Download object into memory
1551
+ # # omit :response_target to download to a StringIO in memory
1552
+ # resp = s3.get_object(bucket: 'bucket-name', key: 'object-key')
1553
+ #
1554
+ # # call #read or #string on the response body
1555
+ # resp.body.read
1556
+ # #=> '...'
1557
+ #
1347
1558
  # @example Request syntax with placeholder values
1348
1559
  # resp = client.get_object({
1349
1560
  # bucket: "BucketName", # required
@@ -1397,6 +1608,7 @@ module Aws
1397
1608
  # resp.request_charged #=> String, one of "requester"
1398
1609
  # resp.replication_status #=> String, one of "COMPLETE", "PENDING", "FAILED", "REPLICA"
1399
1610
  # resp.parts_count #=> Integer
1611
+ # resp.tag_count #=> Integer
1400
1612
  # @overload get_object(params = {})
1401
1613
  # @param [Hash] params ({})
1402
1614
  def get_object(params = {}, options = {})
@@ -1447,6 +1659,34 @@ module Aws
1447
1659
  req.send_request(options)
1448
1660
  end
1449
1661
 
1662
+ # Returns the tag-set of an object.
1663
+ # @option params [required, String] :bucket
1664
+ # @option params [required, String] :key
1665
+ # @option params [String] :version_id
1666
+ # @return [Types::GetObjectTaggingOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1667
+ #
1668
+ # * {Types::GetObjectTaggingOutput#version_id #VersionId} => String
1669
+ # * {Types::GetObjectTaggingOutput#tag_set #TagSet} => Array<Types::Tag>
1670
+ #
1671
+ # @example Request syntax with placeholder values
1672
+ # resp = client.get_object_tagging({
1673
+ # bucket: "BucketName", # required
1674
+ # key: "ObjectKey", # required
1675
+ # version_id: "ObjectVersionId",
1676
+ # })
1677
+ #
1678
+ # @example Response structure
1679
+ # resp.version_id #=> String
1680
+ # resp.tag_set #=> Array
1681
+ # resp.tag_set[0].key #=> String
1682
+ # resp.tag_set[0].value #=> String
1683
+ # @overload get_object_tagging(params = {})
1684
+ # @param [Hash] params ({})
1685
+ def get_object_tagging(params = {}, options = {})
1686
+ req = build_request(:get_object_tagging, params)
1687
+ req.send_request(options)
1688
+ end
1689
+
1450
1690
  # Return torrent files from a bucket.
1451
1691
  # @option params [String, IO] :response_target
1452
1692
  # Where to write response data, file path, or IO object.
@@ -1625,6 +1865,138 @@ module Aws
1625
1865
  req.send_request(options)
1626
1866
  end
1627
1867
 
1868
+ # Lists the analytics configurations for the bucket.
1869
+ # @option params [required, String] :bucket
1870
+ # The name of the bucket from which analytics configurations are
1871
+ # retrieved.
1872
+ # @option params [String] :continuation_token
1873
+ # The ContinuationToken that represents a placeholder from where this
1874
+ # request should begin.
1875
+ # @return [Types::ListBucketAnalyticsConfigurationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1876
+ #
1877
+ # * {Types::ListBucketAnalyticsConfigurationsOutput#is_truncated #IsTruncated} => Boolean
1878
+ # * {Types::ListBucketAnalyticsConfigurationsOutput#continuation_token #ContinuationToken} => String
1879
+ # * {Types::ListBucketAnalyticsConfigurationsOutput#next_continuation_token #NextContinuationToken} => String
1880
+ # * {Types::ListBucketAnalyticsConfigurationsOutput#analytics_configuration_list #AnalyticsConfigurationList} => Array<Types::AnalyticsConfiguration>
1881
+ #
1882
+ # @example Request syntax with placeholder values
1883
+ # resp = client.list_bucket_analytics_configurations({
1884
+ # bucket: "BucketName", # required
1885
+ # continuation_token: "Token",
1886
+ # })
1887
+ #
1888
+ # @example Response structure
1889
+ # resp.is_truncated #=> Boolean
1890
+ # resp.continuation_token #=> String
1891
+ # resp.next_continuation_token #=> String
1892
+ # resp.analytics_configuration_list #=> Array
1893
+ # resp.analytics_configuration_list[0].id #=> String
1894
+ # resp.analytics_configuration_list[0].filter.prefix #=> String
1895
+ # resp.analytics_configuration_list[0].filter.tag.key #=> String
1896
+ # resp.analytics_configuration_list[0].filter.tag.value #=> String
1897
+ # resp.analytics_configuration_list[0].filter.and.prefix #=> String
1898
+ # resp.analytics_configuration_list[0].filter.and.tags #=> Array
1899
+ # resp.analytics_configuration_list[0].filter.and.tags[0].key #=> String
1900
+ # resp.analytics_configuration_list[0].filter.and.tags[0].value #=> String
1901
+ # resp.analytics_configuration_list[0].storage_class_analysis.data_export.output_schema_version #=> String, one of "V_1"
1902
+ # resp.analytics_configuration_list[0].storage_class_analysis.data_export.destination.s3_bucket_destination.format #=> String, one of "CSV"
1903
+ # resp.analytics_configuration_list[0].storage_class_analysis.data_export.destination.s3_bucket_destination.bucket_account_id #=> String
1904
+ # resp.analytics_configuration_list[0].storage_class_analysis.data_export.destination.s3_bucket_destination.bucket #=> String
1905
+ # resp.analytics_configuration_list[0].storage_class_analysis.data_export.destination.s3_bucket_destination.prefix #=> String
1906
+ # @overload list_bucket_analytics_configurations(params = {})
1907
+ # @param [Hash] params ({})
1908
+ def list_bucket_analytics_configurations(params = {}, options = {})
1909
+ req = build_request(:list_bucket_analytics_configurations, params)
1910
+ req.send_request(options)
1911
+ end
1912
+
1913
+ # Returns a list of inventory configurations for the bucket.
1914
+ # @option params [required, String] :bucket
1915
+ # The name of the bucket containing the inventory configurations to
1916
+ # retrieve.
1917
+ # @option params [String] :continuation_token
1918
+ # The marker used to continue an inventory configuration listing that
1919
+ # has been truncated. Use the NextContinuationToken from a previously
1920
+ # truncated list response to continue the listing. The continuation
1921
+ # token is an opaque value that Amazon S3 understands.
1922
+ # @return [Types::ListBucketInventoryConfigurationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1923
+ #
1924
+ # * {Types::ListBucketInventoryConfigurationsOutput#continuation_token #ContinuationToken} => String
1925
+ # * {Types::ListBucketInventoryConfigurationsOutput#inventory_configuration_list #InventoryConfigurationList} => Array<Types::InventoryConfiguration>
1926
+ # * {Types::ListBucketInventoryConfigurationsOutput#is_truncated #IsTruncated} => Boolean
1927
+ # * {Types::ListBucketInventoryConfigurationsOutput#next_continuation_token #NextContinuationToken} => String
1928
+ #
1929
+ # @example Request syntax with placeholder values
1930
+ # resp = client.list_bucket_inventory_configurations({
1931
+ # bucket: "BucketName", # required
1932
+ # continuation_token: "Token",
1933
+ # })
1934
+ #
1935
+ # @example Response structure
1936
+ # resp.continuation_token #=> String
1937
+ # resp.inventory_configuration_list #=> Array
1938
+ # resp.inventory_configuration_list[0].destination.s3_bucket_destination.account_id #=> String
1939
+ # resp.inventory_configuration_list[0].destination.s3_bucket_destination.bucket #=> String
1940
+ # resp.inventory_configuration_list[0].destination.s3_bucket_destination.format #=> String, one of "CSV"
1941
+ # resp.inventory_configuration_list[0].destination.s3_bucket_destination.prefix #=> String
1942
+ # resp.inventory_configuration_list[0].is_enabled #=> Boolean
1943
+ # resp.inventory_configuration_list[0].filter.prefix #=> String
1944
+ # resp.inventory_configuration_list[0].id #=> String
1945
+ # resp.inventory_configuration_list[0].included_object_versions #=> String, one of "All", "Current"
1946
+ # resp.inventory_configuration_list[0].optional_fields #=> Array
1947
+ # resp.inventory_configuration_list[0].optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus"
1948
+ # resp.inventory_configuration_list[0].schedule.frequency #=> String, one of "Daily", "Weekly"
1949
+ # resp.is_truncated #=> Boolean
1950
+ # resp.next_continuation_token #=> String
1951
+ # @overload list_bucket_inventory_configurations(params = {})
1952
+ # @param [Hash] params ({})
1953
+ def list_bucket_inventory_configurations(params = {}, options = {})
1954
+ req = build_request(:list_bucket_inventory_configurations, params)
1955
+ req.send_request(options)
1956
+ end
1957
+
1958
+ # Lists the metrics configurations for the bucket.
1959
+ # @option params [required, String] :bucket
1960
+ # The name of the bucket containing the metrics configurations to
1961
+ # retrieve.
1962
+ # @option params [String] :continuation_token
1963
+ # The marker that is used to continue a metrics configuration listing
1964
+ # that has been truncated. Use the NextContinuationToken from a
1965
+ # previously truncated list response to continue the listing. The
1966
+ # continuation token is an opaque value that Amazon S3 understands.
1967
+ # @return [Types::ListBucketMetricsConfigurationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1968
+ #
1969
+ # * {Types::ListBucketMetricsConfigurationsOutput#is_truncated #IsTruncated} => Boolean
1970
+ # * {Types::ListBucketMetricsConfigurationsOutput#continuation_token #ContinuationToken} => String
1971
+ # * {Types::ListBucketMetricsConfigurationsOutput#next_continuation_token #NextContinuationToken} => String
1972
+ # * {Types::ListBucketMetricsConfigurationsOutput#metrics_configuration_list #MetricsConfigurationList} => Array<Types::MetricsConfiguration>
1973
+ #
1974
+ # @example Request syntax with placeholder values
1975
+ # resp = client.list_bucket_metrics_configurations({
1976
+ # bucket: "BucketName", # required
1977
+ # continuation_token: "Token",
1978
+ # })
1979
+ #
1980
+ # @example Response structure
1981
+ # resp.is_truncated #=> Boolean
1982
+ # resp.continuation_token #=> String
1983
+ # resp.next_continuation_token #=> String
1984
+ # resp.metrics_configuration_list #=> Array
1985
+ # resp.metrics_configuration_list[0].id #=> String
1986
+ # resp.metrics_configuration_list[0].filter.prefix #=> String
1987
+ # resp.metrics_configuration_list[0].filter.tag.key #=> String
1988
+ # resp.metrics_configuration_list[0].filter.tag.value #=> String
1989
+ # resp.metrics_configuration_list[0].filter.and.prefix #=> String
1990
+ # resp.metrics_configuration_list[0].filter.and.tags #=> Array
1991
+ # resp.metrics_configuration_list[0].filter.and.tags[0].key #=> String
1992
+ # resp.metrics_configuration_list[0].filter.and.tags[0].value #=> String
1993
+ # @overload list_bucket_metrics_configurations(params = {})
1994
+ # @param [Hash] params ({})
1995
+ def list_bucket_metrics_configurations(params = {}, options = {})
1996
+ req = build_request(:list_bucket_metrics_configurations, params)
1997
+ req.send_request(options)
1998
+ end
1999
+
1628
2000
  # Returns a list of all buckets owned by the authenticated sender of the
1629
2001
  # request.
1630
2002
  # @return [Types::ListBucketsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2121,6 +2493,60 @@ module Aws
2121
2493
  req.send_request(options)
2122
2494
  end
2123
2495
 
2496
+ # Sets an analytics configuration for the bucket (specified by the
2497
+ # analytics configuration ID).
2498
+ # @option params [required, String] :bucket
2499
+ # The name of the bucket to which an analytics configuration is stored.
2500
+ # @option params [required, String] :id
2501
+ # The identifier used to represent an analytics configuration.
2502
+ # @option params [required, Types::AnalyticsConfiguration] :analytics_configuration
2503
+ # The configuration and any analyses for the analytics filter.
2504
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2505
+ #
2506
+ # @example Request syntax with placeholder values
2507
+ # resp = client.put_bucket_analytics_configuration({
2508
+ # bucket: "BucketName", # required
2509
+ # id: "AnalyticsId", # required
2510
+ # analytics_configuration: { # required
2511
+ # id: "AnalyticsId", # required
2512
+ # filter: {
2513
+ # prefix: "Prefix",
2514
+ # tag: {
2515
+ # key: "ObjectKey", # required
2516
+ # value: "Value", # required
2517
+ # },
2518
+ # and: {
2519
+ # prefix: "Prefix",
2520
+ # tags: [
2521
+ # {
2522
+ # key: "ObjectKey", # required
2523
+ # value: "Value", # required
2524
+ # },
2525
+ # ],
2526
+ # },
2527
+ # },
2528
+ # storage_class_analysis: { # required
2529
+ # data_export: {
2530
+ # output_schema_version: "V_1", # required, accepts V_1
2531
+ # destination: { # required
2532
+ # s3_bucket_destination: { # required
2533
+ # format: "CSV", # required, accepts CSV
2534
+ # bucket_account_id: "AccountId",
2535
+ # bucket: "BucketName", # required
2536
+ # prefix: "Prefix",
2537
+ # },
2538
+ # },
2539
+ # },
2540
+ # },
2541
+ # },
2542
+ # })
2543
+ # @overload put_bucket_analytics_configuration(params = {})
2544
+ # @param [Hash] params ({})
2545
+ def put_bucket_analytics_configuration(params = {}, options = {})
2546
+ req = build_request(:put_bucket_analytics_configuration, params)
2547
+ req.send_request(options)
2548
+ end
2549
+
2124
2550
  # Sets the cors configuration for a bucket.
2125
2551
  # @option params [required, String] :bucket
2126
2552
  # @option params [required, Types::CORSConfiguration] :cors_configuration
@@ -2150,6 +2576,49 @@ module Aws
2150
2576
  req.send_request(options)
2151
2577
  end
2152
2578
 
2579
+ # Adds an inventory configuration (identified by the inventory ID) from
2580
+ # the bucket.
2581
+ # @option params [required, String] :bucket
2582
+ # The name of the bucket where the inventory configuration will be
2583
+ # stored.
2584
+ # @option params [required, String] :id
2585
+ # The ID used to identify the inventory configuration.
2586
+ # @option params [required, Types::InventoryConfiguration] :inventory_configuration
2587
+ # Specifies the inventory configuration.
2588
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2589
+ #
2590
+ # @example Request syntax with placeholder values
2591
+ # resp = client.put_bucket_inventory_configuration({
2592
+ # bucket: "BucketName", # required
2593
+ # id: "InventoryId", # required
2594
+ # inventory_configuration: { # required
2595
+ # destination: { # required
2596
+ # s3_bucket_destination: { # required
2597
+ # account_id: "AccountId",
2598
+ # bucket: "BucketName", # required
2599
+ # format: "CSV", # required, accepts CSV
2600
+ # prefix: "Prefix",
2601
+ # },
2602
+ # },
2603
+ # is_enabled: false, # required
2604
+ # filter: {
2605
+ # prefix: "Prefix", # required
2606
+ # },
2607
+ # id: "InventoryId", # required
2608
+ # included_object_versions: "All", # required, accepts All, Current
2609
+ # optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus
2610
+ # schedule: { # required
2611
+ # frequency: "Daily", # required, accepts Daily, Weekly
2612
+ # },
2613
+ # },
2614
+ # })
2615
+ # @overload put_bucket_inventory_configuration(params = {})
2616
+ # @param [Hash] params ({})
2617
+ def put_bucket_inventory_configuration(params = {}, options = {})
2618
+ req = build_request(:put_bucket_inventory_configuration, params)
2619
+ req.send_request(options)
2620
+ end
2621
+
2153
2622
  # Deprecated, see the PutBucketLifecycleConfiguration operation.
2154
2623
  # @option params [required, String] :bucket
2155
2624
  # @option params [String] :content_md5
@@ -2215,7 +2684,23 @@ module Aws
2215
2684
  # expired_object_delete_marker: false,
2216
2685
  # },
2217
2686
  # id: "ID",
2218
- # prefix: "Prefix", # required
2687
+ # prefix: "Prefix",
2688
+ # filter: {
2689
+ # prefix: "Prefix",
2690
+ # tag: {
2691
+ # key: "ObjectKey", # required
2692
+ # value: "Value", # required
2693
+ # },
2694
+ # and: {
2695
+ # prefix: "Prefix",
2696
+ # tags: [
2697
+ # {
2698
+ # key: "ObjectKey", # required
2699
+ # value: "Value", # required
2700
+ # },
2701
+ # ],
2702
+ # },
2703
+ # },
2219
2704
  # status: "Enabled", # required, accepts Enabled, Disabled
2220
2705
  # transitions: [
2221
2706
  # {
@@ -2285,6 +2770,47 @@ module Aws
2285
2770
  req.send_request(options)
2286
2771
  end
2287
2772
 
2773
+ # Sets a metrics configuration (specified by the metrics configuration
2774
+ # ID) for the bucket.
2775
+ # @option params [required, String] :bucket
2776
+ # The name of the bucket for which the metrics configuration is set.
2777
+ # @option params [required, String] :id
2778
+ # The ID used to identify the metrics configuration.
2779
+ # @option params [required, Types::MetricsConfiguration] :metrics_configuration
2780
+ # Specifies the metrics configuration.
2781
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2782
+ #
2783
+ # @example Request syntax with placeholder values
2784
+ # resp = client.put_bucket_metrics_configuration({
2785
+ # bucket: "BucketName", # required
2786
+ # id: "MetricsId", # required
2787
+ # metrics_configuration: { # required
2788
+ # id: "MetricsId", # required
2789
+ # filter: {
2790
+ # prefix: "Prefix",
2791
+ # tag: {
2792
+ # key: "ObjectKey", # required
2793
+ # value: "Value", # required
2794
+ # },
2795
+ # and: {
2796
+ # prefix: "Prefix",
2797
+ # tags: [
2798
+ # {
2799
+ # key: "ObjectKey", # required
2800
+ # value: "Value", # required
2801
+ # },
2802
+ # ],
2803
+ # },
2804
+ # },
2805
+ # },
2806
+ # })
2807
+ # @overload put_bucket_metrics_configuration(params = {})
2808
+ # @param [Hash] params ({})
2809
+ def put_bucket_metrics_configuration(params = {}, options = {})
2810
+ req = build_request(:put_bucket_metrics_configuration, params)
2811
+ req.send_request(options)
2812
+ end
2813
+
2288
2814
  # Deprecated, see the PutBucketNotificationConfiguraiton operation.
2289
2815
  # @option params [required, String] :bucket
2290
2816
  # @option params [String] :content_md5
@@ -2648,6 +3174,9 @@ module Aws
2648
3174
  # requests. Documentation on downloading objects from requester pays
2649
3175
  # buckets can be found at
2650
3176
  # http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
3177
+ # @option params [String] :tagging
3178
+ # The tag-set for the object. The tag-set must be encoded as URL Query
3179
+ # parameters
2651
3180
  # @return [Types::PutObjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2652
3181
  #
2653
3182
  # * {Types::PutObjectOutput#expiration #Expiration} => String
@@ -2694,6 +3223,7 @@ module Aws
2694
3223
  # sse_customer_key_md5: "SSECustomerKeyMD5",
2695
3224
  # ssekms_key_id: "SSEKMSKeyId",
2696
3225
  # request_payer: "requester", # accepts requester
3226
+ # tagging: "TaggingHeader",
2697
3227
  # })
2698
3228
  #
2699
3229
  # @example Response structure
@@ -2786,6 +3316,41 @@ module Aws
2786
3316
  req.send_request(options)
2787
3317
  end
2788
3318
 
3319
+ # Sets the supplied tag-set to an object that already exists in a bucket
3320
+ # @option params [required, String] :bucket
3321
+ # @option params [required, String] :key
3322
+ # @option params [String] :version_id
3323
+ # @option params [String] :content_md5
3324
+ # @option params [required, Types::Tagging] :tagging
3325
+ # @return [Types::PutObjectTaggingOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3326
+ #
3327
+ # * {Types::PutObjectTaggingOutput#version_id #VersionId} => String
3328
+ #
3329
+ # @example Request syntax with placeholder values
3330
+ # resp = client.put_object_tagging({
3331
+ # bucket: "BucketName", # required
3332
+ # key: "ObjectKey", # required
3333
+ # version_id: "ObjectVersionId",
3334
+ # content_md5: "ContentMD5",
3335
+ # tagging: { # required
3336
+ # tag_set: [ # required
3337
+ # {
3338
+ # key: "ObjectKey", # required
3339
+ # value: "Value", # required
3340
+ # },
3341
+ # ],
3342
+ # },
3343
+ # })
3344
+ #
3345
+ # @example Response structure
3346
+ # resp.version_id #=> String
3347
+ # @overload put_object_tagging(params = {})
3348
+ # @param [Hash] params ({})
3349
+ def put_object_tagging(params = {}, options = {})
3350
+ req = build_request(:put_object_tagging, params)
3351
+ req.send_request(options)
3352
+ end
3353
+
2789
3354
  # Restores an archived copy of an object back into Amazon S3
2790
3355
  # @option params [required, String] :bucket
2791
3356
  # @option params [required, String] :key
@@ -3026,7 +3591,7 @@ module Aws
3026
3591
  params: params,
3027
3592
  config: config)
3028
3593
  context[:gem_name] = 'aws-sdk-s3'
3029
- context[:gem_version] = '1.0.0.rc1'
3594
+ context[:gem_version] = '1.0.0.rc2'
3030
3595
  Seahorse::Client::Request.new(handlers, context)
3031
3596
  end
3032
3597