Skip to main content

app_blocks

Creates, updates, deletes, gets or lists an app_blocks resource.

Overview

Nameapp_blocks
TypeResource
Idaws.appstream.app_blocks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
app_blocksarrayThe app blocks in the list.
next_tokenstringThe pagination token used to retrieve the next page of results for this operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_app_blocksselectregionRetrieves a list that describes one or more app blocks.
create_app_blockinsertregion, Name, SourceS3LocationCreates an app block. App blocks are a WorkSpaces Applications resource that stores the details about the virtual hard disk in an S3 bucket. It also stores the setup script with details about how to mount the virtual hard disk. The virtual hard disk includes the application binaries and other files necessary to launch your applications. Multiple applications can be assigned to a single app block. This is only supported for Elastic fleets.
associate_app_block_builder_app_blockupdateregion, AppBlockArn, AppBlockBuilderNameAssociates the specified app block builder with the specified app block.
delete_app_blockdeleteregionDeletes an app block.
disassociate_app_block_builder_app_blockexecregion, AppBlockArn, AppBlockBuilderNameDisassociates a specified app block builder from a specified app block.
start_app_block_builderexecregion, NameStarts an app block builder. An app block builder can only be started when it's associated with an app block. Starting an app block builder starts a new instance, which is equivalent to an elastic fleet instance with application builder assistance functionality.
stop_app_block_builderexecregion, NameStops an app block builder. Stopping an app block builder terminates the instance, and the instance state is not persisted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a list that describes one or more app blocks.

SELECT
app_blocks,
next_token
FROM aws.appstream.app_blocks
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an app block. App blocks are a WorkSpaces Applications resource that stores the details about the virtual hard disk in an S3 bucket. It also stores the setup script with details about how to mount the virtual hard disk. The virtual hard disk includes the application binaries and other files necessary to launch your applications. Multiple applications can be assigned to a single app block. This is only supported for Elastic fleets.

INSERT INTO aws.appstream.app_blocks (
Name,
Description,
DisplayName,
SourceS3Location,
SetupScriptDetails,
Tags,
PostSetupScriptDetails,
PackagingType,
region
)
SELECT
'{{ Name }}' /* required */,
'{{ Description }}',
'{{ DisplayName }}',
'{{ SourceS3Location }}' /* required */,
'{{ SetupScriptDetails }}',
'{{ Tags }}',
'{{ PostSetupScriptDetails }}',
'{{ PackagingType }}',
'{{ region }}'
RETURNING
app_block
;

UPDATE examples

Associates the specified app block builder with the specified app block.

UPDATE aws.appstream.app_blocks
SET
AppBlockArn = '{{ AppBlockArn }}',
AppBlockBuilderName = '{{ AppBlockBuilderName }}'
WHERE
region = '{{ region }}' --required
AND AppBlockArn = '{{ AppBlockArn }}' --required
AND AppBlockBuilderName = '{{ AppBlockBuilderName }}' --required
RETURNING
app_block_builder_app_block_association;

DELETE examples

Deletes an app block.

DELETE FROM aws.appstream.app_blocks
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Disassociates a specified app block builder from a specified app block.

EXEC aws.appstream.app_blocks.disassociate_app_block_builder_app_block
@region='{{ region }}' --required
@@json=
'{
"AppBlockArn": "{{ AppBlockArn }}",
"AppBlockBuilderName": "{{ AppBlockBuilderName }}"
}'
;