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.



365
366
367
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 365

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



449
450
451
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 449

def event_emitter
  @event_emitter
end

Instance Method Details

#on_access_denied_exception_event(&block) ⇒ Object



369
370
371
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 369

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



373
374
375
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 373

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

#on_citation_event(&block) ⇒ Object



377
378
379
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 377

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

#on_conflict_exception_event(&block) ⇒ Object



381
382
383
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 381

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

#on_dependency_failed_exception_event(&block) ⇒ Object



385
386
387
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 385

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

#on_error_event(&block) ⇒ Object



417
418
419
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 417

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

#on_event(&block) ⇒ Object



429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 429

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



389
390
391
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 389

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

#on_initial_response_event(&block) ⇒ Object



421
422
423
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 421

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

#on_internal_server_exception_event(&block) ⇒ Object



393
394
395
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 393

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

#on_output_event(&block) ⇒ Object



397
398
399
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 397

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

#on_resource_not_found_exception_event(&block) ⇒ Object



401
402
403
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 401

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



405
406
407
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 405

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



409
410
411
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 409

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

#on_unknown_event(&block) ⇒ Object



425
426
427
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 425

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

#on_validation_exception_event(&block) ⇒ Object



413
414
415
# File 'lib/aws-sdk-bedrockagentruntime/event_streams.rb', line 413

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