#[non_exhaustive]pub struct AwsCloudMapServiceDiscovery {
pub namespace_name: String,
pub service_name: 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: StringThe name of the Cloud Map namespace to use.
service_name: StringThe 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) -> &str
pub fn namespace_name(&self) -> &str
The name of the Cloud Map namespace to use.
sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &str
The name of the Cloud Map service to use.
sourcepub fn attributes(&self) -> &[AwsCloudMapInstanceAttribute]
pub fn attributes(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attributes.is_none().
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
impl StructuralPartialEq for AwsCloudMapServiceDiscovery
Auto Trait Implementations§
impl Freeze for AwsCloudMapServiceDiscovery
impl RefUnwindSafe for AwsCloudMapServiceDiscovery
impl Send for AwsCloudMapServiceDiscovery
impl Sync for AwsCloudMapServiceDiscovery
impl Unpin for AwsCloudMapServiceDiscovery
impl UnwindSafe for AwsCloudMapServiceDiscovery
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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