aws-sdk-lambda 1.148.0 → 1.149.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-lambda/client.rb +94 -88
- data/lib/aws-sdk-lambda.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: cad1c50bed42a4f3310598feaee9fd21064e8da40ec5fc08133a7cba4611902a
         | 
| 4 | 
            +
              data.tar.gz: ee9801d552d0a446500092d2747619bd3009c49ff1145303cbd091e8f2ec0a79
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 6b887cae94509bad659355f4efbe56c275d61ee8f9963388d68aa07d50bbe827d4845c6c5bffcaaa65573fc8aa9f2120e8795ecf5134403c2e7b53f4c4a90837
         | 
| 7 | 
            +
              data.tar.gz: 1c67d4d1f639c2fd28440d49581f4ce1262c7a86b5f11a7591263bbb96537ba59742adbfa2e01588b3a1c95bc379fabab2d92b374127a34bb10a985ff1e549de
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1. | 
| 1 | 
            +
            1.149.0
         | 
| @@ -4229,95 +4229,101 @@ module Aws::Lambda | |
| 4229 4229 | 
             
                #
         | 
| 4230 4230 | 
             
                # @example EventStream Operation Example
         | 
| 4231 4231 | 
             
                #
         | 
| 4232 | 
            -
                #   You can process the event once it arrives immediately, or wait until the
         | 
| 4233 | 
            -
                #   full response is complete and iterate through the eventstream enumerator.
         | 
| 4234 | 
            -
                #
         | 
| 4235 | 
            -
                #   To interact with event immediately, you need to register  | 
| 4236 | 
            -
                #   with callbacks. Callbacks can be registered for specific events or for all
         | 
| 4237 | 
            -
                #   events, including error events.
         | 
| 4238 | 
            -
                #
         | 
| 4239 | 
            -
                #   Callbacks can be passed into the `:event_stream_handler` option or within a
         | 
| 4240 | 
            -
                #   block statement attached to the #invoke_with_response_stream call directly. Hybrid
         | 
| 4241 | 
            -
                #   pattern of both is also supported.
         | 
| 4242 | 
            -
                #
         | 
| 4243 | 
            -
                #   `:event_stream_handler` option takes in either a Proc object or
         | 
| 4244 | 
            -
                #   Aws::Lambda::EventStreams::InvokeWithResponseStreamResponseEvent object.
         | 
| 4245 | 
            -
                #
         | 
| 4246 | 
            -
                #   Usage pattern a): Callbacks with a block attached to #invoke_with_response_stream
         | 
| 4247 | 
            -
                # | 
| 4248 | 
            -
                #
         | 
| 4249 | 
            -
                #      | 
| 4250 | 
            -
                # | 
| 4251 | 
            -
                # | 
| 4252 | 
            -
                # | 
| 4253 | 
            -
                # | 
| 4254 | 
            -
                # | 
| 4255 | 
            -
                # | 
| 4256 | 
            -
                # | 
| 4257 | 
            -
                #        | 
| 4258 | 
            -
                #
         | 
| 4259 | 
            -
                #       stream.on_event do |event|
         | 
| 4260 | 
            -
                #         # process all events arrive
         | 
| 4261 | 
            -
                #         puts event.event_type
         | 
| 4262 | 
            -
                #         ...
         | 
| 4263 | 
            -
                #       end
         | 
| 4264 | 
            -
                #
         | 
| 4232 | 
            +
                #   # You can process the event once it arrives immediately, or wait until the
         | 
| 4233 | 
            +
                #   # full response is complete and iterate through the eventstream enumerator.
         | 
| 4234 | 
            +
                #
         | 
| 4235 | 
            +
                #   # To interact with event immediately, you need to register invoke_with_response_stream
         | 
| 4236 | 
            +
                #   # with callbacks. Callbacks can be registered for specific events or for all
         | 
| 4237 | 
            +
                #   # events, including error events.
         | 
| 4238 | 
            +
                #
         | 
| 4239 | 
            +
                #   # Callbacks can be passed into the `:event_stream_handler` option or within a
         | 
| 4240 | 
            +
                #   # block statement attached to the #invoke_with_response_stream call directly. Hybrid
         | 
| 4241 | 
            +
                #   # pattern of both is also supported.
         | 
| 4242 | 
            +
                #
         | 
| 4243 | 
            +
                #   # `:event_stream_handler` option takes in either a Proc object or
         | 
| 4244 | 
            +
                #   # Aws::Lambda::EventStreams::InvokeWithResponseStreamResponseEvent object.
         | 
| 4245 | 
            +
                #
         | 
| 4246 | 
            +
                #   # Usage pattern a): Callbacks with a block attached to #invoke_with_response_stream
         | 
| 4247 | 
            +
                #   # Example for registering callbacks for all event types and an error event
         | 
| 4248 | 
            +
                #   client.invoke_with_response_stream(
         | 
| 4249 | 
            +
                #     # params input
         | 
| 4250 | 
            +
                #   ) do |stream|
         | 
| 4251 | 
            +
                #     stream.on_error_event do |event|
         | 
| 4252 | 
            +
                #       # catch unmodeled error event in the stream
         | 
| 4253 | 
            +
                #       raise event
         | 
| 4254 | 
            +
                #       # => Aws::Errors::EventError
         | 
| 4255 | 
            +
                #       # event.event_type => :error
         | 
| 4256 | 
            +
                #       # event.error_code => String
         | 
| 4257 | 
            +
                #       # event.error_message => String
         | 
| 4265 4258 | 
             
                #     end
         | 
| 4266 4259 | 
             
                #
         | 
| 4267 | 
            -
                # | 
| 4268 | 
            -
                #
         | 
| 4269 | 
            -
                # | 
| 4270 | 
            -
                # | 
| 4271 | 
            -
                #
         | 
| 4272 | 
            -
                #       handler = Aws::Lambda::EventStreams::InvokeWithResponseStreamResponseEvent.new
         | 
| 4273 | 
            -
                #       handler.on_payload_chunk_event do |event|
         | 
| 4274 | 
            -
                #         event # => Aws::Lambda::Types::PayloadChunk
         | 
| 4275 | 
            -
                #       end
         | 
| 4276 | 
            -
                #       handler.on_invoke_complete_event do |event|
         | 
| 4277 | 
            -
                #         event # => Aws::Lambda::Types::InvokeComplete
         | 
| 4278 | 
            -
                #       end
         | 
| 4279 | 
            -
                #
         | 
| 4280 | 
            -
                #     client.invoke_with_response_stream( # params input #, event_stream_handler: handler)
         | 
| 4281 | 
            -
                #
         | 
| 4282 | 
            -
                #     2) Use a Ruby Proc object
         | 
| 4283 | 
            -
                #     Example for registering callbacks with specific events
         | 
| 4284 | 
            -
                #
         | 
| 4285 | 
            -
                #     handler = Proc.new do |stream|
         | 
| 4286 | 
            -
                #       stream.on_payload_chunk_event do |event|
         | 
| 4287 | 
            -
                #         event # => Aws::Lambda::Types::PayloadChunk
         | 
| 4288 | 
            -
                #       end
         | 
| 4289 | 
            -
                #       stream.on_invoke_complete_event do |event|
         | 
| 4290 | 
            -
                #         event # => Aws::Lambda::Types::InvokeComplete
         | 
| 4291 | 
            -
                #       end
         | 
| 4260 | 
            +
                #     stream.on_event do |event|
         | 
| 4261 | 
            +
                #       # process all events arrive
         | 
| 4262 | 
            +
                #       puts event.event_type
         | 
| 4263 | 
            +
                #       # ...
         | 
| 4292 4264 | 
             
                #     end
         | 
| 4293 | 
            -
                #
         | 
| 4294 | 
            -
                # | 
| 4295 | 
            -
                #
         | 
| 4296 | 
            -
                #    | 
| 4297 | 
            -
                #
         | 
| 4298 | 
            -
                # | 
| 4299 | 
            -
                # | 
| 4300 | 
            -
                # | 
| 4301 | 
            -
                # | 
| 4302 | 
            -
                # | 
| 4303 | 
            -
                # | 
| 4304 | 
            -
                # | 
| 4305 | 
            -
                #
         | 
| 4306 | 
            -
                # | 
| 4307 | 
            -
                # | 
| 4308 | 
            -
                # | 
| 4309 | 
            -
                # | 
| 4310 | 
            -
                # | 
| 4311 | 
            -
                # | 
| 4312 | 
            -
                # | 
| 4313 | 
            -
                # | 
| 4314 | 
            -
                # | 
| 4265 | 
            +
                #   end
         | 
| 4266 | 
            +
                #
         | 
| 4267 | 
            +
                #   # Usage pattern b): Pass in `:event_stream_handler` for #invoke_with_response_stream
         | 
| 4268 | 
            +
                #   #  1) Create a Aws::Lambda::EventStreams::InvokeWithResponseStreamResponseEvent object
         | 
| 4269 | 
            +
                #   #  Example for registering callbacks with specific events
         | 
| 4270 | 
            +
                #
         | 
| 4271 | 
            +
                #   handler = Aws::Lambda::EventStreams::InvokeWithResponseStreamResponseEvent.new
         | 
| 4272 | 
            +
                #   handler.on_payload_chunk_event do |event|
         | 
| 4273 | 
            +
                #     event # => Aws::Lambda::Types::PayloadChunk
         | 
| 4274 | 
            +
                #   end
         | 
| 4275 | 
            +
                #   handler.on_invoke_complete_event do |event|
         | 
| 4276 | 
            +
                #     event # => Aws::Lambda::Types::InvokeComplete
         | 
| 4277 | 
            +
                #   end
         | 
| 4278 | 
            +
                #
         | 
| 4279 | 
            +
                #   client.invoke_with_response_stream(
         | 
| 4280 | 
            +
                #     # params inputs
         | 
| 4281 | 
            +
                #     event_stream_handler: handler
         | 
| 4282 | 
            +
                #   )
         | 
| 4283 | 
            +
                #
         | 
| 4284 | 
            +
                #   #  2) Use a Ruby Proc object
         | 
| 4285 | 
            +
                #   #  Example for registering callbacks with specific events
         | 
| 4286 | 
            +
                #   handler = Proc.new do |stream|
         | 
| 4287 | 
            +
                #     stream.on_payload_chunk_event do |event|
         | 
| 4288 | 
            +
                #       event # => Aws::Lambda::Types::PayloadChunk
         | 
| 4315 4289 | 
             
                #     end
         | 
| 4290 | 
            +
                #     stream.on_invoke_complete_event do |event|
         | 
| 4291 | 
            +
                #       event # => Aws::Lambda::Types::InvokeComplete
         | 
| 4292 | 
            +
                #     end
         | 
| 4293 | 
            +
                #   end
         | 
| 4294 | 
            +
                #
         | 
| 4295 | 
            +
                #   client.invoke_with_response_stream(
         | 
| 4296 | 
            +
                #     # params inputs
         | 
| 4297 | 
            +
                #     event_stream_handler: handler
         | 
| 4298 | 
            +
                #   )
         | 
| 4299 | 
            +
                #
         | 
| 4300 | 
            +
                #   #  Usage pattern c): Hybrid pattern of a) and b)
         | 
| 4301 | 
            +
                #   handler = Aws::Lambda::EventStreams::InvokeWithResponseStreamResponseEvent.new
         | 
| 4302 | 
            +
                #   handler.on_payload_chunk_event do |event|
         | 
| 4303 | 
            +
                #     event # => Aws::Lambda::Types::PayloadChunk
         | 
| 4304 | 
            +
                #   end
         | 
| 4305 | 
            +
                #   handler.on_invoke_complete_event do |event|
         | 
| 4306 | 
            +
                #     event # => Aws::Lambda::Types::InvokeComplete
         | 
| 4307 | 
            +
                #   end
         | 
| 4308 | 
            +
                #
         | 
| 4309 | 
            +
                #   client.invoke_with_response_stream(
         | 
| 4310 | 
            +
                #     # params input
         | 
| 4311 | 
            +
                #     event_stream_handler: handler
         | 
| 4312 | 
            +
                #   ) do |stream|
         | 
| 4313 | 
            +
                #     stream.on_error_event do |event|
         | 
| 4314 | 
            +
                #       # catch unmodeled error event in the stream
         | 
| 4315 | 
            +
                #       raise event
         | 
| 4316 | 
            +
                #       # => Aws::Errors::EventError
         | 
| 4317 | 
            +
                #       # event.event_type => :error
         | 
| 4318 | 
            +
                #       # event.error_code => String
         | 
| 4319 | 
            +
                #       # event.error_message => String
         | 
| 4320 | 
            +
                #     end
         | 
| 4321 | 
            +
                #   end
         | 
| 4316 4322 | 
             
                #
         | 
| 4317 | 
            -
                #   You can also iterate through events after the response complete.
         | 
| 4318 | 
            -
                #
         | 
| 4319 | 
            -
                #    | 
| 4320 | 
            -
                #   For parameter input example, please refer to following request syntax
         | 
| 4323 | 
            +
                #   # You can also iterate through events after the response complete.
         | 
| 4324 | 
            +
                #   # Events are available at
         | 
| 4325 | 
            +
                #   resp.event_stream # => Enumerator
         | 
| 4326 | 
            +
                #   # For parameter input example, please refer to following request syntax.
         | 
| 4321 4327 | 
             
                #
         | 
| 4322 4328 | 
             
                # @example Request syntax with placeholder values
         | 
| 4323 4329 | 
             
                #
         | 
| @@ -4334,14 +4340,14 @@ module Aws::Lambda | |
| 4334 4340 | 
             
                #
         | 
| 4335 4341 | 
             
                #   resp.status_code #=> Integer
         | 
| 4336 4342 | 
             
                #   resp.executed_version #=> String
         | 
| 4337 | 
            -
                #   All events are available at resp.event_stream:
         | 
| 4343 | 
            +
                #   # All events are available at resp.event_stream:
         | 
| 4338 4344 | 
             
                #   resp.event_stream #=> Enumerator
         | 
| 4339 4345 | 
             
                #   resp.event_stream.event_types #=> [:payload_chunk, :invoke_complete]
         | 
| 4340 4346 | 
             
                #
         | 
| 4341 | 
            -
                #   For :payload_chunk event available at #on_payload_chunk_event callback and response eventstream enumerator:
         | 
| 4347 | 
            +
                #   # For :payload_chunk event available at #on_payload_chunk_event callback and response eventstream enumerator:
         | 
| 4342 4348 | 
             
                #   event.payload #=> String
         | 
| 4343 4349 | 
             
                #
         | 
| 4344 | 
            -
                #   For :invoke_complete event available at #on_invoke_complete_event callback and response eventstream enumerator:
         | 
| 4350 | 
            +
                #   # For :invoke_complete event available at #on_invoke_complete_event callback and response eventstream enumerator:
         | 
| 4345 4351 | 
             
                #   event.error_code #=> String
         | 
| 4346 4352 | 
             
                #   event.error_details #=> String
         | 
| 4347 4353 | 
             
                #   event.log_result #=> String
         | 
| @@ -8199,7 +8205,7 @@ module Aws::Lambda | |
| 8199 8205 | 
             
                    tracer: tracer
         | 
| 8200 8206 | 
             
                  )
         | 
| 8201 8207 | 
             
                  context[:gem_name] = 'aws-sdk-lambda'
         | 
| 8202 | 
            -
                  context[:gem_version] = '1. | 
| 8208 | 
            +
                  context[:gem_version] = '1.149.0'
         | 
| 8203 8209 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 8204 8210 | 
             
                end
         | 
| 8205 8211 |  | 
    
        data/lib/aws-sdk-lambda.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aws-sdk-lambda
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.149.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-core
         |