update_environment
async
¶
update_environment(
environment_id: Identifier,
*,
config_overrides: Optional[Asyncm2ClientConfig] = None,
desired_capacity: Optional[CapacityValue] = None,
instance_type: Optional[String20] = None,
engine_version: Optional[EngineVersion] = None,
preferred_maintenance_window: Optional[str] = None,
apply_during_maintenance_window: Optional[Boolean] = None,
force_update: Optional[Boolean] = None,
) -> UpdateEnvironmentResponse
Updates the configuration details for a specific runtime environment.
Parameters:
-
environment_id(Identifier) –The unique identifier of the runtime environment that you want to update.
-
desired_capacity(Optional[CapacityValue], default:None) –The desired capacity for the runtime environment to update. The minimum possible value is 0 and the maximum is 100.
-
instance_type(Optional[String20], default:None) –The instance type for the runtime environment to update.
-
engine_version(Optional[EngineVersion], default:None) –The version of the runtime engine for the runtime environment.
-
preferred_maintenance_window(Optional[str], default:None) –Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format
ddd:hh24:mi-ddd:hh24:miand must be less than 24 hours. The following two examples are valid maintenance windows:sun:23:45-mon:00:15orsat:01:00-sat:03:00.If you do not provide a value, a random system-generated value will be assigned.
-
apply_during_maintenance_window(Optional[Boolean], default:None) –Indicates whether to update the runtime environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the
engineVersionparameter only ifapplyDuringMaintenanceWindowis true. If any parameter other thanengineVersionis provided inUpdateEnvironmentRequest, it will fail ifapplyDuringMaintenanceWindowis set to true. -
force_update(Optional[Boolean], default:None) –Forces the updates on the environment. This option is needed if the applications in the environment are not stopped or if there are ongoing application-related activities in the environment.
If you use this option, be aware that it could lead to data corruption in the applications, and that you might need to perform repair and recovery procedures for the applications.
This option is not needed if the attribute being updated is
preferredMaintenanceWindow.
Raises:
-
AccessDeniedException–The account or role doesn't have the right permissions to make the request.
-
ConflictException–The parameters provided in the request conflict with existing resources.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit.
-
ThrottlingException–The number of requests made exceeds the limit.
-
ValidationException–One or more parameters provided in the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_m2/_services/async_m2.py
2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 | |