Skip to main content

stages

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

Overview

Namestages
TypeResource
Idaws.ivs_realtime.stages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringStage name. (pattern: <code>[a-zA-Z0-9-_]*</code>)
active_session_idstringID of the active session within the stage. (pattern: <code>st-[a-zA-Z0-9]+</code>)
arnstringStage ARN. (pattern: <code>arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+</code>)
auto_participant_recording_configurationobjectObject specifying a configuration for individual participant recording.
endpointsobjectSummary information about various endpoints for a stage.
tagsobjectTags attached to the resource. Array of maps, each of the form string:string (key:value). See Best practices and strategies in Tagging AWS Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_stageselectregionGets information for the specified stage.
list_stagesselectregionGets summary information about all stages in your account, in the AWS region where the API request is processed.
create_stageinsertregionCreates a new stage (and optionally participant tokens).
update_stageupdateregion, arnUpdates a stage’s configuration.
delete_stagedeleteregionShuts 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.

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 for the specified stage.

SELECT
name,
active_session_id,
arn,
auto_participant_recording_configuration,
endpoints,
tags
FROM aws.ivs_realtime.stages
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new stage (and optionally participant tokens).

INSERT INTO aws.ivs_realtime.stages (
name,
participantTokenConfigurations,
tags,
autoParticipantRecordingConfiguration,
region
)
SELECT
'{{ name }}',
'{{ participantTokenConfigurations }}',
'{{ tags }}',
'{{ autoParticipantRecordingConfiguration }}',
'{{ region }}'
RETURNING
participant_tokens,
stage
;

UPDATE examples

Updates a stage’s configuration.

UPDATE aws.ivs_realtime.stages
SET
arn = '{{ arn }}',
name = '{{ name }}',
autoParticipantRecordingConfiguration = '{{ autoParticipantRecordingConfiguration }}'
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
RETURNING
stage;

DELETE examples

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.

DELETE FROM aws.ivs_realtime.stages
WHERE region = '{{ region }}' --required
;