Skip to main content

storage_configurations

Creates, updates, deletes or gets a storage_configuration resource or lists storage_configurations in a region

Overview

Namestorage_configurations
TypeResource
DescriptionResource Type definition for AWS::IVS::StorageConfiguration
Idaws.ivs.storage_configurations

Fields

NameDatatypeDescription
arnstringStorage Configuration ARN is automatically generated on creation and assigned as the unique identifier.
namestringStorage Configuration Name.
s3objectA complex type that describes an S3 location where recorded videos will be stored.
tagsarrayA list of key-value pairs that contain metadata for the asset model.
regionstringAWS region.

Methods

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

SELECT examples

Gets all storage_configurations in a region.

SELECT
region,
arn,
name,
s3,
tags
FROM aws.ivs.storage_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual storage_configuration.

SELECT
region,
arn,
name,
s3,
tags
FROM aws.ivs.storage_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

ivs:CreateStorageConfiguration,
ivs:GetStorageConfiguration,
ivs:TagResource,
s3:GetBucketLocation,
s3:GetBucketPolicy,
s3:PutBucketPolicy

Read

ivs:GetStorageConfiguration,
ivs:ListTagsForResource,
s3:GetBucketLocation

Update

ivs:GetStorageConfiguration,
ivs:TagResource,
ivs:UntagResource,
ivs:ListTagsForResource

Delete

ivs:DeleteStorageConfiguration,
ivs:UntagResource,
s3:GetBucketPolicy,
s3:DeleteBucketPolicy,
s3:PutBucketPolicy

List

ivs:ListStorageConfigurations,
s3:GetBucketLocation,
ivs:ListTagsForResource