Struct aws_sdk_route53::types::TrafficPolicyInstance
source · #[non_exhaustive]pub struct TrafficPolicyInstance {
pub id: String,
pub hosted_zone_id: String,
pub name: String,
pub ttl: i64,
pub state: String,
pub message: String,
pub traffic_policy_id: String,
pub traffic_policy_version: i32,
pub traffic_policy_type: RrType,
}
Expand description
A complex type that contains settings for the new traffic policy instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: String
The ID that Amazon Route 53 assigned to the new traffic policy instance.
hosted_zone_id: String
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
name: String
The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance.
ttl: i64
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.
state: String
The value of State
is one of the following values:
- Applied
-
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Route 53 edge locations.
- Creating
-
Route 53 is creating the resource record sets. Use
GetTrafficPolicyInstance
to confirm that theCreateTrafficPolicyInstance
request completed successfully. - Failed
-
Route 53 wasn't able to create or update the resource record sets. When the value of
State
isFailed
, seeMessage
for an explanation of what caused the request to fail.
message: String
If State
is Failed
, an explanation of the reason for the failure. If State
is another value, Message
is empty.
traffic_policy_id: String
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
traffic_policy_version: i32
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
traffic_policy_type: RrType
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
Implementations§
source§impl TrafficPolicyInstance
impl TrafficPolicyInstance
sourcepub fn id(&self) -> &str
pub fn id(&self) -> &str
The ID that Amazon Route 53 assigned to the new traffic policy instance.
sourcepub fn hosted_zone_id(&self) -> &str
pub fn hosted_zone_id(&self) -> &str
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance.
sourcepub fn ttl(&self) -> i64
pub fn ttl(&self) -> i64
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.
sourcepub fn state(&self) -> &str
pub fn state(&self) -> &str
The value of State
is one of the following values:
- Applied
-
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Route 53 edge locations.
- Creating
-
Route 53 is creating the resource record sets. Use
GetTrafficPolicyInstance
to confirm that theCreateTrafficPolicyInstance
request completed successfully. - Failed
-
Route 53 wasn't able to create or update the resource record sets. When the value of
State
isFailed
, seeMessage
for an explanation of what caused the request to fail.
sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
If State
is Failed
, an explanation of the reason for the failure. If State
is another value, Message
is empty.
sourcepub fn traffic_policy_id(&self) -> &str
pub fn traffic_policy_id(&self) -> &str
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
sourcepub fn traffic_policy_version(&self) -> i32
pub fn traffic_policy_version(&self) -> i32
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
sourcepub fn traffic_policy_type(&self) -> &RrType
pub fn traffic_policy_type(&self) -> &RrType
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
source§impl TrafficPolicyInstance
impl TrafficPolicyInstance
sourcepub fn builder() -> TrafficPolicyInstanceBuilder
pub fn builder() -> TrafficPolicyInstanceBuilder
Creates a new builder-style object to manufacture TrafficPolicyInstance
.
Trait Implementations§
source§impl Clone for TrafficPolicyInstance
impl Clone for TrafficPolicyInstance
source§fn clone(&self) -> TrafficPolicyInstance
fn clone(&self) -> TrafficPolicyInstance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TrafficPolicyInstance
impl Debug for TrafficPolicyInstance
source§impl PartialEq for TrafficPolicyInstance
impl PartialEq for TrafficPolicyInstance
source§fn eq(&self, other: &TrafficPolicyInstance) -> bool
fn eq(&self, other: &TrafficPolicyInstance) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrafficPolicyInstance
Auto Trait Implementations§
impl Freeze for TrafficPolicyInstance
impl RefUnwindSafe for TrafficPolicyInstance
impl Send for TrafficPolicyInstance
impl Sync for TrafficPolicyInstance
impl Unpin for TrafficPolicyInstance
impl UnwindSafe for TrafficPolicyInstance
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