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
Idawscc.appstream.app_blocks

Fields

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

For more information, see AWS::AppStream::AppBlock.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, SourceS3Location, region
delete_resourceDELETEIdentifier, region
update_resourceUPDATEIdentifier, PatchDocument, region
get_resourceSELECTIdentifier, 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 awscc.appstream.app_blocks
WHERE
region = 'us-east-1' AND
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 awscc.appstream.app_blocks (
Name,
SourceS3Location,
region
)
SELECT
'{{ name }}',
'{{ source_s3_location }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.appstream.app_blocks
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.appstream.app_blocks
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

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