Struct aws_sdk_servicediscovery::operation::get_instances_health_status::GetInstancesHealthStatusInput
source · #[non_exhaustive]pub struct GetInstancesHealthStatusInput {
pub service_id: Option<String>,
pub instances: Option<Vec<String>>,
pub max_results: Option<i32>,
pub next_token: Option<String>,
}
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_id: Option<String>
The ID of the service that the instance is associated with.
instances: Option<Vec<String>>
An array that contains the IDs of all the instances that you want to get the health status for.
If you omit Instances
, Cloud Map returns the health status for all the instances that are associated with the specified service.
To get the IDs for the instances that you've registered by using a specified service, submit a ListInstances request.
max_results: Option<i32>
The maximum number of instances that you want Cloud Map to return in the response to a GetInstancesHealthStatus
request. If you don't specify a value for MaxResults
, Cloud Map returns up to 100 instances.
next_token: Option<String>
For the first GetInstancesHealthStatus
request, omit this value.
If more than MaxResults
instances match the specified criteria, you can submit another GetInstancesHealthStatus
request to get the next group of results. Specify the value of NextToken
from the previous response in the next request.
Implementations§
source§impl GetInstancesHealthStatusInput
impl GetInstancesHealthStatusInput
sourcepub fn service_id(&self) -> Option<&str>
pub fn service_id(&self) -> Option<&str>
The ID of the service that the instance is associated with.
sourcepub fn instances(&self) -> &[String]
pub fn instances(&self) -> &[String]
An array that contains the IDs of all the instances that you want to get the health status for.
If you omit Instances
, Cloud Map returns the health status for all the instances that are associated with the specified service.
To get the IDs for the instances that you've registered by using a specified service, submit a ListInstances request.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .instances.is_none()
.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of instances that you want Cloud Map to return in the response to a GetInstancesHealthStatus
request. If you don't specify a value for MaxResults
, Cloud Map returns up to 100 instances.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
For the first GetInstancesHealthStatus
request, omit this value.
If more than MaxResults
instances match the specified criteria, you can submit another GetInstancesHealthStatus
request to get the next group of results. Specify the value of NextToken
from the previous response in the next request.
source§impl GetInstancesHealthStatusInput
impl GetInstancesHealthStatusInput
sourcepub fn builder() -> GetInstancesHealthStatusInputBuilder
pub fn builder() -> GetInstancesHealthStatusInputBuilder
Creates a new builder-style object to manufacture GetInstancesHealthStatusInput
.
Trait Implementations§
source§impl Clone for GetInstancesHealthStatusInput
impl Clone for GetInstancesHealthStatusInput
source§fn clone(&self) -> GetInstancesHealthStatusInput
fn clone(&self) -> GetInstancesHealthStatusInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for GetInstancesHealthStatusInput
impl PartialEq for GetInstancesHealthStatusInput
source§fn eq(&self, other: &GetInstancesHealthStatusInput) -> bool
fn eq(&self, other: &GetInstancesHealthStatusInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetInstancesHealthStatusInput
Auto Trait Implementations§
impl Freeze for GetInstancesHealthStatusInput
impl RefUnwindSafe for GetInstancesHealthStatusInput
impl Send for GetInstancesHealthStatusInput
impl Sync for GetInstancesHealthStatusInput
impl Unpin for GetInstancesHealthStatusInput
impl UnwindSafe for GetInstancesHealthStatusInput
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> 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