Struct aws_sdk_directconnect::types::DirectConnectGateway
source · #[non_exhaustive]pub struct DirectConnectGateway {
pub direct_connect_gateway_id: Option<String>,
pub direct_connect_gateway_name: Option<String>,
pub amazon_side_asn: Option<i64>,
pub owner_account: Option<String>,
pub direct_connect_gateway_state: Option<DirectConnectGatewayState>,
pub state_change_error: Option<String>,
}Expand description
Information about a Direct Connect gateway, which enables you to connect virtual interfaces and virtual private gateway or transit gateways.
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.direct_connect_gateway_id: Option<String>The ID of the Direct Connect gateway.
direct_connect_gateway_name: Option<String>The name of the Direct Connect gateway.
amazon_side_asn: Option<i64>The autonomous system number (ASN) for the Amazon side of the connection.
owner_account: Option<String>The ID of the Amazon Web Services account that owns the Direct Connect gateway.
direct_connect_gateway_state: Option<DirectConnectGatewayState>The state of the Direct Connect gateway. The following are the possible values:
-
pending: The initial state after callingCreateDirectConnectGateway. -
available: The Direct Connect gateway is ready for use. -
deleting: The initial state after callingDeleteDirectConnectGateway. -
deleted: The Direct Connect gateway is deleted and cannot pass traffic.
state_change_error: Option<String>The error message if the state of an object failed to advance.
Implementations§
source§impl DirectConnectGateway
impl DirectConnectGateway
sourcepub fn direct_connect_gateway_id(&self) -> Option<&str>
pub fn direct_connect_gateway_id(&self) -> Option<&str>
The ID of the Direct Connect gateway.
sourcepub fn direct_connect_gateway_name(&self) -> Option<&str>
pub fn direct_connect_gateway_name(&self) -> Option<&str>
The name of the Direct Connect gateway.
sourcepub fn amazon_side_asn(&self) -> Option<i64>
pub fn amazon_side_asn(&self) -> Option<i64>
The autonomous system number (ASN) for the Amazon side of the connection.
sourcepub fn owner_account(&self) -> Option<&str>
pub fn owner_account(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the Direct Connect gateway.
sourcepub fn direct_connect_gateway_state(&self) -> Option<&DirectConnectGatewayState>
pub fn direct_connect_gateway_state(&self) -> Option<&DirectConnectGatewayState>
The state of the Direct Connect gateway. The following are the possible values:
-
pending: The initial state after callingCreateDirectConnectGateway. -
available: The Direct Connect gateway is ready for use. -
deleting: The initial state after callingDeleteDirectConnectGateway. -
deleted: The Direct Connect gateway is deleted and cannot pass traffic.
sourcepub fn state_change_error(&self) -> Option<&str>
pub fn state_change_error(&self) -> Option<&str>
The error message if the state of an object failed to advance.
source§impl DirectConnectGateway
impl DirectConnectGateway
sourcepub fn builder() -> DirectConnectGatewayBuilder
pub fn builder() -> DirectConnectGatewayBuilder
Creates a new builder-style object to manufacture DirectConnectGateway.
Trait Implementations§
source§impl Clone for DirectConnectGateway
impl Clone for DirectConnectGateway
source§fn clone(&self) -> DirectConnectGateway
fn clone(&self) -> DirectConnectGateway
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DirectConnectGateway
impl Debug for DirectConnectGateway
source§impl PartialEq for DirectConnectGateway
impl PartialEq for DirectConnectGateway
source§fn eq(&self, other: &DirectConnectGateway) -> bool
fn eq(&self, other: &DirectConnectGateway) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DirectConnectGateway
Auto Trait Implementations§
impl Freeze for DirectConnectGateway
impl RefUnwindSafe for DirectConnectGateway
impl Send for DirectConnectGateway
impl Sync for DirectConnectGateway
impl Unpin for DirectConnectGateway
impl UnwindSafe for DirectConnectGateway
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