Skip to main content

stream_storage_configurations

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

Overview

Namestream_storage_configurations
TypeResource
Idaws.kinesisvideo.stream_storage_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
stream_arnstringThe Amazon Resource Name (ARN) of the stream. (pattern: <code>arn:[a-z\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+</code>)
stream_namestringThe name of the stream. (pattern: <code>[a-zA-Z0-9_.-]+</code>)
stream_storage_configurationobjectThe configuration for stream storage, including the default storage tier for stream data. This configuration determines how stream data is stored and accessed, with different tiers offering varying levels of performance and cost optimization.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_stream_storage_configurationselectregionRetrieves the current storage configuration for the specified Kinesis video stream. In the request, you must specify either the StreamName or the StreamARN. You must have permissions for the KinesisVideo:DescribeStreamStorageConfiguration action.
update_stream_storage_configurationupdateregion, CurrentVersion, StreamStorageConfigurationUpdates the storage configuration for an existing Kinesis video stream. This operation allows you to modify the storage tier settings for a stream, enabling you to optimize storage costs and performance based on your access patterns. UpdateStreamStorageConfiguration is an asynchronous operation. You must have permissions for the KinesisVideo:UpdateStreamStorageConfiguration action.

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

Retrieves the current storage configuration for the specified Kinesis video stream. In the request, you must specify either the StreamName or the StreamARN. You must have permissions for the KinesisVideo:DescribeStreamStorageConfiguration action.

SELECT
stream_arn,
stream_name,
stream_storage_configuration
FROM aws.kinesisvideo.stream_storage_configurations
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the storage configuration for an existing Kinesis video stream. This operation allows you to modify the storage tier settings for a stream, enabling you to optimize storage costs and performance based on your access patterns. UpdateStreamStorageConfiguration is an asynchronous operation. You must have permissions for the KinesisVideo:UpdateStreamStorageConfiguration action.

UPDATE aws.kinesisvideo.stream_storage_configurations
SET
StreamName = '{{ StreamName }}',
StreamARN = '{{ StreamARN }}',
CurrentVersion = '{{ CurrentVersion }}',
StreamStorageConfiguration = '{{ StreamStorageConfiguration }}'
WHERE
region = '{{ region }}' --required
AND CurrentVersion = '{{ CurrentVersion }}' --required
AND StreamStorageConfiguration = '{{ StreamStorageConfiguration }}' --required;