Skip to main content

stages

Creates, updates, deletes or gets a stage resource or lists stages in a region

Overview

Namestages
TypeResource
DescriptionResource Definition for type AWS::IVS::Stage.
Idaws.ivs.stages

Fields

NameDatatypeDescription
arnstringStage ARN is automatically generated on creation and assigned as the unique identifier.
namestringStage name
tagsarrayAn array of key-value pairs to apply to this resource.
active_session_idstringID of the active session within the stage.
regionstringAWS region.

Methods

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

SELECT examples

Gets all stages in a region.

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

Gets all properties from an individual stage.

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

INSERT example

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

/*+ create */
INSERT INTO aws.ivs.stages (
Name,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

ivs:CreateStage,
ivs:GetStage,
ivs:TagResource,
ivs:ListTagsForResource

Read

ivs:GetStage,
ivs:ListTagsForResource

Update

ivs:GetStage,
ivs:UpdateStage,
ivs:TagResource,
ivs:UnTagResource,
ivs:ListTagsForResource

Delete

ivs:DeleteStage,
ivs:UnTagResource

List

ivs:ListStages,
ivs:ListTagsForResource