update_environment
¶
update_environment(
id: EnvironmentId,
*,
config_overrides: Optional[WorkSpacesThinClientClientConfig] = None,
name: Optional[EnvironmentName] = None,
desktop_arn: Optional[Arn] = None,
desktop_endpoint: Optional[DesktopEndpoint] = None,
software_set_update_schedule: Optional[SoftwareSetUpdateSchedule] = None,
maintenance_window: Optional[MaintenanceWindow] = None,
software_set_update_mode: Optional[SoftwareSetUpdateMode] = None,
desired_software_set_id: Optional[SoftwareSetIdOrEmptyString] = None,
device_creation_tags: Optional[DeviceCreationTagsMap] = None,
) -> UpdateEnvironmentResponse
Updates an environment.
Parameters:
-
id(EnvironmentId) –The ID of the environment to update.
-
name(Optional[EnvironmentName], default:None) –The name of the environment to update.
-
desktop_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Secure Browser, or AppStream 2.0.
-
desktop_endpoint(Optional[DesktopEndpoint], default:None) –The URL for the identity provider login (only for environments that use AppStream 2.0).
-
software_set_update_schedule(Optional[SoftwareSetUpdateSchedule], default:None) –An option to define if software updates should be applied within a maintenance window.
-
maintenance_window(Optional[MaintenanceWindow], default:None) –A specification for a time window to apply software updates.
-
software_set_update_mode(Optional[SoftwareSetUpdateMode], default:None) –An option to define which software updates to apply.
-
desired_software_set_id(Optional[SoftwareSetIdOrEmptyString], default:None) –The ID of the software set to apply.
-
device_creation_tags(Optional[DeviceCreationTagsMap], default:None) –A map of the key-value pairs of the tag or tags to assign to the newly created devices for this environment.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceNotFoundException–The resource specified in the request was not found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the specified constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workspaces_thin_client/_services/work_spaces_thin_client.py
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 | |