Struct aws_sdk_health::types::EventFilter
source · #[non_exhaustive]pub struct EventFilter {Show 13 fields
pub event_arns: Option<Vec<String>>,
pub event_type_codes: Option<Vec<String>>,
pub services: Option<Vec<String>>,
pub regions: Option<Vec<String>>,
pub availability_zones: Option<Vec<String>>,
pub start_times: Option<Vec<DateTimeRange>>,
pub end_times: Option<Vec<DateTimeRange>>,
pub last_updated_times: Option<Vec<DateTimeRange>>,
pub entity_arns: Option<Vec<String>>,
pub entity_values: Option<Vec<String>>,
pub event_type_categories: Option<Vec<EventTypeCategory>>,
pub tags: Option<Vec<HashMap<String, String>>>,
pub event_status_codes: Option<Vec<EventStatusCode>>,
}
Expand description
The values to use to filter results from the DescribeEvents and DescribeEventAggregates operations.
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.event_arns: Option<Vec<String>>
A list of event ARNs (unique identifiers). For example: "arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
event_type_codes: Option<Vec<String>>
A list of unique identifiers for event types. For example, "AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".
services: Option<Vec<String>>
The Amazon Web Services associated with the event. For example, EC2
, RDS
.
regions: Option<Vec<String>>
A list of Amazon Web Services Regions.
availability_zones: Option<Vec<String>>
A list of Amazon Web Services Availability Zones.
start_times: Option<Vec<DateTimeRange>>
A list of dates and times that the event began.
end_times: Option<Vec<DateTimeRange>>
A list of dates and times that the event ended.
last_updated_times: Option<Vec<DateTimeRange>>
A list of dates and times that the event was last updated.
entity_arns: Option<Vec<String>>
A list of entity ARNs (unique identifiers).
entity_values: Option<Vec<String>>
A list of entity identifiers, such as EC2 instance IDs (i-34ab692e
) or EBS volumes (vol-426ab23e
).
event_type_categories: Option<Vec<EventTypeCategory>>
A list of event type category codes. Possible values are issue
, accountNotification
, or scheduledChange
. Currently, the investigation
value isn't supported at this time.
A map of entity tags attached to the affected entity.
Currently, the tags
property isn't supported.
event_status_codes: Option<Vec<EventStatusCode>>
A list of event status codes.
Implementations§
source§impl EventFilter
impl EventFilter
sourcepub fn event_arns(&self) -> &[String]
pub fn event_arns(&self) -> &[String]
A list of event ARNs (unique identifiers). For example: "arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .event_arns.is_none()
.
sourcepub fn event_type_codes(&self) -> &[String]
pub fn event_type_codes(&self) -> &[String]
A list of unique identifiers for event types. For example, "AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .event_type_codes.is_none()
.
sourcepub fn services(&self) -> &[String]
pub fn services(&self) -> &[String]
The Amazon Web Services associated with the event. For example, EC2
, RDS
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .services.is_none()
.
sourcepub fn regions(&self) -> &[String]
pub fn regions(&self) -> &[String]
A list of Amazon Web Services Regions.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .regions.is_none()
.
sourcepub fn availability_zones(&self) -> &[String]
pub fn availability_zones(&self) -> &[String]
A list of Amazon Web Services Availability Zones.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .availability_zones.is_none()
.
sourcepub fn start_times(&self) -> &[DateTimeRange]
pub fn start_times(&self) -> &[DateTimeRange]
A list of dates and times that the event began.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .start_times.is_none()
.
sourcepub fn end_times(&self) -> &[DateTimeRange]
pub fn end_times(&self) -> &[DateTimeRange]
A list of dates and times that the event ended.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .end_times.is_none()
.
sourcepub fn last_updated_times(&self) -> &[DateTimeRange]
pub fn last_updated_times(&self) -> &[DateTimeRange]
A list of dates and times that the event was last updated.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .last_updated_times.is_none()
.
sourcepub fn entity_arns(&self) -> &[String]
pub fn entity_arns(&self) -> &[String]
A list of entity ARNs (unique identifiers).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .entity_arns.is_none()
.
sourcepub fn entity_values(&self) -> &[String]
pub fn entity_values(&self) -> &[String]
A list of entity identifiers, such as EC2 instance IDs (i-34ab692e
) or EBS volumes (vol-426ab23e
).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .entity_values.is_none()
.
sourcepub fn event_type_categories(&self) -> &[EventTypeCategory]
pub fn event_type_categories(&self) -> &[EventTypeCategory]
A list of event type category codes. Possible values are issue
, accountNotification
, or scheduledChange
. Currently, the investigation
value isn't supported at this time.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .event_type_categories.is_none()
.
A map of entity tags attached to the affected entity.
Currently, the tags
property isn't supported.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn event_status_codes(&self) -> &[EventStatusCode]
pub fn event_status_codes(&self) -> &[EventStatusCode]
A list of event status codes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .event_status_codes.is_none()
.
source§impl EventFilter
impl EventFilter
sourcepub fn builder() -> EventFilterBuilder
pub fn builder() -> EventFilterBuilder
Creates a new builder-style object to manufacture EventFilter
.
Trait Implementations§
source§impl Clone for EventFilter
impl Clone for EventFilter
source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventFilter
impl Debug for EventFilter
source§impl PartialEq for EventFilter
impl PartialEq for EventFilter
source§fn eq(&self, other: &EventFilter) -> bool
fn eq(&self, other: &EventFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EventFilter
Auto Trait Implementations§
impl Freeze for EventFilter
impl RefUnwindSafe for EventFilter
impl Send for EventFilter
impl Sync for EventFilter
impl Unpin for EventFilter
impl UnwindSafe for EventFilter
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