Skip to main content

stacks

Creates, updates, deletes, gets or lists a stacks resource.

Overview

Namestacks
TypeResource
Idaws.appstream.stacks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_endpointsarrayThe list of virtual private cloud (VPC) interface endpoint objects. Users of the stack can connect to WorkSpaces Applications only through the specified endpoints.
agent_access_configobjectThe agent access configuration of the stack, if agent access is enabled.
application_settingsobjectThe persistent application settings for users of the stack.
arnstringThe ARN of the stack. (pattern: <code>^arn:aws(?:-cn|-iso-b|-iso|-us-gov)?:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.\-]{0,1023}$</code>)
content_redirectionobjectConfiguration for bidirectional URL redirection between the streaming session and the local client. Use HostToClient to redirect URLs from the remote desktop to the local browser.
created_timestring (date-time)The time the stack was created.
descriptionstringThe description to display.
display_namestringThe stack name to display.
embed_host_domainsarrayThe domains where WorkSpaces Applications streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded WorkSpaces Applications streaming sessions.
feedback_urlstringThe URL that users are redirected to after they click the Send Feedback link. If no URL is specified, no Send Feedback link is displayed.
namestringThe name of the stack.
redirect_urlstringThe URL that users are redirected to after their streaming session ends.
stack_errorsarrayThe errors for the stack.
storage_connectorsarrayThe storage connectors to enable.
streaming_experience_settingsobjectThe streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.
user_settingsarrayThe actions that are enabled or disabled for users during their streaming sessions. By default these actions are enabled.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_stacksselectregionRetrieves a list that describes one or more specified stacks, if the stack names are provided. Otherwise, all stacks in the account are described.
create_stackinsertregionCreates a stack to start streaming applications to users. A stack consists of an associated fleet, user access policies, and storage configurations.
update_stackupdateregionUpdates the specified fields for the specified stack.
delete_stackdeleteregionDeletes the specified stack. After the stack is deleted, the application streaming environment provided by the stack is no longer available to users. Also, any reservations made for application streaming sessions for the stack are released.

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 specified stacks, if the stack names are provided. Otherwise, all stacks in the account are described.

SELECT
access_endpoints,
agent_access_config,
application_settings,
arn,
content_redirection,
created_time,
description,
display_name,
embed_host_domains,
feedback_url,
name,
redirect_url,
stack_errors,
storage_connectors,
streaming_experience_settings,
user_settings
FROM aws.appstream.stacks
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a stack to start streaming applications to users. A stack consists of an associated fleet, user access policies, and storage configurations.

INSERT INTO aws.appstream.stacks (
Name,
Description,
DisplayName,
StorageConnectors,
RedirectURL,
FeedbackURL,
UserSettings,
ApplicationSettings,
Tags,
AccessEndpoints,
EmbedHostDomains,
StreamingExperienceSettings,
ContentRedirection,
AgentAccessConfig,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ DisplayName }}',
'{{ StorageConnectors }}',
'{{ RedirectURL }}',
'{{ FeedbackURL }}',
'{{ UserSettings }}',
'{{ ApplicationSettings }}',
'{{ Tags }}',
'{{ AccessEndpoints }}',
'{{ EmbedHostDomains }}',
'{{ StreamingExperienceSettings }}',
'{{ ContentRedirection }}',
'{{ AgentAccessConfig }}',
'{{ region }}'
RETURNING
stack
;

UPDATE examples

Updates the specified fields for the specified stack.

UPDATE aws.appstream.stacks
SET
DisplayName = '{{ DisplayName }}',
Description = '{{ Description }}',
Name = '{{ Name }}',
StorageConnectors = '{{ StorageConnectors }}',
DeleteStorageConnectors = {{ DeleteStorageConnectors }},
RedirectURL = '{{ RedirectURL }}',
FeedbackURL = '{{ FeedbackURL }}',
AttributesToDelete = '{{ AttributesToDelete }}',
UserSettings = '{{ UserSettings }}',
ApplicationSettings = '{{ ApplicationSettings }}',
AccessEndpoints = '{{ AccessEndpoints }}',
EmbedHostDomains = '{{ EmbedHostDomains }}',
StreamingExperienceSettings = '{{ StreamingExperienceSettings }}',
ContentRedirection = '{{ ContentRedirection }}',
AgentAccessConfig = '{{ AgentAccessConfig }}'
WHERE
region = '{{ region }}' --required
RETURNING
stack;

DELETE examples

Deletes the specified stack. After the stack is deleted, the application streaming environment provided by the stack is no longer available to users. Also, any reservations made for application streaming sessions for the stack are released.

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