create_workspace_bundle
¶
create_workspace_bundle(
bundle_name: WorkspaceBundleName,
bundle_description: WorkspaceBundleDescription,
image_id: WorkspaceImageId,
compute_type: ComputeType,
user_storage: UserStorage,
*,
config_overrides: Optional[WorkSpacesClientConfig] = None,
root_storage: Optional[RootStorage] = None,
tags: Optional[TagList] = None,
) -> CreateWorkspaceBundleResult
Creates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle.
Parameters:
-
bundle_name(WorkspaceBundleName) –The name of the bundle.
-
bundle_description(WorkspaceBundleDescription) –The description of the bundle.
-
image_id(WorkspaceImageId) –The identifier of the image that is used to create the bundle.
-
tags(Optional[TagList], default:None) –The tags associated with the bundle.
To add tags at the same time when you're creating the bundle, you must create an IAM policy that grants your IAM user permissions to use
workspaces:CreateTags.
Raises:
-
AccessDeniedException–The user is not authorized to access a resource.
-
InvalidParameterValuesException–One or more parameter values are not valid.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceLimitExceededException–Your resource limits have been exceeded.
-
ResourceNotFoundException–The resource could not be found.
-
ResourceUnavailableException–The specified resource is not available.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces/_services/work_spaces.py
1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 | |