Skip to main content

app_block_builders

Creates, updates, deletes or gets an app_block_builder resource or lists app_block_builders in a region

Overview

Nameapp_block_builders
TypeResource
DescriptionResource Type definition for AWS::AppStream::AppBlockBuilder.
Idawscc.appstream.app_block_builders

Fields

NameDatatypeDescription
namestring
arnstring
descriptionstring
display_namestring
platformstring
access_endpointsarray
tagsarray
vpc_configobject
enable_default_internet_accessboolean
iam_role_arnstring
created_timestring
instance_typestring
app_block_arnsarray
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceapp_block_buildersINSERTName, Platform, InstanceType, VpcConfig, region
delete_resourceapp_block_buildersDELETEIdentifier, region
update_resourceapp_block_buildersUPDATEIdentifier, PatchDocument, region
list_resourcesapp_block_builders_list_onlySELECTregion
get_resourceapp_block_buildersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual app_block_builder.

SELECT
region,
name,
arn,
description,
display_name,
platform,
access_endpoints,
tags,
vpc_config,
enable_default_internet_access,
iam_role_arn,
created_time,
instance_type,
app_block_arns
FROM awscc.appstream.app_block_builders
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.appstream.app_block_builders (
Name,
Platform,
VpcConfig,
InstanceType,
region
)
SELECT
'{{ name }}',
'{{ platform }}',
'{{ vpc_config }}',
'{{ instance_type }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.appstream.app_block_builders
SET PatchDocument = string('{{ {
"Description": description,
"DisplayName": display_name,
"Platform": platform,
"AccessEndpoints": access_endpoints,
"Tags": tags,
"VpcConfig": vpc_config,
"EnableDefaultInternetAccess": enable_default_internet_access,
"IamRoleArn": iam_role_arn,
"InstanceType": instance_type,
"AppBlockArns": app_block_arns
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.appstream.app_block_builders
WHERE
Identifier = '{{ name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

appstream:CreateAppBlockBuilder,
appstream:DescribeAppBlockBuilders,
appstream:StartAppBlockBuilder,
appstream:AssociateAppBlockBuilderAppBlock,
appstream:DescribeAppBlockBuilderAppBlockAssociations,
appstream:TagResource,
appstream:ListTagsForResource,
iam:PassRole