Struct aws_sdk_health::types::AffectedEntity
source · #[non_exhaustive]pub struct AffectedEntity {
pub entity_arn: Option<String>,
pub event_arn: Option<String>,
pub entity_value: Option<String>,
pub entity_url: Option<String>,
pub aws_account_id: Option<String>,
pub last_updated_time: Option<DateTime>,
pub status_code: Option<EntityStatusCode>,
pub tags: Option<HashMap<String, String>>,
}
Expand description
Information about an entity that is affected by a Health event.
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.entity_arn: Option<String>
The unique identifier for the entity. Format: arn:aws:health:entity-region:aws-account:entity/entity-id
. Example: arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
event_arn: Option<String>
The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
entity_value: Option<String>
The ID of the affected entity.
entity_url: Option<String>
The URL of the affected entity.
aws_account_id: Option<String>
The 12-digit Amazon Web Services account number that contains the affected entity.
last_updated_time: Option<DateTime>
The most recent time that the entity was updated.
status_code: Option<EntityStatusCode>
The most recent status of the entity affected by the event. The possible values are IMPAIRED
, UNIMPAIRED
, and UNKNOWN
.
A map of entity tags attached to the affected entity.
Currently, the tags
property isn't supported.
Implementations§
source§impl AffectedEntity
impl AffectedEntity
sourcepub fn entity_arn(&self) -> Option<&str>
pub fn entity_arn(&self) -> Option<&str>
The unique identifier for the entity. Format: arn:aws:health:entity-region:aws-account:entity/entity-id
. Example: arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K
sourcepub fn event_arn(&self) -> Option<&str>
pub fn event_arn(&self) -> Option<&str>
The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
sourcepub fn entity_value(&self) -> Option<&str>
pub fn entity_value(&self) -> Option<&str>
The ID of the affected entity.
sourcepub fn entity_url(&self) -> Option<&str>
pub fn entity_url(&self) -> Option<&str>
The URL of the affected entity.
sourcepub fn aws_account_id(&self) -> Option<&str>
pub fn aws_account_id(&self) -> Option<&str>
The 12-digit Amazon Web Services account number that contains the affected entity.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
The most recent time that the entity was updated.
sourcepub fn status_code(&self) -> Option<&EntityStatusCode>
pub fn status_code(&self) -> Option<&EntityStatusCode>
The most recent status of the entity affected by the event. The possible values are IMPAIRED
, UNIMPAIRED
, and UNKNOWN
.
A map of entity tags attached to the affected entity.
Currently, the tags
property isn't supported.
source§impl AffectedEntity
impl AffectedEntity
sourcepub fn builder() -> AffectedEntityBuilder
pub fn builder() -> AffectedEntityBuilder
Creates a new builder-style object to manufacture AffectedEntity
.
Trait Implementations§
source§impl Clone for AffectedEntity
impl Clone for AffectedEntity
source§fn clone(&self) -> AffectedEntity
fn clone(&self) -> AffectedEntity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AffectedEntity
impl Debug for AffectedEntity
source§impl PartialEq for AffectedEntity
impl PartialEq for AffectedEntity
source§fn eq(&self, other: &AffectedEntity) -> bool
fn eq(&self, other: &AffectedEntity) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AffectedEntity
Auto Trait Implementations§
impl Freeze for AffectedEntity
impl RefUnwindSafe for AffectedEntity
impl Send for AffectedEntity
impl Sync for AffectedEntity
impl Unpin for AffectedEntity
impl UnwindSafe for AffectedEntity
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