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,
workspace_os_user_mode: Optional[WorkspaceOSUserMode] = 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.
-
workspace_os_user_mode(Optional[WorkspaceOSUserMode], default:None) –Indicates how users are set up on the WorkSpace operating system. To use local users with an AWS IAM Identity Center directory, specify
LOCAL_USER. -
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
8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 | |