start_change_request_execution
async
¶
start_change_request_execution(
document_name: DocumentARN,
runbooks: Runbooks,
*,
config_overrides: Optional[AsyncSSMClientConfig] = 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/async_ssm.py
10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 | |