aws-sdk-kinesis 1.75.0 → 1.76.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-kinesis/async_client.rb +215 -190
- data/lib/aws-sdk-kinesis/client.rb +1 -1
- data/lib/aws-sdk-kinesis.rb +1 -1
- data/sig/async_client.rbs +87 -0
- data/sig/client.rbs +0 -16
- metadata +3 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 2287c9e6efff4e0fa739ca99a3a3ae6460be8d7c1b2c2596bb7ab78595b7365b
         | 
| 4 | 
            +
              data.tar.gz: dde83c35aff74ae8b338ed1007c853f09fe13ad498f1ccaea0620460bfb489e9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 3b6f87e411a43a991dc24a22c5167f61bacde443fd009ad1334622061bcc70a4dffb2b6cac85c6e63176cd63c5ce35d2b29f1d67068935a001a4653b13437172
         | 
| 7 | 
            +
              data.tar.gz: f6564691cebad010324c834979b68571559c2e749e7965701751dcf982958f37f291e298be8b7ad37e8981f7d5fab5e2fa73ebbf269f9c90e9bab4c3d7678715
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1. | 
| 1 | 
            +
            1.76.0
         | 
| @@ -10,32 +10,44 @@ | |
| 10 10 | 
             
            begin
         | 
| 11 11 | 
             
              require 'http/2'
         | 
| 12 12 | 
             
            rescue LoadError; end
         | 
| 13 | 
            -
            require 'aws-sdk-core/plugins/credentials_configuration | 
| 14 | 
            -
            require 'aws-sdk-core/plugins/logging | 
| 15 | 
            -
            require 'aws-sdk-core/plugins/param_converter | 
| 16 | 
            -
            require 'aws-sdk-core/plugins/param_validator | 
| 17 | 
            -
            require 'aws-sdk-core/plugins/user_agent | 
| 18 | 
            -
            require 'aws-sdk-core/plugins/helpful_socket_errors | 
| 19 | 
            -
            require 'aws-sdk-core/plugins/retry_errors | 
| 20 | 
            -
            require 'aws-sdk-core/plugins/global_configuration | 
| 21 | 
            -
            require 'aws-sdk-core/plugins/regional_endpoint | 
| 22 | 
            -
            require 'aws-sdk-core/plugins/stub_responses | 
| 23 | 
            -
            require 'aws-sdk-core/plugins/idempotency_token | 
| 24 | 
            -
            require 'aws-sdk-core/plugins/invocation_id | 
| 25 | 
            -
            require 'aws-sdk-core/plugins/jsonvalue_converter | 
| 26 | 
            -
            require 'aws-sdk-core/plugins/http_checksum | 
| 27 | 
            -
            require 'aws-sdk-core/plugins/checksum_algorithm | 
| 28 | 
            -
            require 'aws-sdk-core/plugins/request_compression | 
| 29 | 
            -
            require 'aws-sdk-core/plugins/defaults_mode | 
| 30 | 
            -
            require 'aws-sdk-core/plugins/recursion_detection | 
| 31 | 
            -
            require 'aws-sdk-core/plugins/telemetry | 
| 32 | 
            -
            require 'aws-sdk-core/plugins/sign | 
| 33 | 
            -
            require 'aws-sdk-core/plugins/protocols/json_rpc | 
| 34 | 
            -
            require 'aws-sdk-core/plugins/event_stream_configuration | 
| 13 | 
            +
            require 'aws-sdk-core/plugins/credentials_configuration'
         | 
| 14 | 
            +
            require 'aws-sdk-core/plugins/logging'
         | 
| 15 | 
            +
            require 'aws-sdk-core/plugins/param_converter'
         | 
| 16 | 
            +
            require 'aws-sdk-core/plugins/param_validator'
         | 
| 17 | 
            +
            require 'aws-sdk-core/plugins/user_agent'
         | 
| 18 | 
            +
            require 'aws-sdk-core/plugins/helpful_socket_errors'
         | 
| 19 | 
            +
            require 'aws-sdk-core/plugins/retry_errors'
         | 
| 20 | 
            +
            require 'aws-sdk-core/plugins/global_configuration'
         | 
| 21 | 
            +
            require 'aws-sdk-core/plugins/regional_endpoint'
         | 
| 22 | 
            +
            require 'aws-sdk-core/plugins/stub_responses'
         | 
| 23 | 
            +
            require 'aws-sdk-core/plugins/idempotency_token'
         | 
| 24 | 
            +
            require 'aws-sdk-core/plugins/invocation_id'
         | 
| 25 | 
            +
            require 'aws-sdk-core/plugins/jsonvalue_converter'
         | 
| 26 | 
            +
            require 'aws-sdk-core/plugins/http_checksum'
         | 
| 27 | 
            +
            require 'aws-sdk-core/plugins/checksum_algorithm'
         | 
| 28 | 
            +
            require 'aws-sdk-core/plugins/request_compression'
         | 
| 29 | 
            +
            require 'aws-sdk-core/plugins/defaults_mode'
         | 
| 30 | 
            +
            require 'aws-sdk-core/plugins/recursion_detection'
         | 
| 31 | 
            +
            require 'aws-sdk-core/plugins/telemetry'
         | 
| 32 | 
            +
            require 'aws-sdk-core/plugins/sign'
         | 
| 33 | 
            +
            require 'aws-sdk-core/plugins/protocols/json_rpc'
         | 
| 34 | 
            +
            require 'aws-sdk-core/plugins/event_stream_configuration'
         | 
| 35 35 |  | 
| 36 36 | 
             
            Aws::Plugins::GlobalConfiguration.add_identifier(:kinesis)
         | 
| 37 37 |  | 
| 38 38 | 
             
            module Aws::Kinesis
         | 
| 39 | 
            +
              # An API async client for Kinesis.  To construct an async client, you need to configure a `:region` and `:credentials`.
         | 
| 40 | 
            +
              #
         | 
| 41 | 
            +
              #     async_client = Aws::Kinesis::AsyncClient.new(
         | 
| 42 | 
            +
              #       region: region_name,
         | 
| 43 | 
            +
              #       credentials: credentials,
         | 
| 44 | 
            +
              #       # ...
         | 
| 45 | 
            +
              #     )
         | 
| 46 | 
            +
              #
         | 
| 47 | 
            +
              # For details on configuring region and credentials see
         | 
| 48 | 
            +
              # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
         | 
| 49 | 
            +
              #
         | 
| 50 | 
            +
              # See {#initialize} for a full list of supported configuration options.
         | 
| 39 51 | 
             
              class AsyncClient < Seahorse::Client::AsyncBase
         | 
| 40 52 |  | 
| 41 53 | 
             
                include Aws::AsyncClientStubs
         | 
| @@ -68,6 +80,13 @@ module Aws::Kinesis | |
| 68 80 | 
             
                add_plugin(Aws::Plugins::EventStreamConfiguration)
         | 
| 69 81 | 
             
                add_plugin(Aws::Kinesis::Plugins::Endpoints)
         | 
| 70 82 |  | 
| 83 | 
            +
                # @overload initialize(options)
         | 
| 84 | 
            +
                #   @param [Hash] options
         | 
| 85 | 
            +
                #
         | 
| 86 | 
            +
                #   @option options [Array<Seahorse::Client::Plugin>] :plugins ([]])
         | 
| 87 | 
            +
                #     A list of plugins to apply to the client. Each plugin is either a
         | 
| 88 | 
            +
                #     class name or an instance of a plugin class.
         | 
| 89 | 
            +
                #
         | 
| 71 90 | 
             
                #   @option options [required, Aws::CredentialProvider] :credentials
         | 
| 72 91 | 
             
                #     Your AWS credentials. This can be an instance of any one of the
         | 
| 73 92 | 
             
                #     following classes:
         | 
| @@ -445,167 +464,173 @@ module Aws::Kinesis | |
| 445 464 | 
             
                #
         | 
| 446 465 | 
             
                # @example EventStream Operation Example
         | 
| 447 466 | 
             
                #
         | 
| 448 | 
            -
                #   You can process the event once it arrives immediately, or wait until the
         | 
| 449 | 
            -
                #   full response is complete and iterate through the eventstream enumerator.
         | 
| 450 | 
            -
                #
         | 
| 451 | 
            -
                #   To interact with event immediately, you need to register  | 
| 452 | 
            -
                #   with callbacks. Callbacks can be registered for specific events or for all
         | 
| 453 | 
            -
                #   events, including error events.
         | 
| 454 | 
            -
                #
         | 
| 455 | 
            -
                #   Callbacks can be passed into the `:event_stream_handler` option or within a
         | 
| 456 | 
            -
                #   block statement attached to the #subscribe_to_shard call directly. Hybrid
         | 
| 457 | 
            -
                #   pattern of both is also supported.
         | 
| 458 | 
            -
                #
         | 
| 459 | 
            -
                #   `:event_stream_handler` option takes in either a Proc object or
         | 
| 460 | 
            -
                #   Aws::Kinesis::EventStreams::SubscribeToShardEventStream object.
         | 
| 461 | 
            -
                #
         | 
| 462 | 
            -
                #   Usage pattern a): Callbacks with a block attached to #subscribe_to_shard
         | 
| 463 | 
            -
                # | 
| 464 | 
            -
                #
         | 
| 465 | 
            -
                #      | 
| 466 | 
            -
                # | 
| 467 | 
            -
                # | 
| 468 | 
            -
                # | 
| 469 | 
            -
                # | 
| 470 | 
            -
                # | 
| 471 | 
            -
                # | 
| 472 | 
            -
                # | 
| 473 | 
            -
                #        | 
| 474 | 
            -
                #
         | 
| 475 | 
            -
                #       stream.on_event do |event|
         | 
| 476 | 
            -
                #         # process all events arrive
         | 
| 477 | 
            -
                #         puts event.event_type
         | 
| 478 | 
            -
                #         ...
         | 
| 479 | 
            -
                #       end
         | 
| 480 | 
            -
                #
         | 
| 467 | 
            +
                #   # You can process the event once it arrives immediately, or wait until the
         | 
| 468 | 
            +
                #   # full response is complete and iterate through the eventstream enumerator.
         | 
| 469 | 
            +
                #
         | 
| 470 | 
            +
                #   # To interact with event immediately, you need to register subscribe_to_shard
         | 
| 471 | 
            +
                #   # with callbacks. Callbacks can be registered for specific events or for all
         | 
| 472 | 
            +
                #   # events, including error events.
         | 
| 473 | 
            +
                #
         | 
| 474 | 
            +
                #   # Callbacks can be passed into the `:event_stream_handler` option or within a
         | 
| 475 | 
            +
                #   # block statement attached to the #subscribe_to_shard call directly. Hybrid
         | 
| 476 | 
            +
                #   # pattern of both is also supported.
         | 
| 477 | 
            +
                #
         | 
| 478 | 
            +
                #   # `:event_stream_handler` option takes in either a Proc object or
         | 
| 479 | 
            +
                #   # Aws::Kinesis::EventStreams::SubscribeToShardEventStream object.
         | 
| 480 | 
            +
                #
         | 
| 481 | 
            +
                #   # Usage pattern a): Callbacks with a block attached to #subscribe_to_shard
         | 
| 482 | 
            +
                #   # Example for registering callbacks for all event types and an error event
         | 
| 483 | 
            +
                #   client.subscribe_to_shard(
         | 
| 484 | 
            +
                #     # params input
         | 
| 485 | 
            +
                #   ) do |stream|
         | 
| 486 | 
            +
                #     stream.on_error_event do |event|
         | 
| 487 | 
            +
                #       # catch unmodeled error event in the stream
         | 
| 488 | 
            +
                #       raise event
         | 
| 489 | 
            +
                #       # => Aws::Errors::EventError
         | 
| 490 | 
            +
                #       # event.event_type => :error
         | 
| 491 | 
            +
                #       # event.error_code => String
         | 
| 492 | 
            +
                #       # event.error_message => String
         | 
| 481 493 | 
             
                #     end
         | 
| 482 494 | 
             
                #
         | 
| 483 | 
            -
                # | 
| 484 | 
            -
                #
         | 
| 485 | 
            -
                # | 
| 486 | 
            -
                # | 
| 487 | 
            -
                #
         | 
| 488 | 
            -
                #       handler = Aws::Kinesis::EventStreams::SubscribeToShardEventStream.new
         | 
| 489 | 
            -
                #       handler.on_subscribe_to_shard_event_event do |event|
         | 
| 490 | 
            -
                #         event # => Aws::Kinesis::Types::SubscribeToShardEvent
         | 
| 491 | 
            -
                #       end
         | 
| 492 | 
            -
                #       handler.on_resource_not_found_exception_event do |event|
         | 
| 493 | 
            -
                #         event # => Aws::Kinesis::Types::ResourceNotFoundException
         | 
| 494 | 
            -
                #       end
         | 
| 495 | 
            -
                #       handler.on_resource_in_use_exception_event do |event|
         | 
| 496 | 
            -
                #         event # => Aws::Kinesis::Types::ResourceInUseException
         | 
| 497 | 
            -
                #       end
         | 
| 498 | 
            -
                #       handler.on_kms_disabled_exception_event do |event|
         | 
| 499 | 
            -
                #         event # => Aws::Kinesis::Types::KMSDisabledException
         | 
| 500 | 
            -
                #       end
         | 
| 501 | 
            -
                #       handler.on_kms_invalid_state_exception_event do |event|
         | 
| 502 | 
            -
                #         event # => Aws::Kinesis::Types::KMSInvalidStateException
         | 
| 503 | 
            -
                #       end
         | 
| 504 | 
            -
                #       handler.on_kms_access_denied_exception_event do |event|
         | 
| 505 | 
            -
                #         event # => Aws::Kinesis::Types::KMSAccessDeniedException
         | 
| 506 | 
            -
                #       end
         | 
| 507 | 
            -
                #       handler.on_kms_not_found_exception_event do |event|
         | 
| 508 | 
            -
                #         event # => Aws::Kinesis::Types::KMSNotFoundException
         | 
| 509 | 
            -
                #       end
         | 
| 510 | 
            -
                #       handler.on_kms_opt_in_required_event do |event|
         | 
| 511 | 
            -
                #         event # => Aws::Kinesis::Types::KMSOptInRequired
         | 
| 512 | 
            -
                #       end
         | 
| 513 | 
            -
                #       handler.on_kms_throttling_exception_event do |event|
         | 
| 514 | 
            -
                #         event # => Aws::Kinesis::Types::KMSThrottlingException
         | 
| 515 | 
            -
                #       end
         | 
| 516 | 
            -
                #       handler.on_internal_failure_exception_event do |event|
         | 
| 517 | 
            -
                #         event # => Aws::Kinesis::Types::InternalFailureException
         | 
| 518 | 
            -
                #       end
         | 
| 519 | 
            -
                #
         | 
| 520 | 
            -
                #     client.subscribe_to_shard( # params input #, event_stream_handler: handler)
         | 
| 521 | 
            -
                #
         | 
| 522 | 
            -
                #     2) Use a Ruby Proc object
         | 
| 523 | 
            -
                #     Example for registering callbacks with specific events
         | 
| 524 | 
            -
                #
         | 
| 525 | 
            -
                #     handler = Proc.new do |stream|
         | 
| 526 | 
            -
                #       stream.on_subscribe_to_shard_event_event do |event|
         | 
| 527 | 
            -
                #         event # => Aws::Kinesis::Types::SubscribeToShardEvent
         | 
| 528 | 
            -
                #       end
         | 
| 529 | 
            -
                #       stream.on_resource_not_found_exception_event do |event|
         | 
| 530 | 
            -
                #         event # => Aws::Kinesis::Types::ResourceNotFoundException
         | 
| 531 | 
            -
                #       end
         | 
| 532 | 
            -
                #       stream.on_resource_in_use_exception_event do |event|
         | 
| 533 | 
            -
                #         event # => Aws::Kinesis::Types::ResourceInUseException
         | 
| 534 | 
            -
                #       end
         | 
| 535 | 
            -
                #       stream.on_kms_disabled_exception_event do |event|
         | 
| 536 | 
            -
                #         event # => Aws::Kinesis::Types::KMSDisabledException
         | 
| 537 | 
            -
                #       end
         | 
| 538 | 
            -
                #       stream.on_kms_invalid_state_exception_event do |event|
         | 
| 539 | 
            -
                #         event # => Aws::Kinesis::Types::KMSInvalidStateException
         | 
| 540 | 
            -
                #       end
         | 
| 541 | 
            -
                #       stream.on_kms_access_denied_exception_event do |event|
         | 
| 542 | 
            -
                #         event # => Aws::Kinesis::Types::KMSAccessDeniedException
         | 
| 543 | 
            -
                #       end
         | 
| 544 | 
            -
                #       stream.on_kms_not_found_exception_event do |event|
         | 
| 545 | 
            -
                #         event # => Aws::Kinesis::Types::KMSNotFoundException
         | 
| 546 | 
            -
                #       end
         | 
| 547 | 
            -
                #       stream.on_kms_opt_in_required_event do |event|
         | 
| 548 | 
            -
                #         event # => Aws::Kinesis::Types::KMSOptInRequired
         | 
| 549 | 
            -
                #       end
         | 
| 550 | 
            -
                #       stream.on_kms_throttling_exception_event do |event|
         | 
| 551 | 
            -
                #         event # => Aws::Kinesis::Types::KMSThrottlingException
         | 
| 552 | 
            -
                #       end
         | 
| 553 | 
            -
                #       stream.on_internal_failure_exception_event do |event|
         | 
| 554 | 
            -
                #         event # => Aws::Kinesis::Types::InternalFailureException
         | 
| 555 | 
            -
                #       end
         | 
| 495 | 
            +
                #     stream.on_event do |event|
         | 
| 496 | 
            +
                #       # process all events arrive
         | 
| 497 | 
            +
                #       puts event.event_type
         | 
| 498 | 
            +
                #       # ...
         | 
| 556 499 | 
             
                #     end
         | 
| 557 | 
            -
                #
         | 
| 558 | 
            -
                # | 
| 559 | 
            -
                #
         | 
| 560 | 
            -
                #    | 
| 561 | 
            -
                #
         | 
| 562 | 
            -
                # | 
| 563 | 
            -
                # | 
| 564 | 
            -
                # | 
| 565 | 
            -
                # | 
| 566 | 
            -
                # | 
| 567 | 
            -
                # | 
| 568 | 
            -
                # | 
| 569 | 
            -
                # | 
| 570 | 
            -
                # | 
| 571 | 
            -
                # | 
| 572 | 
            -
                # | 
| 573 | 
            -
                # | 
| 574 | 
            -
                # | 
| 575 | 
            -
                # | 
| 576 | 
            -
                # | 
| 577 | 
            -
                # | 
| 578 | 
            -
                # | 
| 579 | 
            -
                # | 
| 580 | 
            -
                # | 
| 581 | 
            -
                # | 
| 582 | 
            -
                # | 
| 583 | 
            -
                # | 
| 584 | 
            -
                # | 
| 585 | 
            -
                # | 
| 586 | 
            -
                # | 
| 587 | 
            -
                # | 
| 588 | 
            -
                # | 
| 589 | 
            -
                # | 
| 590 | 
            -
                # | 
| 591 | 
            -
                # | 
| 592 | 
            -
                # | 
| 593 | 
            -
                #
         | 
| 594 | 
            -
                # | 
| 595 | 
            -
                # | 
| 596 | 
            -
                # | 
| 597 | 
            -
                # | 
| 598 | 
            -
                # | 
| 599 | 
            -
                # | 
| 600 | 
            -
                # | 
| 601 | 
            -
                # | 
| 602 | 
            -
                # | 
| 500 | 
            +
                #   end
         | 
| 501 | 
            +
                #
         | 
| 502 | 
            +
                #   # Usage pattern b): Pass in `:event_stream_handler` for #subscribe_to_shard
         | 
| 503 | 
            +
                #   #  1) Create a Aws::Kinesis::EventStreams::SubscribeToShardEventStream object
         | 
| 504 | 
            +
                #   #  Example for registering callbacks with specific events
         | 
| 505 | 
            +
                #
         | 
| 506 | 
            +
                #   handler = Aws::Kinesis::EventStreams::SubscribeToShardEventStream.new
         | 
| 507 | 
            +
                #   handler.on_subscribe_to_shard_event_event do |event|
         | 
| 508 | 
            +
                #     event # => Aws::Kinesis::Types::SubscribeToShardEvent
         | 
| 509 | 
            +
                #   end
         | 
| 510 | 
            +
                #   handler.on_resource_not_found_exception_event do |event|
         | 
| 511 | 
            +
                #     event # => Aws::Kinesis::Types::ResourceNotFoundException
         | 
| 512 | 
            +
                #   end
         | 
| 513 | 
            +
                #   handler.on_resource_in_use_exception_event do |event|
         | 
| 514 | 
            +
                #     event # => Aws::Kinesis::Types::ResourceInUseException
         | 
| 515 | 
            +
                #   end
         | 
| 516 | 
            +
                #   handler.on_kms_disabled_exception_event do |event|
         | 
| 517 | 
            +
                #     event # => Aws::Kinesis::Types::KMSDisabledException
         | 
| 518 | 
            +
                #   end
         | 
| 519 | 
            +
                #   handler.on_kms_invalid_state_exception_event do |event|
         | 
| 520 | 
            +
                #     event # => Aws::Kinesis::Types::KMSInvalidStateException
         | 
| 521 | 
            +
                #   end
         | 
| 522 | 
            +
                #   handler.on_kms_access_denied_exception_event do |event|
         | 
| 523 | 
            +
                #     event # => Aws::Kinesis::Types::KMSAccessDeniedException
         | 
| 524 | 
            +
                #   end
         | 
| 525 | 
            +
                #   handler.on_kms_not_found_exception_event do |event|
         | 
| 526 | 
            +
                #     event # => Aws::Kinesis::Types::KMSNotFoundException
         | 
| 527 | 
            +
                #   end
         | 
| 528 | 
            +
                #   handler.on_kms_opt_in_required_event do |event|
         | 
| 529 | 
            +
                #     event # => Aws::Kinesis::Types::KMSOptInRequired
         | 
| 530 | 
            +
                #   end
         | 
| 531 | 
            +
                #   handler.on_kms_throttling_exception_event do |event|
         | 
| 532 | 
            +
                #     event # => Aws::Kinesis::Types::KMSThrottlingException
         | 
| 533 | 
            +
                #   end
         | 
| 534 | 
            +
                #   handler.on_internal_failure_exception_event do |event|
         | 
| 535 | 
            +
                #     event # => Aws::Kinesis::Types::InternalFailureException
         | 
| 536 | 
            +
                #   end
         | 
| 537 | 
            +
                #
         | 
| 538 | 
            +
                #   client.subscribe_to_shard(
         | 
| 539 | 
            +
                #     # params inputs
         | 
| 540 | 
            +
                #     event_stream_handler: handler
         | 
| 541 | 
            +
                #   )
         | 
| 542 | 
            +
                #
         | 
| 543 | 
            +
                #   #  2) Use a Ruby Proc object
         | 
| 544 | 
            +
                #   #  Example for registering callbacks with specific events
         | 
| 545 | 
            +
                #   handler = Proc.new do |stream|
         | 
| 546 | 
            +
                #     stream.on_subscribe_to_shard_event_event do |event|
         | 
| 547 | 
            +
                #       event # => Aws::Kinesis::Types::SubscribeToShardEvent
         | 
| 603 548 | 
             
                #     end
         | 
| 549 | 
            +
                #     stream.on_resource_not_found_exception_event do |event|
         | 
| 550 | 
            +
                #       event # => Aws::Kinesis::Types::ResourceNotFoundException
         | 
| 551 | 
            +
                #     end
         | 
| 552 | 
            +
                #     stream.on_resource_in_use_exception_event do |event|
         | 
| 553 | 
            +
                #       event # => Aws::Kinesis::Types::ResourceInUseException
         | 
| 554 | 
            +
                #     end
         | 
| 555 | 
            +
                #     stream.on_kms_disabled_exception_event do |event|
         | 
| 556 | 
            +
                #       event # => Aws::Kinesis::Types::KMSDisabledException
         | 
| 557 | 
            +
                #     end
         | 
| 558 | 
            +
                #     stream.on_kms_invalid_state_exception_event do |event|
         | 
| 559 | 
            +
                #       event # => Aws::Kinesis::Types::KMSInvalidStateException
         | 
| 560 | 
            +
                #     end
         | 
| 561 | 
            +
                #     stream.on_kms_access_denied_exception_event do |event|
         | 
| 562 | 
            +
                #       event # => Aws::Kinesis::Types::KMSAccessDeniedException
         | 
| 563 | 
            +
                #     end
         | 
| 564 | 
            +
                #     stream.on_kms_not_found_exception_event do |event|
         | 
| 565 | 
            +
                #       event # => Aws::Kinesis::Types::KMSNotFoundException
         | 
| 566 | 
            +
                #     end
         | 
| 567 | 
            +
                #     stream.on_kms_opt_in_required_event do |event|
         | 
| 568 | 
            +
                #       event # => Aws::Kinesis::Types::KMSOptInRequired
         | 
| 569 | 
            +
                #     end
         | 
| 570 | 
            +
                #     stream.on_kms_throttling_exception_event do |event|
         | 
| 571 | 
            +
                #       event # => Aws::Kinesis::Types::KMSThrottlingException
         | 
| 572 | 
            +
                #     end
         | 
| 573 | 
            +
                #     stream.on_internal_failure_exception_event do |event|
         | 
| 574 | 
            +
                #       event # => Aws::Kinesis::Types::InternalFailureException
         | 
| 575 | 
            +
                #     end
         | 
| 576 | 
            +
                #   end
         | 
| 577 | 
            +
                #
         | 
| 578 | 
            +
                #   client.subscribe_to_shard(
         | 
| 579 | 
            +
                #     # params inputs
         | 
| 580 | 
            +
                #     event_stream_handler: handler
         | 
| 581 | 
            +
                #   )
         | 
| 582 | 
            +
                #
         | 
| 583 | 
            +
                #   #  Usage pattern c): Hybrid pattern of a) and b)
         | 
| 584 | 
            +
                #   handler = Aws::Kinesis::EventStreams::SubscribeToShardEventStream.new
         | 
| 585 | 
            +
                #   handler.on_subscribe_to_shard_event_event do |event|
         | 
| 586 | 
            +
                #     event # => Aws::Kinesis::Types::SubscribeToShardEvent
         | 
| 587 | 
            +
                #   end
         | 
| 588 | 
            +
                #   handler.on_resource_not_found_exception_event do |event|
         | 
| 589 | 
            +
                #     event # => Aws::Kinesis::Types::ResourceNotFoundException
         | 
| 590 | 
            +
                #   end
         | 
| 591 | 
            +
                #   handler.on_resource_in_use_exception_event do |event|
         | 
| 592 | 
            +
                #     event # => Aws::Kinesis::Types::ResourceInUseException
         | 
| 593 | 
            +
                #   end
         | 
| 594 | 
            +
                #   handler.on_kms_disabled_exception_event do |event|
         | 
| 595 | 
            +
                #     event # => Aws::Kinesis::Types::KMSDisabledException
         | 
| 596 | 
            +
                #   end
         | 
| 597 | 
            +
                #   handler.on_kms_invalid_state_exception_event do |event|
         | 
| 598 | 
            +
                #     event # => Aws::Kinesis::Types::KMSInvalidStateException
         | 
| 599 | 
            +
                #   end
         | 
| 600 | 
            +
                #   handler.on_kms_access_denied_exception_event do |event|
         | 
| 601 | 
            +
                #     event # => Aws::Kinesis::Types::KMSAccessDeniedException
         | 
| 602 | 
            +
                #   end
         | 
| 603 | 
            +
                #   handler.on_kms_not_found_exception_event do |event|
         | 
| 604 | 
            +
                #     event # => Aws::Kinesis::Types::KMSNotFoundException
         | 
| 605 | 
            +
                #   end
         | 
| 606 | 
            +
                #   handler.on_kms_opt_in_required_event do |event|
         | 
| 607 | 
            +
                #     event # => Aws::Kinesis::Types::KMSOptInRequired
         | 
| 608 | 
            +
                #   end
         | 
| 609 | 
            +
                #   handler.on_kms_throttling_exception_event do |event|
         | 
| 610 | 
            +
                #     event # => Aws::Kinesis::Types::KMSThrottlingException
         | 
| 611 | 
            +
                #   end
         | 
| 612 | 
            +
                #   handler.on_internal_failure_exception_event do |event|
         | 
| 613 | 
            +
                #     event # => Aws::Kinesis::Types::InternalFailureException
         | 
| 614 | 
            +
                #   end
         | 
| 615 | 
            +
                #
         | 
| 616 | 
            +
                #   client.subscribe_to_shard(
         | 
| 617 | 
            +
                #     # params input
         | 
| 618 | 
            +
                #     event_stream_handler: handler
         | 
| 619 | 
            +
                #   ) do |stream|
         | 
| 620 | 
            +
                #     stream.on_error_event do |event|
         | 
| 621 | 
            +
                #       # catch unmodeled error event in the stream
         | 
| 622 | 
            +
                #       raise event
         | 
| 623 | 
            +
                #       # => Aws::Errors::EventError
         | 
| 624 | 
            +
                #       # event.event_type => :error
         | 
| 625 | 
            +
                #       # event.error_code => String
         | 
| 626 | 
            +
                #       # event.error_message => String
         | 
| 627 | 
            +
                #     end
         | 
| 628 | 
            +
                #   end
         | 
| 604 629 | 
             
                #
         | 
| 605 | 
            -
                #   You can also iterate through events after the response complete.
         | 
| 606 | 
            -
                #
         | 
| 607 | 
            -
                #    | 
| 608 | 
            -
                #   For parameter input example, please refer to following request syntax
         | 
| 630 | 
            +
                #   # You can also iterate through events after the response complete.
         | 
| 631 | 
            +
                #   # Events are available at
         | 
| 632 | 
            +
                #   resp.event_stream # => Enumerator
         | 
| 633 | 
            +
                #   # For parameter input example, please refer to following request syntax.
         | 
| 609 634 | 
             
                #
         | 
| 610 635 | 
             
                # @example Request syntax with placeholder values
         | 
| 611 636 | 
             
                #
         | 
| @@ -625,11 +650,11 @@ module Aws::Kinesis | |
| 625 650 | 
             
                #
         | 
| 626 651 | 
             
                # @example Response structure
         | 
| 627 652 | 
             
                #
         | 
| 628 | 
            -
                #   All events are available at resp.event_stream:
         | 
| 653 | 
            +
                #   # All events are available at resp.event_stream:
         | 
| 629 654 | 
             
                #   resp.event_stream #=> Enumerator
         | 
| 630 655 | 
             
                #   resp.event_stream.event_types #=> [:subscribe_to_shard_event, :resource_not_found_exception, :resource_in_use_exception, :kms_disabled_exception, :kms_invalid_state_exception, :kms_access_denied_exception, :kms_not_found_exception, :kms_opt_in_required, :kms_throttling_exception, :internal_failure_exception]
         | 
| 631 656 | 
             
                #
         | 
| 632 | 
            -
                #   For :subscribe_to_shard_event event available at #on_subscribe_to_shard_event_event callback and response eventstream enumerator:
         | 
| 657 | 
            +
                #   # For :subscribe_to_shard_event event available at #on_subscribe_to_shard_event_event callback and response eventstream enumerator:
         | 
| 633 658 | 
             
                #   event.records #=> Array
         | 
| 634 659 | 
             
                #   event.records[0].sequence_number #=> String
         | 
| 635 660 | 
             
                #   event.records[0].approximate_arrival_timestamp #=> Time
         | 
| @@ -645,31 +670,31 @@ module Aws::Kinesis | |
| 645 670 | 
             
                #   event.child_shards[0].hash_key_range.starting_hash_key #=> String
         | 
| 646 671 | 
             
                #   event.child_shards[0].hash_key_range.ending_hash_key #=> String
         | 
| 647 672 | 
             
                #
         | 
| 648 | 
            -
                #   For :resource_not_found_exception event available at #on_resource_not_found_exception_event callback and response eventstream enumerator:
         | 
| 673 | 
            +
                #   # For :resource_not_found_exception event available at #on_resource_not_found_exception_event callback and response eventstream enumerator:
         | 
| 649 674 | 
             
                #   event.message #=> String
         | 
| 650 675 | 
             
                #
         | 
| 651 | 
            -
                #   For :resource_in_use_exception event available at #on_resource_in_use_exception_event callback and response eventstream enumerator:
         | 
| 676 | 
            +
                #   # For :resource_in_use_exception event available at #on_resource_in_use_exception_event callback and response eventstream enumerator:
         | 
| 652 677 | 
             
                #   event.message #=> String
         | 
| 653 678 | 
             
                #
         | 
| 654 | 
            -
                #   For :kms_disabled_exception event available at #on_kms_disabled_exception_event callback and response eventstream enumerator:
         | 
| 679 | 
            +
                #   # For :kms_disabled_exception event available at #on_kms_disabled_exception_event callback and response eventstream enumerator:
         | 
| 655 680 | 
             
                #   event.message #=> String
         | 
| 656 681 | 
             
                #
         | 
| 657 | 
            -
                #   For :kms_invalid_state_exception event available at #on_kms_invalid_state_exception_event callback and response eventstream enumerator:
         | 
| 682 | 
            +
                #   # For :kms_invalid_state_exception event available at #on_kms_invalid_state_exception_event callback and response eventstream enumerator:
         | 
| 658 683 | 
             
                #   event.message #=> String
         | 
| 659 684 | 
             
                #
         | 
| 660 | 
            -
                #   For :kms_access_denied_exception event available at #on_kms_access_denied_exception_event callback and response eventstream enumerator:
         | 
| 685 | 
            +
                #   # For :kms_access_denied_exception event available at #on_kms_access_denied_exception_event callback and response eventstream enumerator:
         | 
| 661 686 | 
             
                #   event.message #=> String
         | 
| 662 687 | 
             
                #
         | 
| 663 | 
            -
                #   For :kms_not_found_exception event available at #on_kms_not_found_exception_event callback and response eventstream enumerator:
         | 
| 688 | 
            +
                #   # For :kms_not_found_exception event available at #on_kms_not_found_exception_event callback and response eventstream enumerator:
         | 
| 664 689 | 
             
                #   event.message #=> String
         | 
| 665 690 | 
             
                #
         | 
| 666 | 
            -
                #   For :kms_opt_in_required event available at #on_kms_opt_in_required_event callback and response eventstream enumerator:
         | 
| 691 | 
            +
                #   # For :kms_opt_in_required event available at #on_kms_opt_in_required_event callback and response eventstream enumerator:
         | 
| 667 692 | 
             
                #   event.message #=> String
         | 
| 668 693 | 
             
                #
         | 
| 669 | 
            -
                #   For :kms_throttling_exception event available at #on_kms_throttling_exception_event callback and response eventstream enumerator:
         | 
| 694 | 
            +
                #   # For :kms_throttling_exception event available at #on_kms_throttling_exception_event callback and response eventstream enumerator:
         | 
| 670 695 | 
             
                #   event.message #=> String
         | 
| 671 696 | 
             
                #
         | 
| 672 | 
            -
                #   For :internal_failure_exception event available at #on_internal_failure_exception_event callback and response eventstream enumerator:
         | 
| 697 | 
            +
                #   # For :internal_failure_exception event available at #on_internal_failure_exception_event callback and response eventstream enumerator:
         | 
| 673 698 | 
             
                #   event.message #=> String
         | 
| 674 699 | 
             
                #
         | 
| 675 700 | 
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/SubscribeToShard AWS API Documentation
         | 
| @@ -713,7 +738,7 @@ module Aws::Kinesis | |
| 713 738 | 
             
                    tracer: tracer
         | 
| 714 739 | 
             
                  )
         | 
| 715 740 | 
             
                  context[:gem_name] = 'aws-sdk-kinesis'
         | 
| 716 | 
            -
                  context[:gem_version] = '1. | 
| 741 | 
            +
                  context[:gem_version] = '1.76.0'
         | 
| 717 742 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 718 743 | 
             
                end
         | 
| 719 744 |  | 
    
        data/lib/aws-sdk-kinesis.rb
    CHANGED
    
    
| @@ -0,0 +1,87 @@ | |
| 1 | 
            +
            # WARNING ABOUT GENERATED CODE
         | 
| 2 | 
            +
            #
         | 
| 3 | 
            +
            # This file is generated. See the contributing guide for more information:
         | 
| 4 | 
            +
            # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
         | 
| 5 | 
            +
            #
         | 
| 6 | 
            +
            # WARNING ABOUT GENERATED CODE
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            module Aws
         | 
| 9 | 
            +
              module Kinesis
         | 
| 10 | 
            +
                class AsyncClient < ::Seahorse::Client::AsyncBase
         | 
| 11 | 
            +
                  include ::Aws::AsyncClientStubs
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Kinesis/AsyncClient.html#initialize-instance_method
         | 
| 14 | 
            +
                  def self.new: (
         | 
| 15 | 
            +
                                  ?credentials: untyped,
         | 
| 16 | 
            +
                                  ?region: String,
         | 
| 17 | 
            +
                                  ?access_key_id: String,
         | 
| 18 | 
            +
                                  ?account_id: String,
         | 
| 19 | 
            +
                                  ?adaptive_retry_wait_to_fill: bool,
         | 
| 20 | 
            +
                                  ?convert_params: bool,
         | 
| 21 | 
            +
                                  ?correct_clock_skew: bool,
         | 
| 22 | 
            +
                                  ?defaults_mode: String,
         | 
| 23 | 
            +
                                  ?disable_request_compression: bool,
         | 
| 24 | 
            +
                                  ?endpoint: String,
         | 
| 25 | 
            +
                                  ?event_stream_handler: Proc,
         | 
| 26 | 
            +
                                  ?ignore_configured_endpoint_urls: bool,
         | 
| 27 | 
            +
                                  ?input_event_stream_handler: Proc,
         | 
| 28 | 
            +
                                  ?log_formatter: untyped,
         | 
| 29 | 
            +
                                  ?log_level: Symbol,
         | 
| 30 | 
            +
                                  ?logger: untyped,
         | 
| 31 | 
            +
                                  ?max_attempts: Integer,
         | 
| 32 | 
            +
                                  ?output_event_stream_handler: Proc,
         | 
| 33 | 
            +
                                  ?profile: String,
         | 
| 34 | 
            +
                                  ?request_checksum_calculation: String,
         | 
| 35 | 
            +
                                  ?request_min_compression_size_bytes: Integer,
         | 
| 36 | 
            +
                                  ?response_checksum_validation: String,
         | 
| 37 | 
            +
                                  ?retry_backoff: Proc,
         | 
| 38 | 
            +
                                  ?retry_base_delay: Float,
         | 
| 39 | 
            +
                                  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
         | 
| 40 | 
            +
                                  ?retry_limit: Integer,
         | 
| 41 | 
            +
                                  ?retry_max_delay: Integer,
         | 
| 42 | 
            +
                                  ?retry_mode: ("legacy" | "standard" | "adaptive"),
         | 
| 43 | 
            +
                                  ?sdk_ua_app_id: String,
         | 
| 44 | 
            +
                                  ?secret_access_key: String,
         | 
| 45 | 
            +
                                  ?session_token: String,
         | 
| 46 | 
            +
                                  ?sigv4a_signing_region_set: Array[String],
         | 
| 47 | 
            +
                                  ?simple_json: bool,
         | 
| 48 | 
            +
                                  ?stub_responses: untyped,
         | 
| 49 | 
            +
                                  ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
         | 
| 50 | 
            +
                                  ?token_provider: untyped,
         | 
| 51 | 
            +
                                  ?use_dualstack_endpoint: bool,
         | 
| 52 | 
            +
                                  ?use_fips_endpoint: bool,
         | 
| 53 | 
            +
                                  ?validate_params: bool,
         | 
| 54 | 
            +
                                  ?endpoint_provider: untyped,
         | 
| 55 | 
            +
                                  ?connection_read_timeout: (Float | Integer),
         | 
| 56 | 
            +
                                  ?connection_timeout: (Float | Integer),
         | 
| 57 | 
            +
                                  ?enable_alpn: bool,
         | 
| 58 | 
            +
                                  ?max_concurrent_streams: (Float | Integer),
         | 
| 59 | 
            +
                                  ?read_chunk_size: (Float | Integer),
         | 
| 60 | 
            +
                                  ?http_wire_trace: bool,
         | 
| 61 | 
            +
                                  ?ssl_verify_peer: bool,
         | 
| 62 | 
            +
                                  ?ssl_ca_bundle: String,
         | 
| 63 | 
            +
                                  ?ssl_ca_directory: String,
         | 
| 64 | 
            +
                                  ?ssl_ca_store: String,
         | 
| 65 | 
            +
                                  ?raise_response_errors: bool
         | 
| 66 | 
            +
                                ) -> instance
         | 
| 67 | 
            +
                              | (?Hash[Symbol, untyped]) -> instance
         | 
| 68 | 
            +
             | 
| 69 | 
            +
             | 
| 70 | 
            +
                  interface _SubscribeToShardResponseSuccess
         | 
| 71 | 
            +
                    include ::Seahorse::Client::_ResponseSuccess[Types::SubscribeToShardOutput]
         | 
| 72 | 
            +
                    def event_stream: () -> Types::SubscribeToShardEventStream
         | 
| 73 | 
            +
                  end
         | 
| 74 | 
            +
                  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Kinesis/AsyncClient.html#subscribe_to_shard-instance_method
         | 
| 75 | 
            +
                  def subscribe_to_shard: (
         | 
| 76 | 
            +
                                            consumer_arn: ::String,
         | 
| 77 | 
            +
                                            shard_id: ::String,
         | 
| 78 | 
            +
                                            starting_position: {
         | 
| 79 | 
            +
                                              type: ("AT_SEQUENCE_NUMBER" | "AFTER_SEQUENCE_NUMBER" | "TRIM_HORIZON" | "LATEST" | "AT_TIMESTAMP"),
         | 
| 80 | 
            +
                                              sequence_number: ::String?,
         | 
| 81 | 
            +
                                              timestamp: ::Time?
         | 
| 82 | 
            +
                                            }
         | 
| 83 | 
            +
                                          ) -> _SubscribeToShardResponseSuccess
         | 
| 84 | 
            +
                                        | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SubscribeToShardResponseSuccess
         | 
| 85 | 
            +
                end
         | 
| 86 | 
            +
              end
         | 
| 87 | 
            +
            end
         | 
    
        data/sig/client.rbs
    CHANGED
    
    | @@ -419,22 +419,6 @@ module Aws | |
| 419 419 | 
             
                                              ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
         | 
| 420 420 | 
             
                                            | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
         | 
| 421 421 |  | 
| 422 | 
            -
                  interface _SubscribeToShardResponseSuccess
         | 
| 423 | 
            -
                    include ::Seahorse::Client::_ResponseSuccess[Types::SubscribeToShardOutput]
         | 
| 424 | 
            -
                    def event_stream: () -> Types::SubscribeToShardEventStream
         | 
| 425 | 
            -
                  end
         | 
| 426 | 
            -
                  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Kinesis/Client.html#subscribe_to_shard-instance_method
         | 
| 427 | 
            -
                  def subscribe_to_shard: (
         | 
| 428 | 
            -
                                            consumer_arn: ::String,
         | 
| 429 | 
            -
                                            shard_id: ::String,
         | 
| 430 | 
            -
                                            starting_position: {
         | 
| 431 | 
            -
                                              type: ("AT_SEQUENCE_NUMBER" | "AFTER_SEQUENCE_NUMBER" | "TRIM_HORIZON" | "LATEST" | "AT_TIMESTAMP"),
         | 
| 432 | 
            -
                                              sequence_number: ::String?,
         | 
| 433 | 
            -
                                              timestamp: ::Time?
         | 
| 434 | 
            -
                                            }
         | 
| 435 | 
            -
                                          ) -> _SubscribeToShardResponseSuccess
         | 
| 436 | 
            -
                                        | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SubscribeToShardResponseSuccess
         | 
| 437 | 
            -
             | 
| 438 422 | 
             
                  interface _UpdateShardCountResponseSuccess
         | 
| 439 423 | 
             
                    include ::Seahorse::Client::_ResponseSuccess[Types::UpdateShardCountOutput]
         | 
| 440 424 | 
             
                    def stream_name: () -> ::String
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aws-sdk-kinesis
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.76.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
         | 
| @@ -69,6 +69,7 @@ files: | |
| 69 69 | 
             
            - lib/aws-sdk-kinesis/resource.rb
         | 
| 70 70 | 
             
            - lib/aws-sdk-kinesis/types.rb
         | 
| 71 71 | 
             
            - lib/aws-sdk-kinesis/waiters.rb
         | 
| 72 | 
            +
            - sig/async_client.rbs
         | 
| 72 73 | 
             
            - sig/client.rbs
         | 
| 73 74 | 
             
            - sig/errors.rbs
         | 
| 74 75 | 
             
            - sig/resource.rbs
         |