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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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 the CreateTrafficPolicyInstance request completed successfully.

Failed

Route 53 wasn't able to create or update the resource record sets. When the value of State is Failed, see Message 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

source

pub fn id(&self) -> &str

The ID that Amazon Route 53 assigned to the new traffic policy instance.

source

pub fn hosted_zone_id(&self) -> &str

The ID of the hosted zone that Amazon Route 53 created resource record sets in.

source

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.

source

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.

source

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 the CreateTrafficPolicyInstance request completed successfully.

Failed

Route 53 wasn't able to create or update the resource record sets. When the value of State is Failed, see Message for an explanation of what caused the request to fail.

source

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.

source

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.

source

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.

source

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

source

pub fn builder() -> TrafficPolicyInstanceBuilder

Creates a new builder-style object to manufacture TrafficPolicyInstance.

Trait Implementations§

source§

impl Clone for TrafficPolicyInstance

source§

fn clone(&self) -> TrafficPolicyInstance

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TrafficPolicyInstance

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for TrafficPolicyInstance

source§

fn eq(&self, other: &TrafficPolicyInstance) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for TrafficPolicyInstance

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more