Class: Aws::Kinesis::EventStreams::SubscribeToShardEventStream
- Inherits:
-
Object
- Object
- Aws::Kinesis::EventStreams::SubscribeToShardEventStream
- Defined in:
- gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb
Instance Method Summary collapse
-
#initialize ⇒ SubscribeToShardEventStream
constructor
A new instance of SubscribeToShardEventStream.
-
#on_error_event(&block) ⇒ Object
-
#on_event(&block) ⇒ Object
-
#on_initial_response_event(&block) ⇒ Object
-
#on_internal_failure_exception_event(&block) ⇒ Object
-
#on_kms_access_denied_exception_event(&block) ⇒ Object
-
#on_kms_disabled_exception_event(&block) ⇒ Object
-
#on_kms_invalid_state_exception_event(&block) ⇒ Object
-
#on_kms_not_found_exception_event(&block) ⇒ Object
-
#on_kms_opt_in_required_event(&block) ⇒ Object
-
#on_kms_throttling_exception_event(&block) ⇒ Object
-
#on_resource_in_use_exception_event(&block) ⇒ Object
-
#on_resource_not_found_exception_event(&block) ⇒ Object
-
#on_subscribe_to_shard_event_event(&block) ⇒ Object
-
#on_unknown_event(&block) ⇒ Object
Constructor Details
#initialize ⇒ SubscribeToShardEventStream
Returns a new instance of SubscribeToShardEventStream.
14 15 16 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 14 def initialize @event_emitter = Aws::EventEmitter.new end |
Instance Method Details
#on_error_event(&block) ⇒ Object
58 59 60 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 58 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 70 def on_event(&block) on_subscribe_to_shard_event_event(&block) on_resource_not_found_exception_event(&block) on_resource_in_use_exception_event(&block) on_kms_disabled_exception_event(&block) on_kms_invalid_state_exception_event(&block) on_kms_access_denied_exception_event(&block) on_kms_not_found_exception_event(&block) on_kms_opt_in_required_event(&block) on_kms_throttling_exception_event(&block) on_internal_failure_exception_event(&block) on_error_event(&block) on_initial_response_event(&block) on_unknown_event(&block) end |
#on_initial_response_event(&block) ⇒ Object
62 63 64 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 62 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_internal_failure_exception_event(&block) ⇒ Object
54 55 56 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 54 def on_internal_failure_exception_event(&block) @event_emitter.on(:internal_failure_exception, block) if block_given? end |
#on_kms_access_denied_exception_event(&block) ⇒ Object
38 39 40 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 38 def on_kms_access_denied_exception_event(&block) @event_emitter.on(:kms_access_denied_exception, block) if block_given? end |
#on_kms_disabled_exception_event(&block) ⇒ Object
30 31 32 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 30 def on_kms_disabled_exception_event(&block) @event_emitter.on(:kms_disabled_exception, block) if block_given? end |
#on_kms_invalid_state_exception_event(&block) ⇒ Object
34 35 36 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 34 def on_kms_invalid_state_exception_event(&block) @event_emitter.on(:kms_invalid_state_exception, block) if block_given? end |
#on_kms_not_found_exception_event(&block) ⇒ Object
42 43 44 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 42 def on_kms_not_found_exception_event(&block) @event_emitter.on(:kms_not_found_exception, block) if block_given? end |
#on_kms_opt_in_required_event(&block) ⇒ Object
46 47 48 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 46 def on_kms_opt_in_required_event(&block) @event_emitter.on(:kms_opt_in_required, block) if block_given? end |
#on_kms_throttling_exception_event(&block) ⇒ Object
50 51 52 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 50 def on_kms_throttling_exception_event(&block) @event_emitter.on(:kms_throttling_exception, block) if block_given? end |
#on_resource_in_use_exception_event(&block) ⇒ Object
26 27 28 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 26 def on_resource_in_use_exception_event(&block) @event_emitter.on(:resource_in_use_exception, block) if block_given? end |
#on_resource_not_found_exception_event(&block) ⇒ Object
22 23 24 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 22 def on_resource_not_found_exception_event(&block) @event_emitter.on(:resource_not_found_exception, block) if block_given? end |
#on_subscribe_to_shard_event_event(&block) ⇒ Object
18 19 20 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 18 def on_subscribe_to_shard_event_event(&block) @event_emitter.on(:subscribe_to_shard_event, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
66 67 68 |
# File 'gems/aws-sdk-kinesis/lib/aws-sdk-kinesis/event_streams.rb', line 66 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |