stream_keys
Creates, updates, deletes or gets a stream_key resource or lists stream_keys in a region
Overview
| Name | stream_keys |
| Type | Resource |
| Description | Resource Type definition for AWS::IVS::StreamKey |
| Id | awscc.ivs.stream_keys |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | Stream Key ARN is automatically generated on creation and assigned as the unique identifier. |
channel_arn | string | Channel ARN for the stream. |
tags | array | A list of key-value pairs that contain metadata for the asset model. |
value | string | Stream-key value. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
arn | string | Stream Key ARN is automatically generated on creation and assigned as the unique identifier. |
region | string | AWS region. |
For more information, see AWS::IVS::StreamKey.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | stream_keys | INSERT | ChannelArn, region |
delete_resource | stream_keys | DELETE | Identifier, region |
update_resource | stream_keys | UPDATE | Identifier, PatchDocument, region |
list_resources | stream_keys_list_only | SELECT | region |
get_resource | stream_keys | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual stream_key.
SELECT
region,
arn,
channel_arn,
tags,
value
FROM awscc.ivs.stream_keys
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';
Lists all stream_keys in a region.
SELECT
region,
arn
FROM awscc.ivs.stream_keys_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new stream_key resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.ivs.stream_keys (
ChannelArn,
region
)
SELECT
'{{ channel_arn }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.ivs.stream_keys (
ChannelArn,
Tags,
region
)
SELECT
'{{ channel_arn }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: stream_key
props:
- name: channel_arn
value: '{{ channel_arn }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a stream_key resource, using stack-deploy.
/*+ update */
UPDATE awscc.ivs.stream_keys
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';
DELETE example
/*+ delete */
DELETE FROM awscc.ivs.stream_keys
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';
Permissions
To operate on the stream_keys resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
ivs:TagResource,
ivs:UntagResource,
ivs:CreateStreamKey
ivs:GetStreamKey,
ivs:ListTagsForResource
ivs:GetStreamKey,
ivs:TagResource,
ivs:UntagResource,
ivs:ListTagsForResource
ivs:DeleteStreamKey,
ivs:UntagResource
ivs:ListStreamKeys,
ivs:ListTagsForResource