create_imported_image
async
¶
create_imported_image(
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = 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/async_app_stream.py
2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 | |