Skip to main content

connection_alias_permissions

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

Overview

Nameconnection_alias_permissions
TypeResource
Idaws.workspaces.connection_alias_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
alias_idstringThe identifier of the connection alias. (pattern: <code>^wsca-[0-9a-z]{8,63}$</code>)
connection_alias_permissionsarrayThe permissions associated with a connection alias.
next_tokenstringThe token to use to retrieve the next page of results. This value is null when there are no more results to return.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_connection_alias_permissionsselectregionDescribes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces.
update_connection_alias_permissionupdateregion, AliasId, ConnectionAliasPermissionShares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory. If the association permission is granted, the connection alias is shared with that account. If the association permission is revoked, the connection alias is unshared with the account. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED. To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories.

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

Describes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces.

SELECT
alias_id,
connection_alias_permissions,
next_token
FROM aws.workspaces.connection_alias_permissions
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Shares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory. If the association permission is granted, the connection alias is shared with that account. If the association permission is revoked, the connection alias is unshared with the account. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED. To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories.

UPDATE aws.workspaces.connection_alias_permissions
SET
AliasId = '{{ AliasId }}',
ConnectionAliasPermission = '{{ ConnectionAliasPermission }}'
WHERE
region = '{{ region }}' --required
AND AliasId = '{{ AliasId }}' --required
AND ConnectionAliasPermission = '{{ ConnectionAliasPermission }}' --required;