Skip to main content

stream_keys

Creates, updates, deletes or gets a stream_key resource or lists stream_keys in a region

Overview

Namestream_keys
TypeResource
DescriptionResource Type definition for AWS::IVS::StreamKey
Idaws.ivs.stream_keys

Fields

NameDatatypeDescription
arnstringStream Key ARN is automatically generated on creation and assigned as the unique identifier.
channel_arnstringChannel ARN for the stream.
tagsarrayA list of key-value pairs that contain metadata for the asset model.
valuestringStream-key value.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTChannelArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all stream_keys in a region.

SELECT
region,
arn,
channel_arn,
tags,
value
FROM aws.ivs.stream_keys
WHERE region = 'us-east-1';

Gets all properties from an individual stream_key.

SELECT
region,
arn,
channel_arn,
tags,
value
FROM aws.ivs.stream_keys
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new stream_key resource, using stack-deploy.

/*+ create */
INSERT INTO aws.ivs.stream_keys (
ChannelArn,
region
)
SELECT
'{{ ChannelArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ivs.stream_keys
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the stream_keys resource, the following permissions are required:

Create

ivs:TagResource,
ivs:UntagResource,
ivs:CreateStreamKey

Read

ivs:GetStreamKey,
ivs:ListTagsForResource

Update

ivs:GetStreamKey,
ivs:TagResource,
ivs:UntagResource,
ivs:ListTagsForResource

Delete

ivs:DeleteStreamKey,
ivs:UntagResource

List

ivs:ListStreamKeys,
ivs:ListTagsForResource