Struct aws_sdk_networkmanager::model::NetworkResource
source · [−]#[non_exhaustive]pub struct NetworkResource {
pub registered_gateway_arn: Option<String>,
pub core_network_id: Option<String>,
pub aws_region: Option<String>,
pub account_id: Option<String>,
pub resource_type: Option<String>,
pub resource_id: Option<String>,
pub resource_arn: Option<String>,
pub definition: Option<String>,
pub definition_timestamp: Option<DateTime>,
pub tags: Option<Vec<Tag>>,
pub metadata: Option<HashMap<String, String>>,
}
Expand description
Describes a network resource.
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.registered_gateway_arn: Option<String>
The ARN of the gateway.
core_network_id: Option<String>
a core network ID.
aws_region: Option<String>
The Amazon Web Services Region.
account_id: Option<String>
The Amazon Web Services account ID.
resource_type: Option<String>
The resource type.
The following are the supported resource types for Direct Connect:
-
dxcon
-
dx-gateway
-
dx-vif
The following are the supported resource types for Network Manager:
-
connection
-
device
-
link
-
site
The following are the supported resource types for Amazon VPC:
-
customer-gateway
-
transit-gateway
-
transit-gateway-attachment
-
transit-gateway-connect-peer
-
transit-gateway-route-table
-
vpn-connection
resource_id: Option<String>
The ID of the resource.
resource_arn: Option<String>
The ARN of the resource.
definition: Option<String>
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
definition_timestamp: Option<DateTime>
The time that the resource definition was retrieved.
The tags.
metadata: Option<HashMap<String, String>>
The resource metadata.
Implementations
sourceimpl NetworkResource
impl NetworkResource
sourcepub fn registered_gateway_arn(&self) -> Option<&str>
pub fn registered_gateway_arn(&self) -> Option<&str>
The ARN of the gateway.
sourcepub fn core_network_id(&self) -> Option<&str>
pub fn core_network_id(&self) -> Option<&str>
a core network ID.
sourcepub fn aws_region(&self) -> Option<&str>
pub fn aws_region(&self) -> Option<&str>
The Amazon Web Services Region.
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The Amazon Web Services account ID.
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The resource type.
The following are the supported resource types for Direct Connect:
-
dxcon
-
dx-gateway
-
dx-vif
The following are the supported resource types for Network Manager:
-
connection
-
device
-
link
-
site
The following are the supported resource types for Amazon VPC:
-
customer-gateway
-
transit-gateway
-
transit-gateway-attachment
-
transit-gateway-connect-peer
-
transit-gateway-route-table
-
vpn-connection
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The ID of the resource.
sourcepub fn resource_arn(&self) -> Option<&str>
pub fn resource_arn(&self) -> Option<&str>
The ARN of the resource.
sourcepub fn definition(&self) -> Option<&str>
pub fn definition(&self) -> Option<&str>
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
sourcepub fn definition_timestamp(&self) -> Option<&DateTime>
pub fn definition_timestamp(&self) -> Option<&DateTime>
The time that the resource definition was retrieved.
The tags.
sourceimpl NetworkResource
impl NetworkResource
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkResource
Trait Implementations
sourceimpl Clone for NetworkResource
impl Clone for NetworkResource
sourcefn clone(&self) -> NetworkResource
fn clone(&self) -> NetworkResource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NetworkResource
impl Debug for NetworkResource
sourceimpl PartialEq<NetworkResource> for NetworkResource
impl PartialEq<NetworkResource> for NetworkResource
sourcefn eq(&self, other: &NetworkResource) -> bool
fn eq(&self, other: &NetworkResource) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NetworkResource) -> bool
fn ne(&self, other: &NetworkResource) -> bool
This method tests for !=
.
impl StructuralPartialEq for NetworkResource
Auto Trait Implementations
impl RefUnwindSafe for NetworkResource
impl Send for NetworkResource
impl Sync for NetworkResource
impl Unpin for NetworkResource
impl UnwindSafe for NetworkResource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more