create_export_image_task
¶
create_export_image_task(
*,
config_overrides: Optional[AppStreamClientConfig] = 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/app_stream.py
1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 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 | |