Skip to main content

app_blocks

Creates, updates, deletes or gets an app_block resource or lists app_blocks in a region

Overview

Nameapp_blocks
TypeResource
DescriptionResource Type definition for AWS::AppStream::AppBlock
Idaws.appstream.app_blocks

Fields

NameDatatypeDescription
namestring
arnstring
descriptionstring
display_namestring
source_s3_locationobject
setup_script_detailsobject
tagsarray
created_timestring
packaging_typestring
post_setup_script_detailsobject
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, SourceS3Location, region
delete_resourceDELETEdata__Identifier, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual app_block.

SELECT
region,
name,
arn,
description,
display_name,
source_s3_location,
setup_script_details,
tags,
created_time,
packaging_type,
post_setup_script_details
FROM aws.appstream.app_blocks
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.appstream.app_blocks (
Name,
SourceS3Location,
region
)
SELECT
'{{ Name }}',
'{{ SourceS3Location }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

appstream:CreateAppBlock,
appstream:TagResource,
s3:GetObject,
s3:ListBucket,
s3:GetBucketOwnershipControls

Read

appstream:DescribeAppBlocks

Delete

appstream:DeleteAppBlock