create_workspace_image
async
¶
create_workspace_image(
name: WorkspaceImageName,
description: WorkspaceImageDescription,
workspace_id: WorkspaceId,
*,
config_overrides: Optional[AsyncWorkSpacesClientConfig] = 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/async_work_spaces.py
2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 | |