Skip to main content

stream_keys

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

Overview

Namestream_keys
TypeResource
Idaws.ivs.stream_keys

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_control_allow_originstringSee Access-Control-Allow-Origin in the MDN Web Docs.
access_control_expose_headersstringSee Access-Control-Expose-Headers in the MDN Web Docs.
cache_controlstringSee Cache-Control in the MDN Web Docs.
content_security_policystringSee Content-Security-Policy in the MDN Web Docs.
errorsarray
stream_keysarray
strict_transport_securitystringSee Strict-Transport-Security in the MDN Web Docs.
x_content_type_optionsstringSee X-Content-Type-Options in the MDN Web Docs.
x_frame_optionsstringSee X-Frame-Options in the MDN Web Docs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
batch_get_stream_keyselectregionPerforms GetStreamKey on multiple ARNs simultaneously.
get_stream_keyselectregionGets stream-key information for a specified ARN.
list_stream_keysselectregionGets summary information about stream keys for the specified channel.
create_stream_keyinsertregion, channelArnCreates a stream key, used to initiate a stream, for the specified channel ARN. Note that CreateChannel creates a stream key. If you subsequently use CreateStreamKey on the same channel, it will fail because a stream key already exists and there is a limit of 1 stream key per channel. To reset the stream key on a channel, use DeleteStreamKey and then CreateStreamKey.
delete_stream_keydeleteregionDeletes the stream key for the specified ARN, so it can no longer be used to stream.

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

Performs GetStreamKey on multiple ARNs simultaneously.

SELECT
access_control_allow_origin,
access_control_expose_headers,
cache_control,
content_security_policy,
errors,
stream_keys,
strict_transport_security,
x_content_type_options,
x_frame_options
FROM aws.ivs.stream_keys
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a stream key, used to initiate a stream, for the specified channel ARN. Note that CreateChannel creates a stream key. If you subsequently use CreateStreamKey on the same channel, it will fail because a stream key already exists and there is a limit of 1 stream key per channel. To reset the stream key on a channel, use DeleteStreamKey and then CreateStreamKey.

INSERT INTO aws.ivs.stream_keys (
channelArn,
tags,
region
)
SELECT
'{{ channelArn }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
stream_key
;

DELETE examples

Deletes the stream key for the specified ARN, so it can no longer be used to stream.

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