create_updated_image
¶
create_updated_image(
*,
config_overrides: Optional[AppStreamClientConfig] = None,
existing_image_name: Optional[Name] = None,
new_image_name: Optional[Name] = None,
new_image_description: Optional[Description] = None,
new_image_display_name: Optional[DisplayName] = None,
new_image_tags: Optional[Tags] = None,
dry_run: Optional[Boolean] = None,
) -> CreateUpdatedImageResult
Creates a new image with the latest Windows operating system updates, driver updates, and WorkSpaces Applications agent software.
For more information, see the "Update an Image by Using Managed WorkSpaces Applications Image Updates" section in Administer Your WorkSpaces Applications Images, in the Amazon WorkSpaces Applications Administration Guide.
Parameters:
-
existing_image_name(Optional[Name], default:None) –The name of the image to update.
-
new_image_name(Optional[Name], default:None) –The name of the new image. The name must be unique within the AWS account and Region.
-
new_image_description(Optional[Description], default:None) –The description to display for the new image.
-
new_image_display_name(Optional[DisplayName], default:None) –The name to display for the new image.
-
new_image_tags(Optional[Tags], default:None) –The tags to associate with the new image. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.
Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:
_ . : / = + \ - @
If you do not specify a value, the value is set to an empty string.
For more information about tags, see Tagging Your Resources in the Amazon WorkSpaces Applications Administration Guide.
-
dry_run(Optional[Boolean], default:None) –Indicates whether to display the status of image update availability before WorkSpaces Applications initiates the process of creating a new updated image. If this value is set to
true, WorkSpaces Applications displays whether image updates are available. If this value is set tofalse, WorkSpaces Applications initiates the process of creating a new updated image without displaying whether image updates are available.
Raises:
-
ConcurrentModificationException–An API error occurred. Wait a few minutes and try again.
-
IncompatibleImageException–The image can't be updated because it's not compatible for updates.
-
InvalidAccountStatusException–The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support.
-
LimitExceededException–The requested limit exceeds the permitted limit for an account.
-
OperationNotPermittedException–The attempted operation is not permitted.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appstream/_services/app_stream.py
2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 | |