app_blocks
Creates, updates, deletes or gets an app_block
resource or lists app_blocks
in a region
Overview
Name | app_blocks |
Type | Resource |
Description | Resource Type definition for AWS::AppStream::AppBlock |
Id | aws.appstream.app_blocks |
Fields
Name | Datatype | Description |
---|---|---|
name | string | |
arn | string | |
description | string | |
display_name | string | |
source_s3_location | object | |
setup_script_details | object | |
tags | array | |
created_time | string | |
packaging_type | string | |
post_setup_script_details | object | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, SourceS3Location, region |
delete_resource | DELETE | data__Identifier, region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.appstream.app_blocks (
Name,
SourceS3Location,
region
)
SELECT
'{{ Name }}',
'{{ SourceS3Location }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.appstream.app_blocks (
Name,
Description,
DisplayName,
SourceS3Location,
SetupScriptDetails,
Tags,
PackagingType,
PostSetupScriptDetails,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ DisplayName }}',
'{{ SourceS3Location }}',
'{{ SetupScriptDetails }}',
'{{ Tags }}',
'{{ PackagingType }}',
'{{ PostSetupScriptDetails }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: app_block
props:
- name: Name
value: '{{ Name }}'
- name: Description
value: '{{ Description }}'
- name: DisplayName
value: '{{ DisplayName }}'
- name: SourceS3Location
value:
S3Bucket: '{{ S3Bucket }}'
S3Key: '{{ S3Key }}'
- name: SetupScriptDetails
value:
ScriptS3Location: null
ExecutablePath: '{{ ExecutablePath }}'
ExecutableParameters: '{{ ExecutableParameters }}'
TimeoutInSeconds: '{{ TimeoutInSeconds }}'
- name: Tags
value:
- Value: '{{ Value }}'
Key: '{{ Key }}'
- name: PackagingType
value: '{{ PackagingType }}'
- name: PostSetupScriptDetails
value: null
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