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
10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 | |