Skip to content

Register Workspace Directory

workspaces_register_workspace_directory R Documentation

Registers the specified directory

Description

Registers the specified directory. This operation is asynchronous and returns before the WorkSpace directory is registered. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role.

Usage

workspaces_register_workspace_directory(DirectoryId, SubnetIds,
  EnableWorkDocs, EnableSelfService, Tenancy, Tags,
  WorkspaceDirectoryName, WorkspaceDirectoryDescription, UserIdentityType,
  IdcInstanceArn, MicrosoftEntraConfig, WorkspaceType,
  ActiveDirectoryConfig)

Arguments

DirectoryId

The identifier of the directory. You cannot register a directory if it does not have a status of Active. If the directory does not have a status of Active, you will receive an InvalidResourceStateException error. If you have already registered the maximum number of directories that you can register with Amazon WorkSpaces, you will receive a ResourceLimitExceededException error. Deregister directories that you are not using for WorkSpaces, and try again.

SubnetIds

The identifiers of the subnets for your virtual private cloud (VPC). Make sure that the subnets are in supported Availability Zones. The subnets must also be in separate Availability Zones. If these conditions are not met, you will receive an OperationNotSupportedException error.

EnableWorkDocs

Indicates whether Amazon WorkDocs is enabled or disabled. If you have enabled this parameter and WorkDocs is not available in the Region, you will receive an OperationNotSupportedException error. Set EnableWorkDocs to disabled, and try again.

EnableSelfService

Indicates whether self-service capabilities are enabled or disabled.

Tenancy

Indicates whether your WorkSpace directory is dedicated or shared. To use Bring Your Own License (BYOL) images, this value must be set to DEDICATED and your Amazon Web Services account must be enabled for BYOL. If your account has not been enabled for BYOL, you will receive an InvalidParameterValuesException error. For more information about BYOL images, see Bring Your Own Windows Desktop Images.

Tags

The tags associated with the directory.

WorkspaceDirectoryName

The name of the directory to register.

WorkspaceDirectoryDescription

Description of the directory to register.

UserIdentityType

The type of identity management the user is using.

IdcInstanceArn

The Amazon Resource Name (ARN) of the identity center instance.

MicrosoftEntraConfig

The details about Microsoft Entra config.

WorkspaceType

Indicates whether the directory's WorkSpace type is personal or pools.

ActiveDirectoryConfig

The active directory config of the directory.

Value

A list with the following syntax:

list(
  DirectoryId = "string",
  State = "REGISTERING"|"REGISTERED"|"DEREGISTERING"|"DEREGISTERED"|"ERROR"
)

Request syntax

svc$register_workspace_directory(
  DirectoryId = "string",
  SubnetIds = list(
    "string"
  ),
  EnableWorkDocs = TRUE|FALSE,
  EnableSelfService = TRUE|FALSE,
  Tenancy = "DEDICATED"|"SHARED",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  ),
  WorkspaceDirectoryName = "string",
  WorkspaceDirectoryDescription = "string",
  UserIdentityType = "CUSTOMER_MANAGED"|"AWS_DIRECTORY_SERVICE"|"AWS_IAM_IDENTITY_CENTER",
  IdcInstanceArn = "string",
  MicrosoftEntraConfig = list(
    TenantId = "string",
    ApplicationConfigSecretArn = "string"
  ),
  WorkspaceType = "PERSONAL"|"POOLS",
  ActiveDirectoryConfig = list(
    DomainName = "string",
    ServiceAccountSecretArn = "string"
  )
)