aws_sdk_route53/client/
get_health_check_last_failure_reason.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 [`GetHealthCheckLastFailureReason`](crate::operation::get_health_check_last_failure_reason::builders::GetHealthCheckLastFailureReasonFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`health_check_id(impl Into<String>)`](crate::operation::get_health_check_last_failure_reason::builders::GetHealthCheckLastFailureReasonFluentBuilder::health_check_id) / [`set_health_check_id(Option<String>)`](crate::operation::get_health_check_last_failure_reason::builders::GetHealthCheckLastFailureReasonFluentBuilder::set_health_check_id):<br>required: **true**<br><p>The ID for the health check for which you want the last failure reason. When you created the health check, <code>CreateHealthCheck</code> returned the ID in the response, in the <code>HealthCheckId</code> element.</p><note>  <p>If you want to get the last failure reason for a calculated health check, you must use the Amazon Route 53 console or the CloudWatch console. You can't use <code>GetHealthCheckLastFailureReason</code> for a calculated health check.</p> </note><br>
7    /// - On success, responds with [`GetHealthCheckLastFailureReasonOutput`](crate::operation::get_health_check_last_failure_reason::GetHealthCheckLastFailureReasonOutput) with field(s):
8    ///   - [`health_check_observations(Vec::<HealthCheckObservation>)`](crate::operation::get_health_check_last_failure_reason::GetHealthCheckLastFailureReasonOutput::health_check_observations): <p>A list that contains one <code>Observation</code> element for each Amazon Route 53 health checker that is reporting a last failure reason.</p>
9    /// - On failure, responds with [`SdkError<GetHealthCheckLastFailureReasonError>`](crate::operation::get_health_check_last_failure_reason::GetHealthCheckLastFailureReasonError)
10    pub fn get_health_check_last_failure_reason(
11        &self,
12    ) -> crate::operation::get_health_check_last_failure_reason::builders::GetHealthCheckLastFailureReasonFluentBuilder {
13        crate::operation::get_health_check_last_failure_reason::builders::GetHealthCheckLastFailureReasonFluentBuilder::new(self.handle.clone())
14    }
15}