aws_sdk_route53/client/
get_health_check.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 [`GetHealthCheck`](crate::operation::get_health_check::builders::GetHealthCheckFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`health_check_id(impl Into<String>)`](crate::operation::get_health_check::builders::GetHealthCheckFluentBuilder::health_check_id) / [`set_health_check_id(Option<String>)`](crate::operation::get_health_check::builders::GetHealthCheckFluentBuilder::set_health_check_id):<br>required: **true**<br><p>The identifier that Amazon Route 53 assigned to the health check when you created it. When you add or update a resource record set, you use this value to specify which health check to use. The value can be up to 64 characters long.</p><br>
7    /// - On success, responds with [`GetHealthCheckOutput`](crate::operation::get_health_check::GetHealthCheckOutput) with field(s):
8    ///   - [`health_check(Option<HealthCheck>)`](crate::operation::get_health_check::GetHealthCheckOutput::health_check): <p>A complex type that contains information about one health check that is associated with the current Amazon Web Services account.</p>
9    /// - On failure, responds with [`SdkError<GetHealthCheckError>`](crate::operation::get_health_check::GetHealthCheckError)
10    pub fn get_health_check(&self) -> crate::operation::get_health_check::builders::GetHealthCheckFluentBuilder {
11        crate::operation::get_health_check::builders::GetHealthCheckFluentBuilder::new(self.handle.clone())
12    }
13}