Struct aws_sdk_appmesh::types::VirtualNodeSpec
source · #[non_exhaustive]pub struct VirtualNodeSpec {
pub service_discovery: Option<ServiceDiscovery>,
pub listeners: Option<Vec<Listener>>,
pub backends: Option<Vec<Backend>>,
pub backend_defaults: Option<BackendDefaults>,
pub logging: Option<Logging>,
}
Expand description
An object that represents the specification of a virtual node.
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.service_discovery: Option<ServiceDiscovery>
The service discovery information for the virtual node. If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener
, then you must specify service discovery information.
listeners: Option<Vec<Listener>>
The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.
backends: Option<Vec<Backend>>
The backends that the virtual node is expected to send outbound traffic to.
backend_defaults: Option<BackendDefaults>
A reference to an object that represents the defaults for backends.
logging: Option<Logging>
The inbound and outbound access logging information for the virtual node.
Implementations§
source§impl VirtualNodeSpec
impl VirtualNodeSpec
sourcepub fn service_discovery(&self) -> Option<&ServiceDiscovery>
pub fn service_discovery(&self) -> Option<&ServiceDiscovery>
The service discovery information for the virtual node. If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener
, then you must specify service discovery information.
sourcepub fn listeners(&self) -> Option<&[Listener]>
pub fn listeners(&self) -> Option<&[Listener]>
The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.
sourcepub fn backends(&self) -> Option<&[Backend]>
pub fn backends(&self) -> Option<&[Backend]>
The backends that the virtual node is expected to send outbound traffic to.
sourcepub fn backend_defaults(&self) -> Option<&BackendDefaults>
pub fn backend_defaults(&self) -> Option<&BackendDefaults>
A reference to an object that represents the defaults for backends.
source§impl VirtualNodeSpec
impl VirtualNodeSpec
sourcepub fn builder() -> VirtualNodeSpecBuilder
pub fn builder() -> VirtualNodeSpecBuilder
Creates a new builder-style object to manufacture VirtualNodeSpec
.
Trait Implementations§
source§impl Clone for VirtualNodeSpec
impl Clone for VirtualNodeSpec
source§fn clone(&self) -> VirtualNodeSpec
fn clone(&self) -> VirtualNodeSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VirtualNodeSpec
impl Debug for VirtualNodeSpec
source§impl PartialEq<VirtualNodeSpec> for VirtualNodeSpec
impl PartialEq<VirtualNodeSpec> for VirtualNodeSpec
source§fn eq(&self, other: &VirtualNodeSpec) -> bool
fn eq(&self, other: &VirtualNodeSpec) -> bool
self
and other
values to be equal, and is used
by ==
.