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 ==
.