aws_sdk_computeoptimizerautomation/client/
get_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 [`GetAutomationEvent`](crate::operation::get_automation_event::builders::GetAutomationEventFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`event_id(impl Into<String>)`](crate::operation::get_automation_event::builders::GetAutomationEventFluentBuilder::event_id) / [`set_event_id(Option<String>)`](crate::operation::get_automation_event::builders::GetAutomationEventFluentBuilder::set_event_id):<br>required: **true**<br><p>The ID of the automation event to retrieve.</p><br>
7    /// - On success, responds with [`GetAutomationEventOutput`](crate::operation::get_automation_event::GetAutomationEventOutput) with field(s):
8    ///   - [`event_id(Option<String>)`](crate::operation::get_automation_event::GetAutomationEventOutput::event_id): <p>The ID of the automation event to retrieve.</p>
9    ///   - [`event_description(Option<String>)`](crate::operation::get_automation_event::GetAutomationEventOutput::event_description): <p>A description of the automation event.</p>
10    ///   - [`event_type(Option<EventType>)`](crate::operation::get_automation_event::GetAutomationEventOutput::event_type): <p>The type of automation event.</p>
11    ///   - [`event_status(Option<EventStatus>)`](crate::operation::get_automation_event::GetAutomationEventOutput::event_status): <p>The current status of the automation event.</p>
12    ///   - [`event_status_reason(Option<String>)`](crate::operation::get_automation_event::GetAutomationEventOutput::event_status_reason): <p>The reason for the current event status.</p>
13    ///   - [`resource_arn(Option<String>)`](crate::operation::get_automation_event::GetAutomationEventOutput::resource_arn): <p>The Amazon Resource Name (ARN) of the resource affected by the automation event.</p>
14    ///   - [`resource_id(Option<String>)`](crate::operation::get_automation_event::GetAutomationEventOutput::resource_id): <p>The ID of the resource affected by the automation event.</p>
15    ///   - [`recommended_action_id(Option<String>)`](crate::operation::get_automation_event::GetAutomationEventOutput::recommended_action_id): <p>The ID of the recommended action associated with this automation event.</p>
16    ///   - [`account_id(Option<String>)`](crate::operation::get_automation_event::GetAutomationEventOutput::account_id): <p>The Amazon Web Services account ID associated with the automation event.</p>
17    ///   - [`region(Option<String>)`](crate::operation::get_automation_event::GetAutomationEventOutput::region): <p>The Amazon Web Services Region where the automation event occurred.</p>
18    ///   - [`rule_id(Option<String>)`](crate::operation::get_automation_event::GetAutomationEventOutput::rule_id): <p>The ID of the automation rule that triggered this event.</p>
19    ///   - [`resource_type(Option<ResourceType>)`](crate::operation::get_automation_event::GetAutomationEventOutput::resource_type): <p>The type of resource affected by the automation event.</p>
20    ///   - [`created_timestamp(Option<DateTime>)`](crate::operation::get_automation_event::GetAutomationEventOutput::created_timestamp): <p>The timestamp when the automation event was created.</p>
21    ///   - [`completed_timestamp(Option<DateTime>)`](crate::operation::get_automation_event::GetAutomationEventOutput::completed_timestamp): <p>The timestamp when the automation event completed.</p>
22    ///   - [`estimated_monthly_savings(Option<EstimatedMonthlySavings>)`](crate::operation::get_automation_event::GetAutomationEventOutput::estimated_monthly_savings): <p>Contains information about estimated monthly cost savings.</p>
23    /// - On failure, responds with [`SdkError<GetAutomationEventError>`](crate::operation::get_automation_event::GetAutomationEventError)
24    pub fn get_automation_event(&self) -> crate::operation::get_automation_event::builders::GetAutomationEventFluentBuilder {
25        crate::operation::get_automation_event::builders::GetAutomationEventFluentBuilder::new(self.handle.clone())
26    }
27}