aws_sdk_computeoptimizerautomation/client/
rollback_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 [`RollbackAutomationEvent`](crate::operation::rollback_automation_event::builders::RollbackAutomationEventFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`event_id(impl Into<String>)`](crate::operation::rollback_automation_event::builders::RollbackAutomationEventFluentBuilder::event_id) / [`set_event_id(Option<String>)`](crate::operation::rollback_automation_event::builders::RollbackAutomationEventFluentBuilder::set_event_id):<br>required: **true**<br><p>The ID of the automation event to roll back.</p><br>
7    ///   - [`client_token(impl Into<String>)`](crate::operation::rollback_automation_event::builders::RollbackAutomationEventFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::rollback_automation_event::builders::RollbackAutomationEventFluentBuilder::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 [`RollbackAutomationEventOutput`](crate::operation::rollback_automation_event::RollbackAutomationEventOutput) with field(s):
9    ///   - [`event_id(Option<String>)`](crate::operation::rollback_automation_event::RollbackAutomationEventOutput::event_id): <p>The ID of the automation event being rolled back.</p>
10    ///   - [`event_status(Option<EventStatus>)`](crate::operation::rollback_automation_event::RollbackAutomationEventOutput::event_status): <p>The current status of the rollback operation.</p>
11    /// - On failure, responds with [`SdkError<RollbackAutomationEventError>`](crate::operation::rollback_automation_event::RollbackAutomationEventError)
12    pub fn rollback_automation_event(&self) -> crate::operation::rollback_automation_event::builders::RollbackAutomationEventFluentBuilder {
13        crate::operation::rollback_automation_event::builders::RollbackAutomationEventFluentBuilder::new(self.handle.clone())
14    }
15}