associate_workspace
async
¶
associate_workspace(
instance_id: InstanceId,
workspace_id: WorkspaceId,
resource_arns: WorkspaceResourceArnList,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
) -> AssociateWorkspaceResponse
Associates a workspace with one or more users or routing profiles, allowing them to access the workspace's configured views and pages.
Parameters:
-
instance_id(InstanceId) –The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
workspace_id(WorkspaceId) –The identifier of the workspace.
-
resource_arns(WorkspaceResourceArnList) –The Amazon Resource Names (ARNs) of the resources to associate with the workspace. Valid resource types are users and routing profiles.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
DuplicateResourceException–A resource with the specified name already exists.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.