Class: Aws::BedrockAgentRuntime::EventStreams::RetrieveAndGenerateStreamResponseOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-bedrockagentruntime/event_streams.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRetrieveAndGenerateStreamResponseOutput

Returns a new instance of RetrieveAndGenerateStreamResponseOutput.



459
460
461
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 459

def initialize
  @event_emitter = Aws::EventEmitter.new
end

Instance Attribute Details

#event_emitterObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns Aws::EventEmitter.

Returns:

  • Aws::EventEmitter



543
544
545
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 543

def event_emitter
  @event_emitter
end

Instance Method Details

#on_access_denied_exception_event(&block) ⇒ Object



463
464
465
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 463

def on_access_denied_exception_event(&block)
  @event_emitter.on(:access_denied_exception, block) if block_given?
end

#on_bad_gateway_exception_event(&block) ⇒ Object



467
468
469
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 467

def on_bad_gateway_exception_event(&block)
  @event_emitter.on(:bad_gateway_exception, block) if block_given?
end

#on_citation_event(&block) ⇒ Object



471
472
473
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 471

def on_citation_event(&block)
  @event_emitter.on(:citation, block) if block_given?
end

#on_conflict_exception_event(&block) ⇒ Object



475
476
477
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 475

def on_conflict_exception_event(&block)
  @event_emitter.on(:conflict_exception, block) if block_given?
end

#on_dependency_failed_exception_event(&block) ⇒ Object



479
480
481
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 479

def on_dependency_failed_exception_event(&block)
  @event_emitter.on(:dependency_failed_exception, block) if block_given?
end

#on_error_event(&block) ⇒ Object



511
512
513
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 511

def on_error_event(&block)
  @event_emitter.on(:error, block) if block_given?
end

#on_event(&block) ⇒ Object



523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 523

def on_event(&block)
  on_access_denied_exception_event(&block)
  on_bad_gateway_exception_event(&block)
  on_citation_event(&block)
  on_conflict_exception_event(&block)
  on_dependency_failed_exception_event(&block)
  on_guardrail_event(&block)
  on_internal_server_exception_event(&block)
  on_output_event(&block)
  on_resource_not_found_exception_event(&block)
  on_service_quota_exceeded_exception_event(&block)
  on_throttling_exception_event(&block)
  on_validation_exception_event(&block)
  on_error_event(&block)
  on_initial_response_event(&block)
  on_unknown_event(&block)
end

#on_guardrail_event(&block) ⇒ Object



483
484
485
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 483

def on_guardrail_event(&block)
  @event_emitter.on(:guardrail, block) if block_given?
end

#on_initial_response_event(&block) ⇒ Object



515
516
517
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 515

def on_initial_response_event(&block)
  @event_emitter.on(:initial_response, block) if block_given?
end

#on_internal_server_exception_event(&block) ⇒ Object



487
488
489
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 487

def on_internal_server_exception_event(&block)
  @event_emitter.on(:internal_server_exception, block) if block_given?
end

#on_output_event(&block) ⇒ Object



491
492
493
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 491

def on_output_event(&block)
  @event_emitter.on(:output, block) if block_given?
end

#on_resource_not_found_exception_event(&block) ⇒ Object



495
496
497
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 495

def on_resource_not_found_exception_event(&block)
  @event_emitter.on(:resource_not_found_exception, block) if block_given?
end

#on_service_quota_exceeded_exception_event(&block) ⇒ Object



499
500
501
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 499

def on_service_quota_exceeded_exception_event(&block)
  @event_emitter.on(:service_quota_exceeded_exception, block) if block_given?
end

#on_throttling_exception_event(&block) ⇒ Object



503
504
505
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 503

def on_throttling_exception_event(&block)
  @event_emitter.on(:throttling_exception, block) if block_given?
end

#on_unknown_event(&block) ⇒ Object



519
520
521
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 519

def on_unknown_event(&block)
  @event_emitter.on(:unknown_event, block) if block_given?
end

#on_validation_exception_event(&block) ⇒ Object



507
508
509
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 507

def on_validation_exception_event(&block)
  @event_emitter.on(:validation_exception, block) if block_given?
end