create_workspace_bundle
¶
create_workspace_bundle(
bundle_name: WorkspaceBundleName,
bundle_description: WorkspaceBundleDescription,
image_id: WorkspaceImageId,
compute_type: ComputeType,
user_storage: UserStorage,
*,
config_overrides: Optional[WorkSpacesClientConfig] = None,
root_storage: Optional[RootStorage] = None,
tags: Optional[TagList] = None,
) -> CreateWorkspaceBundleResult
Creates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle.
Parameters:
-
bundle_name(WorkspaceBundleName) –The name of the bundle.
-
bundle_description(WorkspaceBundleDescription) –The description of the bundle.
-
image_id(WorkspaceImageId) –The identifier of the image that is used to create the bundle.
-
tags(Optional[TagList], default:None) –The tags associated with the bundle.
To add tags at the same time when you're creating the bundle, you must create an IAM policy that grants your IAM user permissions to use
workspaces:CreateTags.
Raises:
-
AccessDeniedException–The user is not authorized to access a resource.
-
InvalidParameterValuesException–One or more parameter values are not valid.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceLimitExceededException–Your resource limits have been exceeded.
-
ResourceNotFoundException–The resource could not be found.
-
ResourceUnavailableException–The specified resource is not available.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces/_services/work_spaces.py
2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 | |