register_workspace_directory
async
¶
register_workspace_directory(
*,
config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
directory_id: Optional[DirectoryId] = None,
subnet_ids: Optional[SubnetIds] = None,
enable_self_service: Optional[BooleanObject] = None,
tenancy: Optional[Tenancy] = None,
tags: Optional[TagList] = None,
workspace_directory_name: Optional[WorkspaceDirectoryName] = None,
workspace_directory_description: Optional[WorkspaceDirectoryDescription] = None,
user_identity_type: Optional[UserIdentityType] = None,
idc_instance_arn: Optional[ARN] = None,
microsoft_entra_config: Optional[MicrosoftEntraConfig] = None,
workspace_type: Optional[WorkspaceType] = None,
active_directory_config: Optional[ActiveDirectoryConfig] = None,
) -> RegisterWorkspaceDirectoryResult
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.
Parameters:
-
directory_id(Optional[DirectoryId], default:None) –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.
-
subnet_ids(Optional[SubnetIds], default:None) –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.
-
enable_self_service(Optional[BooleanObject], default:None) –Indicates whether self-service capabilities are enabled or disabled.
-
tenancy(Optional[Tenancy], default:None) –Indicates whether your WorkSpace directory is dedicated or shared. To use Bring Your Own License (BYOL) images, this value must be set to
DEDICATEDand 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(Optional[TagList], default:None) –The tags associated with the directory.
-
workspace_directory_name(Optional[WorkspaceDirectoryName], default:None) –The name of the directory to register.
-
workspace_directory_description(Optional[WorkspaceDirectoryDescription], default:None) –Description of the directory to register.
-
user_identity_type(Optional[UserIdentityType], default:None) –The type of identity management the user is using.
-
idc_instance_arn(Optional[ARN], default:None) –The Amazon Resource Name (ARN) of the identity center instance.
-
microsoft_entra_config(Optional[MicrosoftEntraConfig], default:None) –The details about Microsoft Entra config.
-
workspace_type(Optional[WorkspaceType], default:None) –Indicates whether the directory's WorkSpace type is personal or pools.
-
active_directory_config(Optional[ActiveDirectoryConfig], default:None) –The active directory config of the directory.
Raises:
-
AccessDeniedException–The user is not authorized to access a resource.
-
InvalidParameterValuesException–One or more parameter values are not valid.
-
InvalidResourceStateException–The state of the resource is not valid for this operation.
-
OperationNotSupportedException–This operation is not supported.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceLimitExceededException–Your resource limits have been exceeded.
-
ResourceNotFoundException–The resource could not be found.
-
UnsupportedNetworkConfigurationException–The configuration of this network is not supported for this operation, or your network configuration conflicts with the Amazon WorkSpaces management network IP range. For more information, see Configure a VPC for Amazon WorkSpaces.
-
WorkspacesDefaultRoleNotFoundException–The workspaces_DefaultRole role could not be found. 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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces/_services/async_work_spaces.py
4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 | |