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
2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 | |