Skip to main content

app_block_builders

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

Overview

Nameapp_block_builders
TypeResource
Idaws.appstream.app_block_builders

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
app_block_buildersarrayThe list that describes one or more app block builders.
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_block_buildersselectregionRetrieves a list that describes one or more app block builders.
create_app_block_builderinsertregion, Name, Platform, InstanceType, VpcConfigCreates an app block builder.
create_app_block_builder_streaming_urlinsertregion, AppBlockBuilderNameCreates a URL to start a create app block builder streaming session.
update_app_block_builderupdateregion, NameUpdates an app block builder. If the app block builder is in the STARTING or STOPPING state, you can't update it. If the app block builder is in the RUNNING state, you can only update the DisplayName and Description. If the app block builder is in the STOPPED state, you can update any attribute except the Name.
delete_app_block_builderdeleteregionDeletes an app block builder. An app block builder can only be deleted when it has no association with an app block.

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 block builders.

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

INSERT examples

Creates an app block builder.

INSERT INTO aws.appstream.app_block_builders (
Name,
Description,
DisplayName,
Tags,
Platform,
InstanceType,
VpcConfig,
EnableDefaultInternetAccess,
IamRoleArn,
AccessEndpoints,
DisableIMDSV1,
region
)
SELECT
'{{ Name }}' /* required */,
'{{ Description }}',
'{{ DisplayName }}',
'{{ Tags }}',
'{{ Platform }}' /* required */,
'{{ InstanceType }}' /* required */,
'{{ VpcConfig }}' /* required */,
{{ EnableDefaultInternetAccess }},
'{{ IamRoleArn }}',
'{{ AccessEndpoints }}',
{{ DisableIMDSV1 }},
'{{ region }}'
RETURNING
app_block_builder
;

UPDATE examples

Updates an app block builder. If the app block builder is in the STARTING or STOPPING state, you can't update it. If the app block builder is in the RUNNING state, you can only update the DisplayName and Description. If the app block builder is in the STOPPED state, you can update any attribute except the Name.

UPDATE aws.appstream.app_block_builders
SET
Name = '{{ Name }}',
Description = '{{ Description }}',
DisplayName = '{{ DisplayName }}',
Platform = '{{ Platform }}',
InstanceType = '{{ InstanceType }}',
VpcConfig = '{{ VpcConfig }}',
EnableDefaultInternetAccess = {{ EnableDefaultInternetAccess }},
IamRoleArn = '{{ IamRoleArn }}',
AccessEndpoints = '{{ AccessEndpoints }}',
AttributesToDelete = '{{ AttributesToDelete }}',
DisableIMDSV1 = {{ DisableIMDSV1 }}
WHERE
region = '{{ region }}' --required
AND Name = '{{ Name }}' --required
RETURNING
app_block_builder;

DELETE examples

Deletes an app block builder. An app block builder can only be deleted when it has no association with an app block.

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