#[non_exhaustive]pub struct AwsCloudMapServiceDiscovery {
pub namespace_name: Option<String>,
pub service_name: Option<String>,
pub attributes: Option<Vec<AwsCloudMapInstanceAttribute>>,
pub ip_preference: Option<IpPreference>,
}
Expand description
An object that represents the Cloud Map service discovery information for your virtual node.
Cloud Map is not available in the eu-south-1 Region.
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.namespace_name: Option<String>
The name of the Cloud Map namespace to use.
service_name: Option<String>
The name of the Cloud Map service to use.
attributes: Option<Vec<AwsCloudMapInstanceAttribute>>
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
ip_preference: Option<IpPreference>
The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
Implementations§
source§impl AwsCloudMapServiceDiscovery
impl AwsCloudMapServiceDiscovery
sourcepub fn namespace_name(&self) -> Option<&str>
pub fn namespace_name(&self) -> Option<&str>
The name of the Cloud Map namespace to use.
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the Cloud Map service to use.
sourcepub fn attributes(&self) -> Option<&[AwsCloudMapInstanceAttribute]>
pub fn attributes(&self) -> Option<&[AwsCloudMapInstanceAttribute]>
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
sourcepub fn ip_preference(&self) -> Option<&IpPreference>
pub fn ip_preference(&self) -> Option<&IpPreference>
The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
source§impl AwsCloudMapServiceDiscovery
impl AwsCloudMapServiceDiscovery
sourcepub fn builder() -> AwsCloudMapServiceDiscoveryBuilder
pub fn builder() -> AwsCloudMapServiceDiscoveryBuilder
Creates a new builder-style object to manufacture AwsCloudMapServiceDiscovery
.
Trait Implementations§
source§impl Clone for AwsCloudMapServiceDiscovery
impl Clone for AwsCloudMapServiceDiscovery
source§fn clone(&self) -> AwsCloudMapServiceDiscovery
fn clone(&self) -> AwsCloudMapServiceDiscovery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsCloudMapServiceDiscovery
impl Debug for AwsCloudMapServiceDiscovery
source§impl PartialEq<AwsCloudMapServiceDiscovery> for AwsCloudMapServiceDiscovery
impl PartialEq<AwsCloudMapServiceDiscovery> for AwsCloudMapServiceDiscovery
source§fn eq(&self, other: &AwsCloudMapServiceDiscovery) -> bool
fn eq(&self, other: &AwsCloudMapServiceDiscovery) -> bool
self
and other
values to be equal, and is used
by ==
.