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
6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 | |