Class: Aws::QBusiness::EventStreams::ChatInputStream

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChatInputStream

Returns a new instance of ChatInputStream.



14
15
16
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 14

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



111
112
113
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 111

def event_emitter
  @event_emitter
end

Instance Method Details

#signal_action_execution_event_event(params = {}) ⇒ Object

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :plugin_id (String)

    The identifier of the plugin for which the action is being requested.

  • :payload (Hash<String, Types::ActionExecutionPayloadField>)

    A mapping of field names to the field values in input that an end user provides to Amazon Q Business requests to perform their plugin action.

  • :payload_field_name_separator (String)

    A string used to retain information about the hierarchical contexts within a action execution event payload.



88
89
90
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 88

def signal_action_execution_event_event(params = {})
  @event_emitter.emit(:action_execution_event, params)
end

#signal_attachment_event_event(params = {}) ⇒ Object

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :attachment (Types::AttachmentInput)

    This is either a file directly uploaded into a web experience chat or a reference to an existing attachment that is part of a web experience chat.



73
74
75
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 73

def signal_attachment_event_event(params = {})
  @event_emitter.emit(:attachment_event, params)
end

#signal_auth_challenge_response_event_event(params = {}) ⇒ Object

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :response_map (Hash<String, String>)

    The mapping of key-value pairs in an authentication challenge response.



101
102
103
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 101

def signal_auth_challenge_response_event_event(params = {})
  @event_emitter.emit(:auth_challenge_response_event, params)
end

#signal_configuration_event_event(params = {}) ⇒ Object

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):



57
58
59
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 57

def signal_configuration_event_event(params = {})
  @event_emitter.emit(:configuration_event, params)
end

#signal_end_of_input_event_event(params = {}) ⇒ Object

This event has no members



93
94
95
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 93

def signal_end_of_input_event_event(params = {})
  @event_emitter.emit(:end_of_input_event, params)
end

#signal_end_streamObject



105
106
107
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 105

def signal_end_stream
  @event_emitter.emit(:end_stream, {})
end

#signal_text_event_event(params = {}) ⇒ Object

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :user_message (String)

    A user message in a text message input event.



64
65
66
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 64

def signal_text_event_event(params = {})
  @event_emitter.emit(:text_event, params)
end