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
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 | |