Class: Aws::Ivschat::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Ivschat::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-ivschat/client.rb
Overview
An API client for Ivschat. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::Ivschat::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#create_chat_token(params = {}) ⇒ Types::CreateChatTokenResponse
Creates an encrypted token that is used by a chat participant to establish an individual WebSocket chat connection to a room.
-
#create_logging_configuration(params = {}) ⇒ Types::CreateLoggingConfigurationResponse
Creates a logging configuration that allows clients to store and record sent messages.
-
#create_room(params = {}) ⇒ Types::CreateRoomResponse
Creates a room that allows clients to connect and pass messages.
-
#delete_logging_configuration(params = {}) ⇒ Struct
Deletes the specified logging configuration.
-
#delete_message(params = {}) ⇒ Types::DeleteMessageResponse
Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client’s chat history.
-
#delete_room(params = {}) ⇒ Struct
Deletes the specified room.
-
#disconnect_user(params = {}) ⇒ Struct
Disconnects all connections using a specified user ID from a room.
-
#get_logging_configuration(params = {}) ⇒ Types::GetLoggingConfigurationResponse
Gets the specified logging configuration.
-
#get_room(params = {}) ⇒ Types::GetRoomResponse
Gets the specified room.
-
#list_logging_configurations(params = {}) ⇒ Types::ListLoggingConfigurationsResponse
Gets summary information about all your logging configurations in the AWS region where the API request is processed.
-
#list_rooms(params = {}) ⇒ Types::ListRoomsResponse
Gets summary information about all your rooms in the AWS region where the API request is processed.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Gets information about AWS tags for the specified ARN.
-
#send_event(params = {}) ⇒ Types::SendEventResponse
Sends an event to a room.
-
#tag_resource(params = {}) ⇒ Struct
Adds or updates tags for the AWS resource with the specified ARN.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from the resource with the specified ARN.
-
#update_logging_configuration(params = {}) ⇒ Types::UpdateLoggingConfigurationResponse
Updates a specified logging configuration.
-
#update_room(params = {}) ⇒ Types::UpdateRoomResponse
Updates a room’s configuration.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
444 445 446 |
# File 'lib/aws-sdk-ivschat/client.rb', line 444 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (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.
1342 1343 1344 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1342 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
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.
1345 1346 1347 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1345 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
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.
1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1315 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::Ivschat') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-ivschat' context[:gem_version] = '1.37.0' Seahorse::Client::Request.new(handlers, context) end |
#create_chat_token(params = {}) ⇒ Types::CreateChatTokenResponse
Creates an encrypted token that is used by a chat participant to establish an individual WebSocket chat connection to a room. When the token is used to connect to chat, the connection is valid for the session duration specified in the request. The token becomes invalid at the token-expiration timestamp included in the response.
Use the ‘capabilities` field to permit an end user to send messages or moderate a room.
The ‘attributes` field securely attaches structured data to the chat session; the data is included within each message sent by the end user and received by other participants in the room. Common use cases for attributes include passing end-user profile data like an icon, display name, colors, badges, and other display features.
Encryption keys are owned by Amazon IVS Chat and never used directly by your application.
518 519 520 521 |
# File 'lib/aws-sdk-ivschat/client.rb', line 518 def create_chat_token(params = {}, = {}) req = build_request(:create_chat_token, params) req.send_request() end |
#create_logging_configuration(params = {}) ⇒ Types::CreateLoggingConfigurationResponse
Creates a logging configuration that allows clients to store and record sent messages.
596 597 598 599 |
# File 'lib/aws-sdk-ivschat/client.rb', line 596 def create_logging_configuration(params = {}, = {}) req = build_request(:create_logging_configuration, params) req.send_request() end |
#create_room(params = {}) ⇒ Types::CreateRoomResponse
Creates a room that allows clients to connect and pass messages.
682 683 684 685 |
# File 'lib/aws-sdk-ivschat/client.rb', line 682 def create_room(params = {}, = {}) req = build_request(:create_room, params) req.send_request() end |
#delete_logging_configuration(params = {}) ⇒ Struct
Deletes the specified logging configuration.
704 705 706 707 |
# File 'lib/aws-sdk-ivschat/client.rb', line 704 def delete_logging_configuration(params = {}, = {}) req = build_request(:delete_logging_configuration, params) req.send_request() end |
#delete_message(params = {}) ⇒ Types::DeleteMessageResponse
Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client’s chat history. This event’s ‘EventName` is `aws:DELETE_MESSAGE`. This replicates the [ DeleteMessage] WebSocket operation in the Amazon IVS Chat Messaging API.
[1]: docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-deletemessage-publish.html
755 756 757 758 |
# File 'lib/aws-sdk-ivschat/client.rb', line 755 def (params = {}, = {}) req = build_request(:delete_message, params) req.send_request() end |
#delete_room(params = {}) ⇒ Struct
Deletes the specified room.
777 778 779 780 |
# File 'lib/aws-sdk-ivschat/client.rb', line 777 def delete_room(params = {}, = {}) req = build_request(:delete_room, params) req.send_request() end |
#disconnect_user(params = {}) ⇒ Struct
Disconnects all connections using a specified user ID from a room. This replicates the [ DisconnectUser] WebSocket operation in the Amazon IVS Chat Messaging API.
[1]: docs.aws.amazon.com/ivs/latest/chatmsgapireference/actions-disconnectuser-publish.html
814 815 816 817 |
# File 'lib/aws-sdk-ivschat/client.rb', line 814 def disconnect_user(params = {}, = {}) req = build_request(:disconnect_user, params) req.send_request() end |
#get_logging_configuration(params = {}) ⇒ Types::GetLoggingConfigurationResponse
Gets the specified logging configuration.
859 860 861 862 |
# File 'lib/aws-sdk-ivschat/client.rb', line 859 def get_logging_configuration(params = {}, = {}) req = build_request(:get_logging_configuration, params) req.send_request() end |
#get_room(params = {}) ⇒ Types::GetRoomResponse
Gets the specified room.
909 910 911 912 |
# File 'lib/aws-sdk-ivschat/client.rb', line 909 def get_room(params = {}, = {}) req = build_request(:get_room, params) req.send_request() end |
#list_logging_configurations(params = {}) ⇒ Types::ListLoggingConfigurationsResponse
Gets summary information about all your logging configurations in the AWS region where the API request is processed.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
958 959 960 961 |
# File 'lib/aws-sdk-ivschat/client.rb', line 958 def list_logging_configurations(params = {}, = {}) req = build_request(:list_logging_configurations, params) req.send_request() end |
#list_rooms(params = {}) ⇒ Types::ListRoomsResponse
Gets summary information about all your rooms in the AWS region where the API request is processed. Results are sorted in descending order of ‘updateTime`.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1020 1021 1022 1023 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1020 def list_rooms(params = {}, = {}) req = build_request(:list_rooms, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Gets information about AWS tags for the specified ARN.
1049 1050 1051 1052 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1049 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#send_event(params = {}) ⇒ Types::SendEventResponse
Sends an event to a room. Use this within your application’s business logic to send events to clients of a room; e.g., to notify clients to change the way the chat UI is rendered.
1091 1092 1093 1094 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1091 def send_event(params = {}, = {}) req = build_request(:send_event, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds or updates tags for the AWS resource with the specified ARN.
1128 1129 1130 1131 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1128 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from the resource with the specified ARN.
1163 1164 1165 1166 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1163 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_logging_configuration(params = {}) ⇒ Types::UpdateLoggingConfigurationResponse
Updates a specified logging configuration.
1229 1230 1231 1232 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1229 def update_logging_configuration(params = {}, = {}) req = build_request(:update_logging_configuration, params) req.send_request() end |
#update_room(params = {}) ⇒ Types::UpdateRoomResponse
Updates a room’s configuration.
1306 1307 1308 1309 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1306 def update_room(params = {}, = {}) req = build_request(:update_room, params) req.send_request() end |
#waiter_names ⇒ Object
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.
1335 1336 1337 |
# File 'lib/aws-sdk-ivschat/client.rb', line 1335 def waiter_names [] end |