create_workspace_image
¶
create_workspace_image(
name: WorkspaceImageName,
description: WorkspaceImageDescription,
workspace_id: WorkspaceId,
*,
config_overrides: Optional[WorkSpacesClientConfig] = None,
tags: Optional[TagList] = None,
) -> CreateWorkspaceImageResult
Creates a new WorkSpace image from an existing WorkSpace.
Parameters:
-
name(WorkspaceImageName) –The name of the new WorkSpace image.
-
description(WorkspaceImageDescription) –The description of the new WorkSpace image.
-
workspace_id(WorkspaceId) –The identifier of the source WorkSpace
-
tags(Optional[TagList], default:None) –The tags that you want to add to the new WorkSpace image. To add tags when you're creating the image, you must create an IAM policy that grants your IAM user permission to use
workspaces:CreateTags.
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces/_services/work_spaces.py
2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 | |