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
1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 | |