Skip to main content

participants

Creates, updates, deletes, gets or lists a participants resource.

Overview

Nameparticipants
TypeResource
Idaws.ivs_realtime.participants

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesobjectApplication-provided attributes to encode into the token and attach to a stage. Map keys and values can contain UTF-8 encoded text. The maximum length of this field is 1 KB total. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.
browser_namestringThe participant’s browser. (pattern: <code>[a-zA-Z0-9-_.,:;\s]*</code>)
browser_versionstringThe participant’s browser version. (pattern: <code>[a-zA-Z0-9-_.,:;\s]*</code>)
first_join_timestring (date-time)ISO 8601 timestamp (returned as a string) when the participant first joined the stage session.
ingest_configuration_arnstringThe participant’s ingest configuration. (pattern: <code>arn:aws:ivs:[a-z0-9-]+:[0-9]+:ingest-configuration/[a-zA-Z0-9-]+</code>)
isp_namestringThe participant’s Internet Service Provider. (pattern: <code>[a-zA-Z0-9-_.,:;\s]*</code>)
os_namestringThe participant’s operating system. (pattern: <code>[a-zA-Z0-9-_.,:;\s]*</code>)
os_versionstringThe participant’s operating system version. (pattern: <code>[a-zA-Z0-9-_.,:;\s]*</code>)
participant_idstringUnique identifier for this participant, assigned by IVS. (pattern: <code>[a-zA-Z0-9-]*</code>)
protocolstringType of ingest protocol that the participant employs for broadcasting. (UNKNOWN, WHIP, RTMP, RTMPS)
publishedbooleanWhether the participant ever published to the stage session.
recording_s3_bucket_namestringName of the S3 bucket to where the participant is being recorded, if individual participant recording is enabled, or "" (empty string), if recording is not enabled. (pattern: <code>[a-z0-9-.]*</code>)
recording_s3_prefixstringS3 prefix of the S3 bucket where the participant is being recorded, if individual participant recording is enabled, or "" (empty string), if recording is not enabled. If individual participant recording merge is enabled, and if a stage publisher disconnects from a stage and then reconnects, IVS tries to record to the same S3 prefix as the previous session. See Merge Fragmented Individual Participant Recordings. (pattern: <code>[a-zA-Z0-9-]*</code>)
recording_statestringThe participant’s recording state. (STARTING, ACTIVE, STOPPING, STOPPED, FAILED, DISABLED)
redundant_ingestbooleanIndicates whether redundant ingest is enabled for the participant.
replication_statestringThe participant's replication state. (ACTIVE, STOPPED)
replication_typestringIndicates if the participant has been replicated to another stage or is a replica from another stage. Default: NONE. (SOURCE, REPLICA, NONE)
sdk_versionstringThe participant’s SDK version. (pattern: <code>[a-zA-Z0-9-_.,:;\s]*</code>)
source_session_idstringID of the session within the source stage, if replicationType is REPLICA. (pattern: <code>st-[a-zA-Z0-9]+</code>)
source_stage_arnstringSource stage ARN from which this participant is replicated, if replicationType is REPLICA. (pattern: <code>arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+</code>)
statestringWhether the participant is connected to or disconnected from the stage. (CONNECTED, DISCONNECTED)
user_idstringCustomer-assigned name to help identify the token; this can be used to link a participant to a user in the customer’s own systems. This can be any UTF-8 encoded text. This field is exposed to all stage participants and should not be used for personally identifying, confidential, or sensitive information.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_participantselectregionGets information about the specified participant token.
list_participantsselectregionLists all participants in a specified stage session.
create_participant_tokeninsertregion, stageArnCreates 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.
disconnect_participantexecregion, stageArn, participantIdDisconnects 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.
start_participant_replicationexecregion, sourceStageArn, destinationStageArn, participantIdStarts replicating a publishing participant from a source stage to a destination stage.
stop_participant_replicationexecregion, sourceStageArn, destinationStageArn, participantIdStops a replicated participant session.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about the specified participant token.

SELECT
attributes,
browser_name,
browser_version,
first_join_time,
ingest_configuration_arn,
isp_name,
os_name,
os_version,
participant_id,
protocol,
published,
recording_s3_bucket_name,
recording_s3_prefix,
recording_state,
redundant_ingest,
replication_state,
replication_type,
sdk_version,
source_session_id,
source_stage_arn,
state,
user_id
FROM aws.ivs_realtime.participants
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.ivs_realtime.participants (
stageArn,
duration,
userId,
attributes,
capabilities,
region
)
SELECT
'{{ stageArn }}' /* required */,
{{ duration }},
'{{ userId }}',
'{{ attributes }}',
'{{ capabilities }}',
'{{ region }}'
RETURNING
participant_token
;

Lifecycle Methods

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.

EXEC aws.ivs_realtime.participants.disconnect_participant
@region='{{ region }}' --required
@@json=
'{
"stageArn": "{{ stageArn }}",
"participantId": "{{ participantId }}",
"reason": "{{ reason }}"
}'
;