create_export_image_task
async
¶
create_export_image_task(
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
image_name: Optional[Name] = None,
ami_name: Optional[AmiName] = None,
iam_role_arn: Optional[Arn] = None,
tag_specifications: Optional[Tags] = None,
ami_description: Optional[Description] = None,
) -> CreateExportImageTaskResult
Creates a task to export a WorkSpaces Applications image to an EC2 AMI. This allows you to use your customized WorkSpaces Applications images with other AWS services or for backup purposes.
Parameters:
-
image_name(Optional[Name], default:None) –The name of the WorkSpaces Applications image to export. The image must be in an available state and owned by your account.
-
ami_name(Optional[AmiName], default:None) –The name for the exported EC2 AMI. This is a required field that must be unique within your account and region.
-
iam_role_arn(Optional[Arn], default:None) –The ARN of the IAM role that allows WorkSpaces Applications to create the AMI. The role must have permissions to copy images, describe images, and create tags, with a trust relationship allowing appstream.amazonaws.com to assume the role.
-
tag_specifications(Optional[Tags], default:None) –The tags to apply to the exported AMI. These tags help you organize and manage your EC2 AMIs.
-
ami_description(Optional[Description], default:None) –An optional description for the exported AMI. This description will be applied to the resulting EC2 AMI.
Raises:
-
ConcurrentModificationException–An API error occurred. Wait a few minutes and try again.
-
InvalidAccountStatusException–The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support.
-
InvalidRoleException–The specified role is invalid.
-
LimitExceededException–The requested limit exceeds the permitted limit for an account.
-
OperationNotPermittedException–The attempted operation is not permitted.
-
ResourceNotAvailableException–The specified resource exists and is not in use, but isn't available.
-
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
1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 | |