Skip to main content

connection_aliases

Creates, updates, deletes or gets a connection_alias resource or lists connection_aliases in a region

Overview

Nameconnection_aliases
TypeResource
DescriptionResource Type definition for AWS::WorkSpaces::ConnectionAlias
Idaws.workspaces.connection_aliases

Fields

NameDatatypeDescription
associationsarray
alias_idstring
connection_stringstring
connection_alias_statestring
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConnectionString, region
delete_resourceDELETEdata__Identifier, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual connection_alias.

SELECT
region,
associations,
alias_id,
connection_string,
connection_alias_state,
tags
FROM aws.workspaces.connection_aliases
WHERE region = 'us-east-1' AND data__Identifier = '<AliasId>';

INSERT example

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

/*+ create */
INSERT INTO aws.workspaces.connection_aliases (
ConnectionString,
region
)
SELECT
'{{ ConnectionString }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.workspaces.connection_aliases
WHERE data__Identifier = '<AliasId>'
AND region = 'us-east-1';

Permissions

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

Create

workspaces:CreateConnectionAlias

Read

workspaces:DescribeConnectionAliases

Delete

workspaces:DeleteConnectionAlias