Skip to main content

ingest_configurations

Creates, updates, deletes, gets or lists an ingest_configurations resource.

Overview

Nameingest_configurations
TypeResource
Idaws.ivs_realtime.ingest_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIngest name (pattern: <code>[a-zA-Z0-9-_]*</code>)
arnstringIngest configuration ARN. (pattern: <code>arn:aws:ivs:[a-z0-9-]+:[0-9]+:ingest-configuration/[a-zA-Z0-9-]+</code>)
attributesobjectApplication-provided attributes to to store in the IngestConfiguration 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.
ingest_protocolstringType of ingest protocol that the user employs for broadcasting. (RTMP, RTMPS)
participant_idstringID of the participant within the stage. (pattern: <code>[a-zA-Z0-9-]*</code>)
redundant_ingestbooleanIndicates whether redundant ingest is enabled for the ingest configuration.
redundant_ingest_credentialsarrayA list of redundant ingest credentials, present only when redundantIngest is set to true. See Redundant Ingest in IVS RTMP Publishing for details.
stage_arnstringARN of the stage with which the IngestConfiguration is associated. (pattern: <code>^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$</code>)
statestringState of the ingest configuration. It is ACTIVE if a publisher currently is publishing to the stage associated with the ingest configuration. (ACTIVE, INACTIVE)
stream_keystringIngest-key value for the RTMP(S) protocol. (pattern: <code>rt_[0-9]+[a-z0-9-]+[a-zA-Z0-9-]+_.+</code>)
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.
user_idstringCustomer-assigned name to help identify the participant using the IngestConfiguration; 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_ingest_configurationselectregionGets information about the specified IngestConfiguration.
list_ingest_configurationsselectregionLists all IngestConfigurations in your account, in the AWS region where the API request is processed.
create_ingest_configurationinsertregion, ingestProtocolCreates a new IngestConfiguration resource, used to specify the ingest protocol for a stage.
update_ingest_configurationupdateregion, arnUpdates a specified IngestConfiguration. Only the stage ARN attached to the IngestConfiguration can be updated. An IngestConfiguration that is active cannot be updated.
delete_ingest_configurationdeleteregionDeletes 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.

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 IngestConfiguration.

SELECT
name,
arn,
attributes,
ingest_protocol,
participant_id,
redundant_ingest,
redundant_ingest_credentials,
stage_arn,
state,
stream_key,
tags,
user_id
FROM aws.ivs_realtime.ingest_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new IngestConfiguration resource, used to specify the ingest protocol for a stage.

INSERT INTO aws.ivs_realtime.ingest_configurations (
name,
stageArn,
userId,
attributes,
ingestProtocol,
insecureIngest,
redundantIngest,
tags,
region
)
SELECT
'{{ name }}',
'{{ stageArn }}',
'{{ userId }}',
'{{ attributes }}',
'{{ ingestProtocol }}' /* required */,
{{ insecureIngest }},
{{ redundantIngest }},
'{{ tags }}',
'{{ region }}'
RETURNING
ingest_configuration
;

UPDATE examples

Updates a specified IngestConfiguration. Only the stage ARN attached to the IngestConfiguration can be updated. An IngestConfiguration that is active cannot be updated.

UPDATE aws.ivs_realtime.ingest_configurations
SET
arn = '{{ arn }}',
stageArn = '{{ stageArn }}',
redundantIngest = {{ redundantIngest }}
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
RETURNING
ingest_configuration;

DELETE examples

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.

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