Struct aws_sdk_servicediscovery::model::OperationFilter
source · [−]#[non_exhaustive]pub struct OperationFilter {
pub name: Option<OperationFilterName>,
pub values: Option<Vec<String>>,
pub condition: Option<FilterCondition>,
}
Expand description
A complex type that lets you select the operations that you want to list.
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.name: Option<OperationFilterName>
Specify the operations that you want to get:
-
NAMESPACE_ID: Gets operations related to specified namespaces.
-
SERVICE_ID: Gets operations related to specified services.
-
STATUS: Gets operations based on the status of the operations:
SUBMITTED
,PENDING
,SUCCEED
, orFAIL
. -
TYPE: Gets specified types of operation.
-
UPDATE_DATE: Gets operations that changed status during a specified date/time range.
values: Option<Vec<String>>
Specify values that are applicable to the value that you specify for Name
:
-
NAMESPACE_ID: Specify one namespace ID.
-
SERVICE_ID: Specify one service ID.
-
STATUS: Specify one or more statuses:
SUBMITTED
,PENDING
,SUCCEED
, orFAIL
. -
TYPE: Specify one or more of the following types:
CREATE_NAMESPACE
,DELETE_NAMESPACE
,UPDATE_SERVICE
,REGISTER_INSTANCE
, orDEREGISTER_INSTANCE
. -
UPDATE_DATE: Specify a start date and an end date in Unix date/time format and Coordinated Universal Time (UTC). The start date must be the first value.
condition: Option<FilterCondition>
The operator that you want to use to determine whether an operation matches the specified value. Valid values for condition include:
-
EQ
: When you specifyEQ
for the condition, you can specify only one value.EQ
is supported forNAMESPACE_ID
,SERVICE_ID
,STATUS
, andTYPE
.EQ
is the default condition and can be omitted. -
IN
: When you specifyIN
for the condition, you can specify a list of one or more values.IN
is supported forSTATUS
andTYPE
. An operation must match one of the specified values to be returned in the response. -
BETWEEN
: Specify a start date and an end date in Unix date/time format and Coordinated Universal Time (UTC). The start date must be the first value.BETWEEN
is supported forUPDATE_DATE
.
Implementations
sourceimpl OperationFilter
impl OperationFilter
sourcepub fn name(&self) -> Option<&OperationFilterName>
pub fn name(&self) -> Option<&OperationFilterName>
Specify the operations that you want to get:
-
NAMESPACE_ID: Gets operations related to specified namespaces.
-
SERVICE_ID: Gets operations related to specified services.
-
STATUS: Gets operations based on the status of the operations:
SUBMITTED
,PENDING
,SUCCEED
, orFAIL
. -
TYPE: Gets specified types of operation.
-
UPDATE_DATE: Gets operations that changed status during a specified date/time range.
sourcepub fn values(&self) -> Option<&[String]>
pub fn values(&self) -> Option<&[String]>
Specify values that are applicable to the value that you specify for Name
:
-
NAMESPACE_ID: Specify one namespace ID.
-
SERVICE_ID: Specify one service ID.
-
STATUS: Specify one or more statuses:
SUBMITTED
,PENDING
,SUCCEED
, orFAIL
. -
TYPE: Specify one or more of the following types:
CREATE_NAMESPACE
,DELETE_NAMESPACE
,UPDATE_SERVICE
,REGISTER_INSTANCE
, orDEREGISTER_INSTANCE
. -
UPDATE_DATE: Specify a start date and an end date in Unix date/time format and Coordinated Universal Time (UTC). The start date must be the first value.
sourcepub fn condition(&self) -> Option<&FilterCondition>
pub fn condition(&self) -> Option<&FilterCondition>
The operator that you want to use to determine whether an operation matches the specified value. Valid values for condition include:
-
EQ
: When you specifyEQ
for the condition, you can specify only one value.EQ
is supported forNAMESPACE_ID
,SERVICE_ID
,STATUS
, andTYPE
.EQ
is the default condition and can be omitted. -
IN
: When you specifyIN
for the condition, you can specify a list of one or more values.IN
is supported forSTATUS
andTYPE
. An operation must match one of the specified values to be returned in the response. -
BETWEEN
: Specify a start date and an end date in Unix date/time format and Coordinated Universal Time (UTC). The start date must be the first value.BETWEEN
is supported forUPDATE_DATE
.
sourceimpl OperationFilter
impl OperationFilter
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OperationFilter
Trait Implementations
sourceimpl Clone for OperationFilter
impl Clone for OperationFilter
sourcefn clone(&self) -> OperationFilter
fn clone(&self) -> OperationFilter
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 OperationFilter
impl Debug for OperationFilter
sourceimpl PartialEq<OperationFilter> for OperationFilter
impl PartialEq<OperationFilter> for OperationFilter
sourcefn eq(&self, other: &OperationFilter) -> bool
fn eq(&self, other: &OperationFilter) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OperationFilter) -> bool
fn ne(&self, other: &OperationFilter) -> bool
This method tests for !=
.
impl StructuralPartialEq for OperationFilter
Auto Trait Implementations
impl RefUnwindSafe for OperationFilter
impl Send for OperationFilter
impl Sync for OperationFilter
impl Unpin for OperationFilter
impl UnwindSafe for OperationFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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