create_imported_image
¶
create_imported_image(
*,
config_overrides: Optional[AppStreamClientConfig] = None,
name: Optional[Name] = None,
source_ami_id: Optional[PhotonAmiId] = None,
workspace_image_id: Optional[WorkspaceImageId] = None,
iam_role_arn: Optional[Arn] = None,
description: Optional[ImageImportDescription] = None,
display_name: Optional[ImageImportDisplayName] = None,
tags: Optional[Tags] = None,
runtime_validation_config: Optional[RuntimeValidationConfig] = None,
agent_software_version: Optional[AgentSoftwareVersion] = None,
app_catalog_config: Optional[AppCatalogConfig] = None,
dry_run: Optional[Boolean] = None,
) -> CreateImportedImageResult
Creates a custom WorkSpaces Applications image by importing an EC2 AMI. This allows you to use your own customized AMI to create WorkSpaces Applications images that support additional instance types beyond the standard stream.* instances.
Parameters:
-
name(Optional[Name], default:None) –A unique name for the imported image. The name must be between 1 and 100 characters and can contain letters, numbers, underscores, periods, and hyphens.
-
source_ami_id(Optional[PhotonAmiId], default:None) –The ID of the EC2 AMI to import.
-
workspace_image_id(Optional[WorkspaceImageId], default:None) –The ID of the Workspaces Image to import.
-
iam_role_arn(Optional[Arn], default:None) –The ARN of the IAM role that allows WorkSpaces Applications to access your AMI. The role must have permissions to modify image attributes and describe images, with a trust relationship allowing appstream.amazonaws.com to assume the role.
-
description(Optional[ImageImportDescription], default:None) –An optional description for the imported image. The description must match approved regex patterns and can be up to 256 characters.
-
display_name(Optional[ImageImportDisplayName], default:None) –An optional display name for the imported image. The display name must match approved regex patterns and can be up to 100 characters.
-
tags(Optional[Tags], default:None) –The tags to apply to the imported image. Tags help you organize and manage your WorkSpaces Applications resources.
-
runtime_validation_config(Optional[RuntimeValidationConfig], default:None) –Configuration for runtime validation of the imported image. When specified, WorkSpaces Applications provisions an instance to test streaming functionality, which helps ensure the image is suitable for use.
-
agent_software_version(Optional[AgentSoftwareVersion], default:None) –The version of the WorkSpaces Applications agent to use for the imported image. Choose CURRENT_LATEST to use the agent version available at the time of import, or ALWAYS_LATEST to automatically update to the latest agent version when new versions are released.
-
app_catalog_config(Optional[AppCatalogConfig], default:None) –Configuration for the application catalog of the imported image. This allows you to specify applications available for streaming, including their paths, icons, and launch parameters. This field contains sensitive data.
-
dry_run(Optional[Boolean], default:None) –When set to true, performs validation checks without actually creating the imported image. Use this to verify your configuration before executing the actual import operation.
Raises:
-
DryRunOperationException–The exception that is thrown when a dry run operation is requested. This indicates that the validation checks have been performed successfully, but no actual resources were created or modified.
-
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.
-
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
1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 | |