Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idaws.workspaces.accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
dedicated_tenancy_account_typestringThe type of linked account. (SOURCE_ACCOUNT, TARGET_ACCOUNT)
dedicated_tenancy_management_cidr_rangestringThe IP address range, specified as an IPv4 CIDR block, used for the management network interface. The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace. (pattern: <code>(^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).0.0)(/(16$))$</code>)
dedicated_tenancy_supportstringThe status of BYOL (whether BYOL is enabled or disabled). (ENABLED, DISABLED)
messagestringThe text message to describe the status of BYOL.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_accountselectregionRetrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account.
modify_accountupdateregionModifies the configuration of Bring Your Own License (BYOL) for the specified account.

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 the configuration of Bring Your Own License (BYOL) for the specified account.

SELECT
dedicated_tenancy_account_type,
dedicated_tenancy_management_cidr_range,
dedicated_tenancy_support,
message
FROM aws.workspaces.accounts
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Modifies the configuration of Bring Your Own License (BYOL) for the specified account.

UPDATE aws.workspaces.accounts
SET
DedicatedTenancySupport = '{{ DedicatedTenancySupport }}',
DedicatedTenancyManagementCidrRange = '{{ DedicatedTenancyManagementCidrRange }}'
WHERE
region = '{{ region }}' --required
RETURNING
message;