aws_sdk_ssm/client/start_change_request_execution.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`StartChangeRequestExecution`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`scheduled_time(DateTime)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::scheduled_time) / [`set_scheduled_time(Option<DateTime>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_scheduled_time):<br>required: **false**<br><p>The date and time specified in the change request to run the Automation runbooks.</p><note> <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p> </note><br>
7 /// - [`document_name(impl Into<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::document_name) / [`set_document_name(Option<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_document_name):<br>required: **true**<br><p>The name of the change template document to run during the runbook workflow.</p><br>
8 /// - [`document_version(impl Into<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::document_version) / [`set_document_version(Option<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_document_version):<br>required: **false**<br><p>The version of the change template document to run during the runbook workflow.</p><br>
9 /// - [`parameters(impl Into<String>, Vec::<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::parameters) / [`set_parameters(Option<HashMap::<String, Vec::<String>>>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_parameters):<br>required: **false**<br><p>A key-value map of parameters that match the declared parameters in the change template document.</p><br>
10 /// - [`change_request_name(impl Into<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::change_request_name) / [`set_change_request_name(Option<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_change_request_name):<br>required: **false**<br><p>The name of the change request associated with the runbook workflow to be run.</p><br>
11 /// - [`client_token(impl Into<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_client_token):<br>required: **false**<br><p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p><br>
12 /// - [`auto_approve(bool)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::auto_approve) / [`set_auto_approve(Option<bool>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_auto_approve):<br>required: **false**<br><p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p> <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note> <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, 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 again <code>OPEN</code>.</p> </note><br>
13 /// - [`runbooks(Runbook)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::runbooks) / [`set_runbooks(Option<Vec::<Runbook>>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_runbooks):<br>required: **true**<br><p>Information about the Automation runbooks that are run during the runbook workflow.</p><note> <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p> </note><br>
14 /// - [`tags(Tag)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_tags):<br>required: **false**<br><p>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:</p> <ul> <li> <p><code>Key=Environment,Value=Production</code></p></li> <li> <p><code>Key=Region,Value=us-east-2</code></p></li> </ul><note> <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p> </note><br>
15 /// - [`scheduled_end_time(DateTime)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::scheduled_end_time) / [`set_scheduled_end_time(Option<DateTime>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_scheduled_end_time):<br>required: **false**<br><p>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.</p><br>
16 /// - [`change_details(impl Into<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::change_details) / [`set_change_details(Option<String>)`](crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::set_change_details):<br>required: **false**<br><p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p><br>
17 /// - On success, responds with [`StartChangeRequestExecutionOutput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput) with field(s):
18 /// - [`automation_execution_id(Option<String>)`](crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput::automation_execution_id): <p>The unique ID of a runbook workflow operation. (A runbook workflow is a type of Automation operation.)</p>
19 /// - On failure, responds with [`SdkError<StartChangeRequestExecutionError>`](crate::operation::start_change_request_execution::StartChangeRequestExecutionError)
20 pub fn start_change_request_execution(
21 &self,
22 ) -> crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder {
23 crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionFluentBuilder::new(self.handle.clone())
24 }
25}