Skip to main content

streams

Creates, updates, deletes or gets a stream resource or lists streams in a region

Overview

Namestreams
TypeResource
DescriptionResource Type Definition for AWS::KinesisVideo::Stream
Idawscc.kinesisvideo.streams

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the Kinesis Video stream.
namestringThe name of the Kinesis Video stream.
data_retention_in_hoursintegerThe number of hours till which Kinesis Video will retain the data in the stream
device_namestringThe name of the device that is writing to the stream.
kms_key_idstringAWS KMS key ID that Kinesis Video Streams uses to encrypt stream data.
media_typestringThe media type of the stream. Consumers of the stream can use this information when processing the stream.
tagsarrayAn array of key-value pairs associated with the Kinesis Video Stream.
regionstringAWS region.

For more information, see AWS::KinesisVideo::Stream.

Methods

NameResourceAccessible byRequired Params
create_resourcestreamsINSERT, region
delete_resourcestreamsDELETEIdentifier, region
update_resourcestreamsUPDATEIdentifier, PatchDocument, region
list_resourcesstreams_list_onlySELECTregion
get_resourcestreamsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual stream.

SELECT
region,
arn,
name,
data_retention_in_hours,
device_name,
kms_key_id,
media_type,
tags
FROM awscc.kinesisvideo.streams
WHERE
region = 'us-east-1' AND
Identifier = '{{ name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.kinesisvideo.streams (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a stream resource, using stack-deploy.

/*+ update */
UPDATE awscc.kinesisvideo.streams
SET PatchDocument = string('{{ {
"DataRetentionInHours": data_retention_in_hours,
"DeviceName": device_name,
"KmsKeyId": kms_key_id,
"MediaType": media_type,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.kinesisvideo.streams
WHERE
Identifier = '{{ name }}' AND
region = 'us-east-1';

Permissions

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

kinesisvideo:DescribeStream,
kinesisvideo:CreateStream,
kinesisvideo:TagStream