aws_sdk_computeoptimizerautomation/client/
start_automation_event.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 [`StartAutomationEvent`](crate::operation::start_automation_event::builders::StartAutomationEventFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`recommended_action_id(impl Into<String>)`](crate::operation::start_automation_event::builders::StartAutomationEventFluentBuilder::recommended_action_id) / [`set_recommended_action_id(Option<String>)`](crate::operation::start_automation_event::builders::StartAutomationEventFluentBuilder::set_recommended_action_id):<br>required: **true**<br><p>The ID of the recommended action to automate.</p><br>
7    ///   - [`client_token(impl Into<String>)`](crate::operation::start_automation_event::builders::StartAutomationEventFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::start_automation_event::builders::StartAutomationEventFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Must be 1-64 characters long and contain only alphanumeric characters, underscores, and hyphens.</p><br>
8    /// - On success, responds with [`StartAutomationEventOutput`](crate::operation::start_automation_event::StartAutomationEventOutput) with field(s):
9    ///   - [`recommended_action_id(Option<String>)`](crate::operation::start_automation_event::StartAutomationEventOutput::recommended_action_id): <p>The ID of the recommended action being automated.</p>
10    ///   - [`event_id(Option<String>)`](crate::operation::start_automation_event::StartAutomationEventOutput::event_id): <p>The ID of the automation event.</p>
11    ///   - [`event_status(Option<EventStatus>)`](crate::operation::start_automation_event::StartAutomationEventOutput::event_status): <p>The current status of the automation event.</p>
12    /// - On failure, responds with [`SdkError<StartAutomationEventError>`](crate::operation::start_automation_event::StartAutomationEventError)
13    pub fn start_automation_event(&self) -> crate::operation::start_automation_event::builders::StartAutomationEventFluentBuilder {
14        crate::operation::start_automation_event::builders::StartAutomationEventFluentBuilder::new(self.handle.clone())
15    }
16}