Skip to main content

recording_configurations

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

Overview

Namerecording_configurations
TypeResource
Idaws.ivs.recording_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringRecording-configuration name. The value does not need to be unique. (pattern: <code>[a-zA-Z0-9-_]*</code>)
arnstringRecording-configuration ARN. (pattern: <code>arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+</code>)
destination_configurationobjectA complex type that describes a location where recorded videos will be stored. Each member represents a type of destination configuration. For recording, you define one and only one type of destination configuration.
recording_reconnect_window_secondsintegerIf a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. Default: 0.
rendition_configurationobjectObject that describes which renditions should be recorded for a stream.
statestringIndicates the current state of the recording configuration. When the state is ACTIVE, the configuration is ready for recording a channel stream. (CREATING, CREATE_FAILED, ACTIVE)
tagsobjectTags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
thumbnail_configurationobjectAn object representing a configuration of thumbnails for recorded video.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_recording_configurationselectregionGets the recording configuration for the specified ARN.
list_recording_configurationsselectregionGets summary information about all recording configurations in your account, in the Amazon Web Services region where the API request is processed.
create_recording_configurationinsertregion, destinationConfigurationCreates a new recording configuration, used to enable recording to Amazon S3. Known issue: In the us-east-1 region, if you use the Amazon Web Services CLI to create a recording configuration, it returns success even if the S3 bucket is in a different region. In this case, the state of the recording configuration is CREATE_FAILED (instead of ACTIVE). (In other regions, the CLI correctly returns failure if the bucket is in a different region.) Workaround: Ensure that your S3 bucket is in the same region as the recording configuration. If you create a recording configuration in a different region as your S3 bucket, delete that recording configuration and create a new one with an S3 bucket from the correct region.
delete_recording_configurationdeleteregionDeletes the recording configuration for the specified ARN. If you try to delete a recording configuration that is associated with a channel, you will get an error (409 ConflictException). To avoid this, for all channels that reference the recording configuration, first use UpdateChannel to set the recordingConfigurationArn field to an empty string, then use DeleteRecordingConfiguration.

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 the recording configuration for the specified ARN.

SELECT
name,
arn,
destination_configuration,
recording_reconnect_window_seconds,
rendition_configuration,
state,
tags,
thumbnail_configuration
FROM aws.ivs.recording_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new recording configuration, used to enable recording to Amazon S3. Known issue: In the us-east-1 region, if you use the Amazon Web Services CLI to create a recording configuration, it returns success even if the S3 bucket is in a different region. In this case, the state of the recording configuration is CREATE_FAILED (instead of ACTIVE). (In other regions, the CLI correctly returns failure if the bucket is in a different region.) Workaround: Ensure that your S3 bucket is in the same region as the recording configuration. If you create a recording configuration in a different region as your S3 bucket, delete that recording configuration and create a new one with an S3 bucket from the correct region.

INSERT INTO aws.ivs.recording_configurations (
name,
destinationConfiguration,
tags,
thumbnailConfiguration,
recordingReconnectWindowSeconds,
renditionConfiguration,
region
)
SELECT
'{{ name }}',
'{{ destinationConfiguration }}' /* required */,
'{{ tags }}',
'{{ thumbnailConfiguration }}',
{{ recordingReconnectWindowSeconds }},
'{{ renditionConfiguration }}',
'{{ region }}'
RETURNING
recording_configuration
;

DELETE examples

Deletes the recording configuration for the specified ARN. If you try to delete a recording configuration that is associated with a channel, you will get an error (409 ConflictException). To avoid this, for all channels that reference the recording configuration, first use UpdateChannel to set the recordingConfigurationArn field to an empty string, then use DeleteRecordingConfiguration.

DELETE FROM aws.ivs.recording_configurations
WHERE region = '{{ region }}' --required
;