start_change_request_execution
¶
start_change_request_execution(
document_name: DocumentARN,
runbooks: Runbooks,
*,
config_overrides: Optional[SSMClientConfig] = None,
scheduled_time: Optional[DateTime] = None,
document_version: Optional[DocumentVersion] = None,
parameters: Optional[AutomationParameterMap] = None,
change_request_name: Optional[ChangeRequestName] = None,
client_token: Optional[IdempotencyToken] = None,
auto_approve: Optional[Boolean] = None,
tags: Optional[TagList] = None,
scheduled_end_time: Optional[DateTime] = None,
change_details: Optional[ChangeDetailsValue] = None,
) -> StartChangeRequestExecutionResult
Amazon Web Services Systems Manager Change Manager is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see Amazon Web Services Systems Manager Change Manager availability change.
Creates a change request for Change Manager. The Automation runbooks specified in the change request run only after all required approvals for the change request have been received.
Parameters:
-
scheduled_time(Optional[DateTime], default:None) –The date and time specified in the change request to run the Automation runbooks.
The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.
-
document_name(DocumentARN) –The name of the change template document to run during the runbook workflow.
-
document_version(Optional[DocumentVersion], default:None) –The version of the change template document to run during the runbook workflow.
-
parameters(Optional[AutomationParameterMap], default:None) –A key-value map of parameters that match the declared parameters in the change template document.
-
change_request_name(Optional[ChangeRequestName], default:None) –The name of the change request associated with the runbook workflow to be run.
-
client_token(Optional[IdempotencyToken], default:None) –The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.
-
auto_approve(Optional[Boolean], default:None) –Indicates whether the change request can be approved automatically without the need for manual approvals.
If
AutoApprovableis enabled in a change template, then settingAutoApprovetotrueinStartChangeRequestExecutioncreates a change request that bypasses approver review.Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is
CLOSED, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is againOPEN. -
runbooks(Runbooks) –Information about the Automation runbooks that are run during the runbook workflow.
The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.
-
tags(Optional[TagList], default:None) –Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:
-
Key=Environment,Value=Production -
Key=Region,Value=us-east-2
The
Array Membersmaximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling theStartChangeRequestExecutionaction, you can specify a maximum of 5 tags. You can, however, use the AddTagsToResource action to add up to a total of 50 tags to an existing change request configuration. -
-
scheduled_end_time(Optional[DateTime], default:None) –The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.
-
change_details(Optional[ChangeDetailsValue], default:None) –User-provided details about the change. If no details are provided, content specified in the Template information section of the associated change template is added.
Raises:
-
AutomationDefinitionNotApprovedException–Indicates that the Change Manager change template used in the change request was rejected or is still in a pending state.
-
AutomationDefinitionNotFoundException–An Automation runbook with the specified name couldn't be found.
-
AutomationDefinitionVersionNotFoundException–An Automation runbook with the specified name and version couldn't be found.
-
AutomationExecutionLimitExceededException–The number of simultaneously running Automation executions exceeded the allowable limit.
-
IdempotentParameterMismatch–Error returned when an idempotent operation is retried and the parameters don't match the original call to the API with the same idempotency token.
-
InternalServerError–An error occurred on the server side.
-
InvalidAutomationExecutionParametersException–The supplied parameters for invoking the specified Automation runbook are incorrect. For example, they may not match the set of parameters permitted for the specified Automation document.
-
NoLongerSupportedException–The requested operation is no longer supported by Systems Manager.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 | |