Struct aws_sdk_route53::operation::update_traffic_policy_instance::builders::UpdateTrafficPolicyInstanceFluentBuilder
source · pub struct UpdateTrafficPolicyInstanceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateTrafficPolicyInstance
.
After you submit a UpdateTrafficPolicyInstance
request, there's a brief delay while Route 53 creates the resource record sets that are specified in the traffic policy definition. Use GetTrafficPolicyInstance
with the id
of updated traffic policy instance confirm that the UpdateTrafficPolicyInstance
request completed successfully. For more information, see the State
response element.
Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.
When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Route 53 performs the following operations:
-
Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how significant the differences are between the existing resource record sets and the new resource record sets.
-
When all of the new resource record sets have been created, Route 53 starts to respond to DNS queries for the root resource record set name (such as example.com) by using the new resource record sets.
-
Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.
Implementations§
source§impl UpdateTrafficPolicyInstanceFluentBuilder
impl UpdateTrafficPolicyInstanceFluentBuilder
sourcepub fn as_input(&self) -> &UpdateTrafficPolicyInstanceInputBuilder
pub fn as_input(&self) -> &UpdateTrafficPolicyInstanceInputBuilder
Access the UpdateTrafficPolicyInstance as a reference.
sourcepub async fn send(
self
) -> Result<UpdateTrafficPolicyInstanceOutput, SdkError<UpdateTrafficPolicyInstanceError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateTrafficPolicyInstanceOutput, SdkError<UpdateTrafficPolicyInstanceError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateTrafficPolicyInstanceOutput, UpdateTrafficPolicyInstanceError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateTrafficPolicyInstanceOutput, UpdateTrafficPolicyInstanceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the traffic policy instance that you want to update.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID of the traffic policy instance that you want to update.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The ID of the traffic policy instance that you want to update.
sourcepub fn ttl(self, input: i64) -> Self
pub fn ttl(self, input: i64) -> Self
The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.
sourcepub fn set_ttl(self, input: Option<i64>) -> Self
pub fn set_ttl(self, input: Option<i64>) -> Self
The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.
sourcepub fn get_ttl(&self) -> &Option<i64>
pub fn get_ttl(&self) -> &Option<i64>
The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.
sourcepub fn traffic_policy_id(self, input: impl Into<String>) -> Self
pub fn traffic_policy_id(self, input: impl Into<String>) -> Self
The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
sourcepub fn set_traffic_policy_id(self, input: Option<String>) -> Self
pub fn set_traffic_policy_id(self, input: Option<String>) -> Self
The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
sourcepub fn get_traffic_policy_id(&self) -> &Option<String>
pub fn get_traffic_policy_id(&self) -> &Option<String>
The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
sourcepub fn traffic_policy_version(self, input: i32) -> Self
pub fn traffic_policy_version(self, input: i32) -> Self
The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
sourcepub fn set_traffic_policy_version(self, input: Option<i32>) -> Self
pub fn set_traffic_policy_version(self, input: Option<i32>) -> Self
The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
sourcepub fn get_traffic_policy_version(&self) -> &Option<i32>
pub fn get_traffic_policy_version(&self) -> &Option<i32>
The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.
Trait Implementations§
source§impl Clone for UpdateTrafficPolicyInstanceFluentBuilder
impl Clone for UpdateTrafficPolicyInstanceFluentBuilder
source§fn clone(&self) -> UpdateTrafficPolicyInstanceFluentBuilder
fn clone(&self) -> UpdateTrafficPolicyInstanceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateTrafficPolicyInstanceFluentBuilder
impl !RefUnwindSafe for UpdateTrafficPolicyInstanceFluentBuilder
impl Send for UpdateTrafficPolicyInstanceFluentBuilder
impl Sync for UpdateTrafficPolicyInstanceFluentBuilder
impl Unpin for UpdateTrafficPolicyInstanceFluentBuilder
impl !UnwindSafe for UpdateTrafficPolicyInstanceFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more