create_workspace
async
¶
create_workspace(
instance_id: InstanceId,
name: WorkspaceName,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
description: Optional[WorkspaceDescription] = None,
theme: Optional[WorkspaceTheme] = None,
title: Optional[WorkspaceTitle] = None,
tags: Optional[TagMap] = None,
) -> CreateWorkspaceResponse
Creates a workspace that defines the user experience by mapping views to pages. Workspaces can be assigned to users or routing profiles.
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.
-
name(WorkspaceName) –The name of the workspace. Must be unique within the instance and can contain 1-127 characters.
-
description(Optional[WorkspaceDescription], default:None) –The description of the workspace. Maximum length is 250 characters.
-
theme(Optional[WorkspaceTheme], default:None) –The theme configuration for the workspace, including colors and styling.
-
title(Optional[WorkspaceTitle], default:None) –The title displayed for the workspace.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example,
{ "Tags": {"key1":"value1", "key2":"value2"} }.
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.
-
LimitExceededException–The allowed limit for the resource has been exceeded.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 | |