create_image_builder
async
¶
create_image_builder(
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
name: Optional[Name] = None,
image_name: Optional[String] = None,
image_arn: Optional[Arn] = None,
instance_type: Optional[String] = None,
description: Optional[Description] = None,
display_name: Optional[DisplayName] = None,
vpc_config: Optional[VpcConfig] = None,
iam_role_arn: Optional[Arn] = None,
enable_default_internet_access: Optional[BooleanObject] = None,
domain_join_info: Optional[DomainJoinInfo] = None,
appstream_agent_version: Optional[AppstreamAgentVersion] = None,
tags: Optional[Tags] = None,
access_endpoints: Optional[AccessEndpointList] = None,
root_volume_config: Optional[VolumeConfig] = None,
softwares_to_install: Optional[StringList] = None,
softwares_to_uninstall: Optional[StringList] = None,
disable_imdsv1: Optional[BooleanObject] = None,
) -> CreateImageBuilderResult
Creates an image builder. An image builder is a virtual machine that is used to create an image.
The initial state of the builder is PENDING. When it is ready, the state is RUNNING.
Parameters:
-
name(Optional[Name], default:None) –A unique name for the image builder.
-
image_name(Optional[String], default:None) –The name of the image used to create the image builder.
-
image_arn(Optional[Arn], default:None) –The ARN of the public, private, or shared image to use.
-
instance_type(Optional[String], default:None) –The instance type to use when launching the image builder. The following instance types are available:
-
stream.standard.small
-
stream.standard.medium
-
stream.standard.large
-
stream.compute.large
-
stream.compute.xlarge
-
stream.compute.2xlarge
-
stream.compute.4xlarge
-
stream.compute.8xlarge
-
stream.memory.large
-
stream.memory.xlarge
-
stream.memory.2xlarge
-
stream.memory.4xlarge
-
stream.memory.8xlarge
-
stream.memory.z1d.large
-
stream.memory.z1d.xlarge
-
stream.memory.z1d.2xlarge
-
stream.memory.z1d.3xlarge
-
stream.memory.z1d.6xlarge
-
stream.memory.z1d.12xlarge
-
stream.graphics.g4dn.xlarge
-
stream.graphics.g4dn.2xlarge
-
stream.graphics.g4dn.4xlarge
-
stream.graphics.g4dn.8xlarge
-
stream.graphics.g4dn.12xlarge
-
stream.graphics.g4dn.16xlarge
-
stream.graphics.g5.xlarge
-
stream.graphics.g5.2xlarge
-
stream.graphics.g5.4xlarge
-
stream.graphics.g5.8xlarge
-
stream.graphics.g5.16xlarge
-
stream.graphics.g5.12xlarge
-
stream.graphics.g5.24xlarge
-
stream.graphics.g6.xlarge
-
stream.graphics.g6.2xlarge
-
stream.graphics.g6.4xlarge
-
stream.graphics.g6.8xlarge
-
stream.graphics.g6.16xlarge
-
stream.graphics.g6.12xlarge
-
stream.graphics.g6.24xlarge
-
stream.graphics.gr6.4xlarge
-
stream.graphics.gr6.8xlarge
-
stream.graphics.g6f.large
-
stream.graphics.g6f.xlarge
-
stream.graphics.g6f.2xlarge
-
stream.graphics.g6f.4xlarge
-
stream.graphics.gr6f.4xlarge
-
-
description(Optional[Description], default:None) –The description to display.
-
display_name(Optional[DisplayName], default:None) –The image builder name to display.
-
vpc_config(Optional[VpcConfig], default:None) –The VPC configuration for the image builder. You can specify only one subnet.
-
iam_role_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) of the IAM role to apply to the image builder. To assume a role, the image builder calls the AWS Security Token Service (STS)
AssumeRoleAPI operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. WorkSpaces Applications retrieves the temporary credentials and creates the appstream_machine_role credential profile on the instance.For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on WorkSpaces Applications Streaming Instances in the Amazon WorkSpaces Applications Administration Guide.
-
enable_default_internet_access(Optional[BooleanObject], default:None) –Enables or disables default internet access for the image builder.
-
domain_join_info(Optional[DomainJoinInfo], default:None) –The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.
-
appstream_agent_version(Optional[AppstreamAgentVersion], default:None) –The version of the WorkSpaces Applications agent to use for this image builder. To use the latest version of the WorkSpaces Applications agent, specify [LATEST].
-
tags(Optional[Tags], default:None) –The tags to associate with the image builder. 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.
-
access_endpoints(Optional[AccessEndpointList], default:None) –The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the image builder only through the specified endpoints.
-
root_volume_config(Optional[VolumeConfig], default:None) –The configuration for the root volume of the image builder. Use this to customize storage capacity from 200 GB up to 500 GB based on your application installation requirements.
-
softwares_to_install(Optional[StringList], default:None) –The list of license included applications to install on the image builder during creation.
Possible values include the following:
-
Microsoft_Office_2021_LTSC_Professional_Plus_32Bit
-
Microsoft_Office_2021_LTSC_Professional_Plus_64Bit
-
Microsoft_Office_2024_LTSC_Professional_Plus_32Bit
-
Microsoft_Office_2024_LTSC_Professional_Plus_64Bit
-
Microsoft_Visio_2021_LTSC_Professional_32Bit
-
Microsoft_Visio_2021_LTSC_Professional_64Bit
-
Microsoft_Visio_2024_LTSC_Professional_32Bit
-
Microsoft_Visio_2024_LTSC_Professional_64Bit
-
Microsoft_Project_2021_Professional_32Bit
-
Microsoft_Project_2021_Professional_64Bit
-
Microsoft_Project_2024_Professional_32Bit
-
Microsoft_Project_2024_Professional_64Bit
-
Microsoft_Office_2021_LTSC_Standard_32Bit
-
Microsoft_Office_2021_LTSC_Standard_64Bit
-
Microsoft_Office_2024_LTSC_Standard_32Bit
-
Microsoft_Office_2024_LTSC_Standard_64Bit
-
Microsoft_Visio_2021_LTSC_Standard_32Bit
-
Microsoft_Visio_2021_LTSC_Standard_64Bit
-
Microsoft_Visio_2024_LTSC_Standard_32Bit
-
Microsoft_Visio_2024_LTSC_Standard_64Bit
-
Microsoft_Project_2021_Standard_32Bit
-
Microsoft_Project_2021_Standard_64Bit
-
Microsoft_Project_2024_Standard_32Bit
-
Microsoft_Project_2024_Standard_64Bit
-
-
softwares_to_uninstall(Optional[StringList], default:None) –The list of license included applications to uninstall from the image builder during creation.
Possible values include the following:
-
Microsoft_Office_2021_LTSC_Professional_Plus_32Bit
-
Microsoft_Office_2021_LTSC_Professional_Plus_64Bit
-
Microsoft_Office_2024_LTSC_Professional_Plus_32Bit
-
Microsoft_Office_2024_LTSC_Professional_Plus_64Bit
-
Microsoft_Visio_2021_LTSC_Professional_32Bit
-
Microsoft_Visio_2021_LTSC_Professional_64Bit
-
Microsoft_Visio_2024_LTSC_Professional_32Bit
-
Microsoft_Visio_2024_LTSC_Professional_64Bit
-
Microsoft_Project_2021_Professional_32Bit
-
Microsoft_Project_2021_Professional_64Bit
-
Microsoft_Project_2024_Professional_32Bit
-
Microsoft_Project_2024_Professional_64Bit
-
Microsoft_Office_2021_LTSC_Standard_32Bit
-
Microsoft_Office_2021_LTSC_Standard_64Bit
-
Microsoft_Office_2024_LTSC_Standard_32Bit
-
Microsoft_Office_2024_LTSC_Standard_64Bit
-
Microsoft_Visio_2021_LTSC_Standard_32Bit
-
Microsoft_Visio_2021_LTSC_Standard_64Bit
-
Microsoft_Visio_2024_LTSC_Standard_32Bit
-
Microsoft_Visio_2024_LTSC_Standard_64Bit
-
Microsoft_Project_2021_Standard_32Bit
-
Microsoft_Project_2021_Standard_64Bit
-
Microsoft_Project_2024_Standard_32Bit
-
Microsoft_Project_2024_Standard_64Bit
-
-
disable_imdsv1(Optional[BooleanObject], default:None) –Set to true to disable Instance Metadata Service Version 1 (IMDSv1) and enforce IMDSv2. Set to false to enable both IMDSv1 and IMDSv2.
Before disabling IMDSv1, ensure your WorkSpaces Applications images are running the agent version or managed image update released on or after January 16, 2024 to support IMDSv2 enforcement.
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.
-
InvalidParameterCombinationException–Indicates an incorrect combination of parameters, or a missing parameter.
-
InvalidRoleException–The specified role is invalid.
-
LimitExceededException–The requested limit exceeds the permitted limit for an account.
-
OperationNotPermittedException–The attempted operation is not permitted.
-
RequestLimitExceededException–WorkSpaces Applications can’t process the request right now because the Describe calls from your AWS account are being throttled by Amazon EC2. Try again later.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
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
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 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 | |