create_updated_image
async
¶
create_updated_image(
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = 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/async_app_stream.py
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 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 | |