Skip to main content

storage_configurations

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

Overview

Namestorage_configurations
TypeResource
Idaws.ivs_realtime.storage_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringName of the storage configuration. (pattern: <code>[a-zA-Z0-9-_]*</code>)
arnstringARN of the storage configuration. (pattern: <code>arn:aws:ivs:[a-z0-9-]+:[0-9]+:storage-configuration/[a-zA-Z0-9-]+</code>)
s_3objectA complex type that describes an S3 location where recorded videos will be stored.
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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_storage_configurationselectregionGets the storage configuration for the specified ARN.
list_storage_configurationsselectregionGets summary information about all storage configurations in your account, in the AWS region where the API request is processed.
create_storage_configurationinsertregion, s3Creates a new storage configuration, used to enable recording to Amazon S3. When a StorageConfiguration is created, IVS will modify the S3 bucketPolicy of the provided bucket. This will ensure that IVS has sufficient permissions to write content to the provided bucket.
delete_storage_configurationdeleteregionDeletes the storage configuration for the specified ARN. If you try to delete a storage configuration that is used by a Composition, you will get an error (409 ConflictException). To avoid this, for all Compositions that reference the storage configuration, first use StopComposition and wait for it to complete, then use DeleteStorageConfiguration.

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 the storage configuration for the specified ARN.

SELECT
name,
arn,
s_3,
tags
FROM aws.ivs_realtime.storage_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new storage configuration, used to enable recording to Amazon S3. When a StorageConfiguration is created, IVS will modify the S3 bucketPolicy of the provided bucket. This will ensure that IVS has sufficient permissions to write content to the provided bucket.

INSERT INTO aws.ivs_realtime.storage_configurations (
name,
s3,
tags,
region
)
SELECT
'{{ name }}',
'{{ s3 }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
storage_configuration
;

DELETE examples

Deletes the storage configuration for the specified ARN. If you try to delete a storage configuration that is used by a Composition, you will get an error (409 ConflictException). To avoid this, for all Compositions that reference the storage configuration, first use StopComposition and wait for it to complete, then use DeleteStorageConfiguration.

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