register_workspace_directory
¶
register_workspace_directory(
*,
config_overrides: Optional[WorkSpacesClientConfig] = 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/work_spaces.py
4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 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 | |