aws_sdk_route53/client/
create_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 [`CreateHealthCheck`](crate::operation::create_health_check::builders::CreateHealthCheckFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`caller_reference(impl Into<String>)`](crate::operation::create_health_check::builders::CreateHealthCheckFluentBuilder::caller_reference) / [`set_caller_reference(Option<String>)`](crate::operation::create_health_check::builders::CreateHealthCheckFluentBuilder::set_caller_reference):<br>required: **true**<br><p>A unique string that identifies the request and that allows you to retry a failed <code>CreateHealthCheck</code> request without the risk of creating two identical health checks:</p> <ul>  <li>   <p>If you send a <code>CreateHealthCheck</code> request with the same <code>CallerReference</code> and settings as a previous request, and if the health check doesn't exist, Amazon Route 53 creates the health check. If the health check does exist, Route 53 returns the health check configuration in the response.</p></li>  <li>   <p>If you send a <code>CreateHealthCheck</code> request with the same <code>CallerReference</code> as a deleted health check, regardless of the settings, Route 53 returns a <code>HealthCheckAlreadyExists</code> error.</p></li>  <li>   <p>If you send a <code>CreateHealthCheck</code> request with the same <code>CallerReference</code> as an existing health check but with different settings, Route 53 returns a <code>HealthCheckAlreadyExists</code> error.</p></li>  <li>   <p>If you send a <code>CreateHealthCheck</code> request with a unique <code>CallerReference</code> but settings identical to an existing health check, Route 53 creates the health check.</p></li> </ul> <p>Route 53 does not store the <code>CallerReference</code> for a deleted health check indefinitely. The <code>CallerReference</code> for a deleted health check will be deleted after a number of days.</p><br>
7    ///   - [`health_check_config(HealthCheckConfig)`](crate::operation::create_health_check::builders::CreateHealthCheckFluentBuilder::health_check_config) / [`set_health_check_config(Option<HealthCheckConfig>)`](crate::operation::create_health_check::builders::CreateHealthCheckFluentBuilder::set_health_check_config):<br>required: **true**<br><p>A complex type that contains settings for a new health check.</p><br>
8    /// - On success, responds with [`CreateHealthCheckOutput`](crate::operation::create_health_check::CreateHealthCheckOutput) with field(s):
9    ///   - [`health_check(Option<HealthCheck>)`](crate::operation::create_health_check::CreateHealthCheckOutput::health_check): <p>A complex type that contains identifying information about the health check.</p>
10    ///   - [`location(String)`](crate::operation::create_health_check::CreateHealthCheckOutput::location): <p>The unique URL representing the new health check.</p>
11    /// - On failure, responds with [`SdkError<CreateHealthCheckError>`](crate::operation::create_health_check::CreateHealthCheckError)
12    pub fn create_health_check(&self) -> crate::operation::create_health_check::builders::CreateHealthCheckFluentBuilder {
13        crate::operation::create_health_check::builders::CreateHealthCheckFluentBuilder::new(self.handle.clone())
14    }
15}