aws-sdk-s3 1.183.0 → 1.184.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +117 -111
- 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: 198983606f7967f0a828fcbf227ffb31ad3e7f855ace22bcb0a2ada02b523678
|
4
|
+
data.tar.gz: 8e29251b087ca2e4192ed5b2428526f4ed997b903692fbbca3debefa0a0376bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 022ba7a6f1a65d5ab7633a83c002724bc7be5c1e4fd774527f3c6078af039a8c3f6a658d42ec849b2d3490544ed5a15aec26a08df51637f613ff5973be19446e
|
7
|
+
data.tar.gz: d2adda5d22a9f6c8c921e8884166d34c010497997e4876bf31fa057e7e7727a2968be14a0fde094e7eddb71f1217bf166401565c110aa6f81b4cff2f7a9f8a21
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.184.0
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -18980,122 +18980,128 @@ module Aws::S3
|
|
18980
18980
|
#
|
18981
18981
|
# @example EventStream Operation Example
|
18982
18982
|
#
|
18983
|
-
# You can process the event once it arrives immediately, or wait until the
|
18984
|
-
# full response is complete and iterate through the eventstream enumerator.
|
18985
|
-
#
|
18986
|
-
# To interact with event immediately, you need to register
|
18987
|
-
# with callbacks. Callbacks can be registered for specific events or for all
|
18988
|
-
# events, including error events.
|
18989
|
-
#
|
18990
|
-
# Callbacks can be passed into the `:event_stream_handler` option or within a
|
18991
|
-
# block statement attached to the #select_object_content call directly. Hybrid
|
18992
|
-
# pattern of both is also supported.
|
18993
|
-
#
|
18994
|
-
# `:event_stream_handler` option takes in either a Proc object or
|
18995
|
-
# Aws::S3::EventStreams::SelectObjectContentEventStream object.
|
18996
|
-
#
|
18997
|
-
# Usage pattern a): Callbacks with a block attached to #select_object_content
|
18998
|
-
#
|
18999
|
-
#
|
19000
|
-
#
|
19001
|
-
#
|
19002
|
-
#
|
19003
|
-
#
|
19004
|
-
#
|
19005
|
-
#
|
19006
|
-
#
|
19007
|
-
#
|
19008
|
-
#
|
19009
|
-
#
|
19010
|
-
# stream.on_event do |event|
|
19011
|
-
# # process all events arrive
|
19012
|
-
# puts event.event_type
|
19013
|
-
# ...
|
19014
|
-
# end
|
19015
|
-
#
|
18983
|
+
# # You can process the event once it arrives immediately, or wait until the
|
18984
|
+
# # full response is complete and iterate through the eventstream enumerator.
|
18985
|
+
#
|
18986
|
+
# # To interact with event immediately, you need to register select_object_content
|
18987
|
+
# # with callbacks. Callbacks can be registered for specific events or for all
|
18988
|
+
# # events, including error events.
|
18989
|
+
#
|
18990
|
+
# # Callbacks can be passed into the `:event_stream_handler` option or within a
|
18991
|
+
# # block statement attached to the #select_object_content call directly. Hybrid
|
18992
|
+
# # pattern of both is also supported.
|
18993
|
+
#
|
18994
|
+
# # `:event_stream_handler` option takes in either a Proc object or
|
18995
|
+
# # Aws::S3::EventStreams::SelectObjectContentEventStream object.
|
18996
|
+
#
|
18997
|
+
# # Usage pattern a): Callbacks with a block attached to #select_object_content
|
18998
|
+
# # Example for registering callbacks for all event types and an error event
|
18999
|
+
# client.select_object_content(
|
19000
|
+
# # params input
|
19001
|
+
# ) do |stream|
|
19002
|
+
# stream.on_error_event do |event|
|
19003
|
+
# # catch unmodeled error event in the stream
|
19004
|
+
# raise event
|
19005
|
+
# # => Aws::Errors::EventError
|
19006
|
+
# # event.event_type => :error
|
19007
|
+
# # event.error_code => String
|
19008
|
+
# # event.error_message => String
|
19016
19009
|
# end
|
19017
19010
|
#
|
19018
|
-
#
|
19011
|
+
# stream.on_event do |event|
|
19012
|
+
# # process all events arrive
|
19013
|
+
# puts event.event_type
|
19014
|
+
# # ...
|
19015
|
+
# end
|
19016
|
+
# end
|
19019
19017
|
#
|
19020
|
-
#
|
19021
|
-
#
|
19018
|
+
# # Usage pattern b): Pass in `:event_stream_handler` for #select_object_content
|
19019
|
+
# # 1) Create a Aws::S3::EventStreams::SelectObjectContentEventStream object
|
19020
|
+
# # Example for registering callbacks with specific events
|
19022
19021
|
#
|
19023
|
-
#
|
19024
|
-
#
|
19025
|
-
#
|
19026
|
-
#
|
19027
|
-
#
|
19028
|
-
#
|
19029
|
-
#
|
19030
|
-
#
|
19031
|
-
#
|
19032
|
-
#
|
19033
|
-
#
|
19034
|
-
#
|
19035
|
-
#
|
19036
|
-
#
|
19037
|
-
#
|
19038
|
-
#
|
19039
|
-
#
|
19040
|
-
# client.select_object_content( # params input #, event_stream_handler: handler)
|
19022
|
+
# handler = Aws::S3::EventStreams::SelectObjectContentEventStream.new
|
19023
|
+
# handler.on_records_event do |event|
|
19024
|
+
# event # => Aws::S3::Types::Records
|
19025
|
+
# end
|
19026
|
+
# handler.on_stats_event do |event|
|
19027
|
+
# event # => Aws::S3::Types::Stats
|
19028
|
+
# end
|
19029
|
+
# handler.on_progress_event do |event|
|
19030
|
+
# event # => Aws::S3::Types::Progress
|
19031
|
+
# end
|
19032
|
+
# handler.on_cont_event do |event|
|
19033
|
+
# event # => Aws::S3::Types::Cont
|
19034
|
+
# end
|
19035
|
+
# handler.on_end_event do |event|
|
19036
|
+
# event # => Aws::S3::Types::End
|
19037
|
+
# end
|
19041
19038
|
#
|
19042
|
-
#
|
19043
|
-
#
|
19039
|
+
# client.select_object_content(
|
19040
|
+
# # params inputs
|
19041
|
+
# event_stream_handler: handler
|
19042
|
+
# )
|
19044
19043
|
#
|
19045
|
-
#
|
19046
|
-
#
|
19047
|
-
#
|
19048
|
-
#
|
19049
|
-
#
|
19050
|
-
# event # => Aws::S3::Types::Stats
|
19051
|
-
# end
|
19052
|
-
# stream.on_progress_event do |event|
|
19053
|
-
# event # => Aws::S3::Types::Progress
|
19054
|
-
# end
|
19055
|
-
# stream.on_cont_event do |event|
|
19056
|
-
# event # => Aws::S3::Types::Cont
|
19057
|
-
# end
|
19058
|
-
# stream.on_end_event do |event|
|
19059
|
-
# event # => Aws::S3::Types::End
|
19060
|
-
# end
|
19044
|
+
# # 2) Use a Ruby Proc object
|
19045
|
+
# # Example for registering callbacks with specific events
|
19046
|
+
# handler = Proc.new do |stream|
|
19047
|
+
# stream.on_records_event do |event|
|
19048
|
+
# event # => Aws::S3::Types::Records
|
19061
19049
|
# end
|
19050
|
+
# stream.on_stats_event do |event|
|
19051
|
+
# event # => Aws::S3::Types::Stats
|
19052
|
+
# end
|
19053
|
+
# stream.on_progress_event do |event|
|
19054
|
+
# event # => Aws::S3::Types::Progress
|
19055
|
+
# end
|
19056
|
+
# stream.on_cont_event do |event|
|
19057
|
+
# event # => Aws::S3::Types::Cont
|
19058
|
+
# end
|
19059
|
+
# stream.on_end_event do |event|
|
19060
|
+
# event # => Aws::S3::Types::End
|
19061
|
+
# end
|
19062
|
+
# end
|
19062
19063
|
#
|
19063
|
-
#
|
19064
|
-
#
|
19065
|
-
#
|
19064
|
+
# client.select_object_content(
|
19065
|
+
# # params inputs
|
19066
|
+
# event_stream_handler: handler
|
19067
|
+
# )
|
19066
19068
|
#
|
19067
|
-
#
|
19068
|
-
#
|
19069
|
-
#
|
19070
|
-
#
|
19071
|
-
#
|
19072
|
-
#
|
19073
|
-
#
|
19074
|
-
#
|
19075
|
-
#
|
19076
|
-
#
|
19077
|
-
#
|
19078
|
-
#
|
19079
|
-
#
|
19080
|
-
#
|
19081
|
-
#
|
19082
|
-
#
|
19069
|
+
# # Usage pattern c): Hybrid pattern of a) and b)
|
19070
|
+
# handler = Aws::S3::EventStreams::SelectObjectContentEventStream.new
|
19071
|
+
# handler.on_records_event do |event|
|
19072
|
+
# event # => Aws::S3::Types::Records
|
19073
|
+
# end
|
19074
|
+
# handler.on_stats_event do |event|
|
19075
|
+
# event # => Aws::S3::Types::Stats
|
19076
|
+
# end
|
19077
|
+
# handler.on_progress_event do |event|
|
19078
|
+
# event # => Aws::S3::Types::Progress
|
19079
|
+
# end
|
19080
|
+
# handler.on_cont_event do |event|
|
19081
|
+
# event # => Aws::S3::Types::Cont
|
19082
|
+
# end
|
19083
|
+
# handler.on_end_event do |event|
|
19084
|
+
# event # => Aws::S3::Types::End
|
19085
|
+
# end
|
19083
19086
|
#
|
19084
|
-
#
|
19085
|
-
#
|
19086
|
-
#
|
19087
|
-
#
|
19088
|
-
#
|
19089
|
-
#
|
19090
|
-
#
|
19091
|
-
#
|
19092
|
-
#
|
19087
|
+
# client.select_object_content(
|
19088
|
+
# # params input
|
19089
|
+
# event_stream_handler: handler
|
19090
|
+
# ) do |stream|
|
19091
|
+
# stream.on_error_event do |event|
|
19092
|
+
# # catch unmodeled error event in the stream
|
19093
|
+
# raise event
|
19094
|
+
# # => Aws::Errors::EventError
|
19095
|
+
# # event.event_type => :error
|
19096
|
+
# # event.error_code => String
|
19097
|
+
# # event.error_message => String
|
19093
19098
|
# end
|
19099
|
+
# end
|
19094
19100
|
#
|
19095
|
-
# You can also iterate through events after the response complete.
|
19096
|
-
#
|
19097
|
-
#
|
19098
|
-
# For parameter input example, please refer to following request syntax
|
19101
|
+
# # You can also iterate through events after the response complete.
|
19102
|
+
# # Events are available at
|
19103
|
+
# resp.payload # => Enumerator
|
19104
|
+
# # For parameter input example, please refer to following request syntax.
|
19099
19105
|
#
|
19100
19106
|
# @example Request syntax with placeholder values
|
19101
19107
|
#
|
@@ -19148,26 +19154,26 @@ module Aws::S3
|
|
19148
19154
|
#
|
19149
19155
|
# @example Response structure
|
19150
19156
|
#
|
19151
|
-
# All events are available at resp.payload:
|
19157
|
+
# # All events are available at resp.payload:
|
19152
19158
|
# resp.payload #=> Enumerator
|
19153
19159
|
# resp.payload.event_types #=> [:records, :stats, :progress, :cont, :end]
|
19154
19160
|
#
|
19155
|
-
# For :records event available at #on_records_event callback and response eventstream enumerator:
|
19161
|
+
# # For :records event available at #on_records_event callback and response eventstream enumerator:
|
19156
19162
|
# event.payload #=> IO
|
19157
19163
|
#
|
19158
|
-
# For :stats event available at #on_stats_event callback and response eventstream enumerator:
|
19164
|
+
# # For :stats event available at #on_stats_event callback and response eventstream enumerator:
|
19159
19165
|
# event.details.bytes_scanned #=> Integer
|
19160
19166
|
# event.details.bytes_processed #=> Integer
|
19161
19167
|
# event.details.bytes_returned #=> Integer
|
19162
19168
|
#
|
19163
|
-
# For :progress event available at #on_progress_event callback and response eventstream enumerator:
|
19169
|
+
# # For :progress event available at #on_progress_event callback and response eventstream enumerator:
|
19164
19170
|
# event.details.bytes_scanned #=> Integer
|
19165
19171
|
# event.details.bytes_processed #=> Integer
|
19166
19172
|
# event.details.bytes_returned #=> Integer
|
19167
19173
|
#
|
19168
|
-
# For :cont event available at #on_cont_event callback and response eventstream enumerator:
|
19174
|
+
# # For :cont event available at #on_cont_event callback and response eventstream enumerator:
|
19169
19175
|
# #=> EmptyStruct
|
19170
|
-
# For :end event available at #on_end_event callback and response eventstream enumerator:
|
19176
|
+
# # For :end event available at #on_end_event callback and response eventstream enumerator:
|
19171
19177
|
# #=> EmptyStruct
|
19172
19178
|
#
|
19173
19179
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/SelectObjectContent AWS API Documentation
|
@@ -20675,7 +20681,7 @@ module Aws::S3
|
|
20675
20681
|
tracer: tracer
|
20676
20682
|
)
|
20677
20683
|
context[:gem_name] = 'aws-sdk-s3'
|
20678
|
-
context[:gem_version] = '1.
|
20684
|
+
context[:gem_version] = '1.184.0'
|
20679
20685
|
Seahorse::Client::Request.new(handlers, context)
|
20680
20686
|
end
|
20681
20687
|
|
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.184.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-
|
11
|
+
date: 2025-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|