Class: Aws::IVSRealTime::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::IVSRealTime::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-ivsrealtime/client.rb
Overview
An API client for IVSRealTime. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::IVSRealTime::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_encoder_configuration(params = {}) ⇒ Types::CreateEncoderConfigurationResponse
Creates an EncoderConfiguration object.
-
#create_ingest_configuration(params = {}) ⇒ Types::CreateIngestConfigurationResponse
Creates a new IngestConfiguration resource, used to specify the ingest protocol for a stage.
-
#create_participant_token(params = {}) ⇒ Types::CreateParticipantTokenResponse
Creates an additional token for a specified stage.
-
#create_stage(params = {}) ⇒ Types::CreateStageResponse
Creates a new stage (and optionally participant tokens).
-
#create_storage_configuration(params = {}) ⇒ Types::CreateStorageConfigurationResponse
Creates a new storage configuration, used to enable recording to Amazon S3.
-
#delete_encoder_configuration(params = {}) ⇒ Struct
Deletes an EncoderConfiguration resource.
-
#delete_ingest_configuration(params = {}) ⇒ Struct
Deletes a specified IngestConfiguration, so it can no longer be used to broadcast.
-
#delete_public_key(params = {}) ⇒ Struct
Deletes the specified public key used to sign stage participant tokens.
-
#delete_stage(params = {}) ⇒ Struct
Shuts down and deletes the specified stage (disconnecting all participants).
-
#delete_storage_configuration(params = {}) ⇒ Struct
Deletes the storage configuration for the specified ARN.
-
#disconnect_participant(params = {}) ⇒ Struct
Disconnects a specified participant from a specified stage.
-
#get_composition(params = {}) ⇒ Types::GetCompositionResponse
Get information about the specified Composition resource.
-
#get_encoder_configuration(params = {}) ⇒ Types::GetEncoderConfigurationResponse
Gets information about the specified EncoderConfiguration resource.
-
#get_ingest_configuration(params = {}) ⇒ Types::GetIngestConfigurationResponse
Gets information about the specified IngestConfiguration.
-
#get_participant(params = {}) ⇒ Types::GetParticipantResponse
Gets information about the specified participant token.
-
#get_public_key(params = {}) ⇒ Types::GetPublicKeyResponse
Gets information for the specified public key.
-
#get_stage(params = {}) ⇒ Types::GetStageResponse
Gets information for the specified stage.
-
#get_stage_session(params = {}) ⇒ Types::GetStageSessionResponse
Gets information for the specified stage session.
-
#get_storage_configuration(params = {}) ⇒ Types::GetStorageConfigurationResponse
Gets the storage configuration for the specified ARN.
-
#import_public_key(params = {}) ⇒ Types::ImportPublicKeyResponse
Import a public key to be used for signing stage participant tokens.
-
#list_compositions(params = {}) ⇒ Types::ListCompositionsResponse
Gets summary information about all Compositions in your account, in the AWS region where the API request is processed.
-
#list_encoder_configurations(params = {}) ⇒ Types::ListEncoderConfigurationsResponse
Gets summary information about all EncoderConfigurations in your account, in the AWS region where the API request is processed.
-
#list_ingest_configurations(params = {}) ⇒ Types::ListIngestConfigurationsResponse
Lists all IngestConfigurations in your account, in the AWS region where the API request is processed.
-
#list_participant_events(params = {}) ⇒ Types::ListParticipantEventsResponse
Lists events for a specified participant that occurred during a specified stage session.
-
#list_participants(params = {}) ⇒ Types::ListParticipantsResponse
Lists all participants in a specified stage session.
-
#list_public_keys(params = {}) ⇒ Types::ListPublicKeysResponse
Gets summary information about all public keys in your account, in the AWS region where the API request is processed.
-
#list_stage_sessions(params = {}) ⇒ Types::ListStageSessionsResponse
Gets all sessions for a specified stage.
-
#list_stages(params = {}) ⇒ Types::ListStagesResponse
Gets summary information about all stages in your account, in the AWS region where the API request is processed.
-
#list_storage_configurations(params = {}) ⇒ Types::ListStorageConfigurationsResponse
Gets summary information about all storage configurations in your account, 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.
-
#start_composition(params = {}) ⇒ Types::StartCompositionResponse
Starts a Composition from a stage based on the configuration provided in the request.
-
#stop_composition(params = {}) ⇒ Struct
Stops and deletes a Composition resource.
-
#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_ingest_configuration(params = {}) ⇒ Types::UpdateIngestConfigurationResponse
Updates a specified IngestConfiguration.
-
#update_stage(params = {}) ⇒ Types::UpdateStageResponse
Updates a stage’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-ivsrealtime/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.
2221 2222 2223 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 2221 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.
2224 2225 2226 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 2224 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.
2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 2194 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::IVSRealTime') ) 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-ivsrealtime' context[:gem_version] = '1.34.0' Seahorse::Client::Request.new(handlers, context) end |
#create_encoder_configuration(params = {}) ⇒ Types::CreateEncoderConfigurationResponse
Creates an EncoderConfiguration object.
505 506 507 508 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 505 def create_encoder_configuration(params = {}, = {}) req = build_request(:create_encoder_configuration, params) req.send_request() end |
#create_ingest_configuration(params = {}) ⇒ Types::CreateIngestConfigurationResponse
Creates a new IngestConfiguration resource, used to specify the ingest protocol for a stage.
594 595 596 597 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 594 def create_ingest_configuration(params = {}, = {}) req = build_request(:create_ingest_configuration, params) req.send_request() end |
#create_participant_token(params = {}) ⇒ Types::CreateParticipantTokenResponse
Creates an additional token for a specified stage. This can be done after stage creation or when tokens expire. Tokens always are scoped to the stage for which they are created.
Encryption keys are owned by Amazon IVS and never used directly by your application.
662 663 664 665 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 662 def create_participant_token(params = {}, = {}) req = build_request(:create_participant_token, params) req.send_request() end |
#create_stage(params = {}) ⇒ Types::CreateStageResponse
Creates a new stage (and optionally participant tokens).
749 750 751 752 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 749 def create_stage(params = {}, = {}) req = build_request(:create_stage, params) req.send_request() end |
#create_storage_configuration(params = {}) ⇒ Types::CreateStorageConfigurationResponse
Creates a new storage configuration, used to enable recording to Amazon S3. When a StorageConfiguration is created, IVS will modify the S3 bucketPolicy of the provided bucket. This will ensure that IVS has sufficient permissions to write content to the provided bucket.
806 807 808 809 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 806 def create_storage_configuration(params = {}, = {}) req = build_request(:create_storage_configuration, params) req.send_request() end |
#delete_encoder_configuration(params = {}) ⇒ Struct
Deletes an EncoderConfiguration resource. Ensures that no Compositions are using this template; otherwise, returns an error.
829 830 831 832 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 829 def delete_encoder_configuration(params = {}, = {}) req = build_request(:delete_encoder_configuration, params) req.send_request() end |
#delete_ingest_configuration(params = {}) ⇒ Struct
Deletes a specified IngestConfiguration, so it can no longer be used to broadcast. An IngestConfiguration cannot be deleted if the publisher is actively streaming to a stage, unless ‘force` is set to `true`.
861 862 863 864 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 861 def delete_ingest_configuration(params = {}, = {}) req = build_request(:delete_ingest_configuration, params) req.send_request() end |
#delete_public_key(params = {}) ⇒ Struct
Deletes the specified public key used to sign stage participant tokens. This invalidates future participant tokens generated using the key pair’s private key.
885 886 887 888 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 885 def delete_public_key(params = {}, = {}) req = build_request(:delete_public_key, params) req.send_request() end |
#delete_stage(params = {}) ⇒ Struct
Shuts down and deletes the specified stage (disconnecting all participants). This operation also removes the ‘stageArn` from the associated IngestConfiguration, if there are participants using the IngestConfiguration to publish to the stage.
910 911 912 913 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 910 def delete_stage(params = {}, = {}) req = build_request(:delete_stage, params) req.send_request() end |
#delete_storage_configuration(params = {}) ⇒ Struct
Deletes the storage configuration for the specified ARN.
If you try to delete a storage configuration that is used by a Composition, you will get an error (409 ConflictException). To avoid this, for all Compositions that reference the storage configuration, first use StopComposition and wait for it to complete, then use DeleteStorageConfiguration.
938 939 940 941 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 938 def delete_storage_configuration(params = {}, = {}) req = build_request(:delete_storage_configuration, params) req.send_request() end |
#disconnect_participant(params = {}) ⇒ Struct
Disconnects a specified participant from a specified stage. If the participant is publishing using an IngestConfiguration, DisconnectParticipant also updates the ‘stageArn` in the IngestConfiguration to be an empty string.
973 974 975 976 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 973 def disconnect_participant(params = {}, = {}) req = build_request(:disconnect_participant, params) req.send_request() end |
#get_composition(params = {}) ⇒ Types::GetCompositionResponse
Get information about the specified Composition resource.
1035 1036 1037 1038 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1035 def get_composition(params = {}, = {}) req = build_request(:get_composition, params) req.send_request() end |
#get_encoder_configuration(params = {}) ⇒ Types::GetEncoderConfigurationResponse
Gets information about the specified EncoderConfiguration resource.
1070 1071 1072 1073 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1070 def get_encoder_configuration(params = {}, = {}) req = build_request(:get_encoder_configuration, params) req.send_request() end |
#get_ingest_configuration(params = {}) ⇒ Types::GetIngestConfigurationResponse
Gets information about the specified IngestConfiguration.
1109 1110 1111 1112 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1109 def get_ingest_configuration(params = {}, = {}) req = build_request(:get_ingest_configuration, params) req.send_request() end |
#get_participant(params = {}) ⇒ Types::GetParticipantResponse
Gets information about the specified participant token.
1162 1163 1164 1165 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1162 def get_participant(params = {}, = {}) req = build_request(:get_participant, params) req.send_request() end |
#get_public_key(params = {}) ⇒ Types::GetPublicKeyResponse
Gets information for the specified public key.
1195 1196 1197 1198 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1195 def get_public_key(params = {}, = {}) req = build_request(:get_public_key, params) req.send_request() end |
#get_stage(params = {}) ⇒ Types::GetStageResponse
Gets information for the specified stage.
1234 1235 1236 1237 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1234 def get_stage(params = {}, = {}) req = build_request(:get_stage, params) req.send_request() end |
#get_stage_session(params = {}) ⇒ Types::GetStageSessionResponse
Gets information for the specified stage session.
1268 1269 1270 1271 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1268 def get_stage_session(params = {}, = {}) req = build_request(:get_stage_session, params) req.send_request() end |
#get_storage_configuration(params = {}) ⇒ Types::GetStorageConfigurationResponse
Gets the storage configuration for the specified ARN.
1300 1301 1302 1303 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1300 def get_storage_configuration(params = {}, = {}) req = build_request(:get_storage_configuration, params) req.send_request() end |
#import_public_key(params = {}) ⇒ Types::ImportPublicKeyResponse
Import a public key to be used for signing stage participant tokens.
1352 1353 1354 1355 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1352 def import_public_key(params = {}, = {}) req = build_request(:import_public_key, params) req.send_request() end |
#list_compositions(params = {}) ⇒ Types::ListCompositionsResponse
Gets summary information about all Compositions in your account, 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.
1411 1412 1413 1414 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1411 def list_compositions(params = {}, = {}) req = build_request(:list_compositions, params) req.send_request() end |
#list_encoder_configurations(params = {}) ⇒ Types::ListEncoderConfigurationsResponse
Gets summary information about all EncoderConfigurations in your account, 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.
1453 1454 1455 1456 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1453 def list_encoder_configurations(params = {}, = {}) req = build_request(:list_encoder_configurations, params) req.send_request() end |
#list_ingest_configurations(params = {}) ⇒ Types::ListIngestConfigurationsResponse
Lists all IngestConfigurations in your account, 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.
1508 1509 1510 1511 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1508 def list_ingest_configurations(params = {}, = {}) req = build_request(:list_ingest_configurations, params) req.send_request() end |
#list_participant_events(params = {}) ⇒ Types::ListParticipantEventsResponse
Lists events for a specified participant that occurred during a specified stage session.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1564 1565 1566 1567 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1564 def list_participant_events(params = {}, = {}) req = build_request(:list_participant_events, params) req.send_request() end |
#list_participants(params = {}) ⇒ Types::ListParticipantsResponse
Lists all participants in a specified stage session.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1644 1645 1646 1647 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1644 def list_participants(params = {}, = {}) req = build_request(:list_participants, params) req.send_request() end |
#list_public_keys(params = {}) ⇒ Types::ListPublicKeysResponse
Gets summary information about all public keys in your account, 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.
1686 1687 1688 1689 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1686 def list_public_keys(params = {}, = {}) req = build_request(:list_public_keys, params) req.send_request() end |
#list_stage_sessions(params = {}) ⇒ Types::ListStageSessionsResponse
Gets all sessions for a specified stage.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1730 1731 1732 1733 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1730 def list_stage_sessions(params = {}, = {}) req = build_request(:list_stage_sessions, params) req.send_request() end |
#list_stages(params = {}) ⇒ Types::ListStagesResponse
Gets summary information about all stages in your account, 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.
1773 1774 1775 1776 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1773 def list_stages(params = {}, = {}) req = build_request(:list_stages, params) req.send_request() end |
#list_storage_configurations(params = {}) ⇒ Types::ListStorageConfigurationsResponse
Gets summary information about all storage configurations in your account, 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.
1817 1818 1819 1820 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1817 def list_storage_configurations(params = {}, = {}) req = build_request(:list_storage_configurations, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Gets information about AWS tags for the specified ARN.
1846 1847 1848 1849 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1846 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#start_composition(params = {}) ⇒ Types::StartCompositionResponse
Starts a Composition from a stage based on the configuration provided in the request.
A Composition is an ephemeral resource that exists after this operation returns successfully. Composition stops and the resource is deleted:
-
When StopComposition is called.
-
After a 1-minute timeout, when all participants are disconnected from the stage.
-
After a 1-minute timeout, if there are no participants in the stage when StartComposition is called.
-
When broadcasting to the IVS channel fails and all retries are exhausted.
-
When broadcasting is disconnected and all attempts to reconnect are exhausted.
1992 1993 1994 1995 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 1992 def start_composition(params = {}, = {}) req = build_request(:start_composition, params) req.send_request() end |
#stop_composition(params = {}) ⇒ Struct
Stops and deletes a Composition resource. Any broadcast from the Composition resource is stopped.
2015 2016 2017 2018 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 2015 def stop_composition(params = {}, = {}) req = build_request(:stop_composition, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds or updates tags for the AWS resource with the specified ARN.
2052 2053 2054 2055 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 2052 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.
2087 2088 2089 2090 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 2087 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_ingest_configuration(params = {}) ⇒ Types::UpdateIngestConfigurationResponse
Updates a specified IngestConfiguration. Only the stage ARN attached to the IngestConfiguration can be updated. An IngestConfiguration that is active cannot be updated.
2133 2134 2135 2136 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 2133 def update_ingest_configuration(params = {}, = {}) req = build_request(:update_ingest_configuration, params) req.send_request() end |
#update_stage(params = {}) ⇒ Types::UpdateStageResponse
Updates a stage’s configuration.
2185 2186 2187 2188 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 2185 def update_stage(params = {}, = {}) req = build_request(:update_stage, 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.
2214 2215 2216 |
# File 'lib/aws-sdk-ivsrealtime/client.rb', line 2214 def waiter_names [] end |