#[non_exhaustive]
pub struct AvailabilityZone { pub state: Option<AvailabilityZoneState>, pub opt_in_status: Option<AvailabilityZoneOptInStatus>, pub messages: Option<Vec<AvailabilityZoneMessage>>, pub region_name: Option<String>, pub zone_name: Option<String>, pub zone_id: Option<String>, pub group_name: Option<String>, pub network_border_group: Option<String>, pub zone_type: Option<String>, pub parent_zone_name: Option<String>, pub parent_zone_id: Option<String>, }
Expand description

Describes Availability Zones, Local Zones, and Wavelength Zones.

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.
§state: Option<AvailabilityZoneState>

The state of the Availability Zone, Local Zone, or Wavelength Zone. This value is always available.

§opt_in_status: Option<AvailabilityZoneOptInStatus>

For Availability Zones, this parameter always has the value of opt-in-not-required.

For Local Zones and Wavelength Zones, this parameter is the opt-in status. The possible values are opted-in, and not-opted-in.

§messages: Option<Vec<AvailabilityZoneMessage>>

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

§region_name: Option<String>

The name of the Region.

§zone_name: Option<String>

The name of the Availability Zone, Local Zone, or Wavelength Zone.

§zone_id: Option<String>

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

§group_name: Option<String>

For Availability Zones, this parameter has the same value as the Region name.

For Local Zones, the name of the associated group, for example us-west-2-lax-1.

For Wavelength Zones, the name of the associated group, for example us-east-1-wl1-bos-wlz-1.

§network_border_group: Option<String>

The name of the network border group.

§zone_type: Option<String>

The type of zone. The valid values are availability-zone, local-zone, and wavelength-zone.

§parent_zone_name: Option<String>

The name of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls.

§parent_zone_id: Option<String>

The ID of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls.

Implementations§

source§

impl AvailabilityZone

source

pub fn state(&self) -> Option<&AvailabilityZoneState>

The state of the Availability Zone, Local Zone, or Wavelength Zone. This value is always available.

source

pub fn opt_in_status(&self) -> Option<&AvailabilityZoneOptInStatus>

For Availability Zones, this parameter always has the value of opt-in-not-required.

For Local Zones and Wavelength Zones, this parameter is the opt-in status. The possible values are opted-in, and not-opted-in.

source

pub fn messages(&self) -> Option<&[AvailabilityZoneMessage]>

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

source

pub fn region_name(&self) -> Option<&str>

The name of the Region.

source

pub fn zone_name(&self) -> Option<&str>

The name of the Availability Zone, Local Zone, or Wavelength Zone.

source

pub fn zone_id(&self) -> Option<&str>

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

source

pub fn group_name(&self) -> Option<&str>

For Availability Zones, this parameter has the same value as the Region name.

For Local Zones, the name of the associated group, for example us-west-2-lax-1.

For Wavelength Zones, the name of the associated group, for example us-east-1-wl1-bos-wlz-1.

source

pub fn network_border_group(&self) -> Option<&str>

The name of the network border group.

source

pub fn zone_type(&self) -> Option<&str>

The type of zone. The valid values are availability-zone, local-zone, and wavelength-zone.

source

pub fn parent_zone_name(&self) -> Option<&str>

The name of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls.

source

pub fn parent_zone_id(&self) -> Option<&str>

The ID of the zone that handles some of the Local Zone or Wavelength Zone control plane operations, such as API calls.

source§

impl AvailabilityZone

source

pub fn builder() -> AvailabilityZoneBuilder

Creates a new builder-style object to manufacture AvailabilityZone.

Trait Implementations§

source§

impl Clone for AvailabilityZone

source§

fn clone(&self) -> AvailabilityZone

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 AvailabilityZone

source§

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

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

impl PartialEq<AvailabilityZone> for AvailabilityZone

source§

fn eq(&self, other: &AvailabilityZone) -> 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 AvailabilityZone

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere 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 Twhere 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 Twhere 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