Struct aws_sdk_ec2::model::EventInformation
source · #[non_exhaustive]pub struct EventInformation { /* private fields */ }
Expand description
Describes an EC2 Fleet or Spot Fleet event.
Implementations§
source§impl EventInformation
impl EventInformation
sourcepub fn event_description(&self) -> Option<&str>
pub fn event_description(&self) -> Option<&str>
The description of the event.
sourcepub fn event_sub_type(&self) -> Option<&str>
pub fn event_sub_type(&self) -> Option<&str>
The event.
error
events:
-
iamFleetRoleInvalid
- The EC2 Fleet or Spot Fleet does not have the required permissions either to launch or terminate an instance. -
allLaunchSpecsTemporarilyBlacklisted
- None of the configurations are valid, and several attempts to launch instances have failed. For more information, see the description of the event. -
spotInstanceCountLimitExceeded
- You've reached the limit on the number of Spot Instances that you can launch. -
spotFleetRequestConfigurationInvalid
- The configuration is not valid. For more information, see the description of the event.
fleetRequestChange
events:
-
active
- The EC2 Fleet or Spot Fleet request has been validated and Amazon EC2 is attempting to maintain the target number of running instances. -
deleted
(EC2 Fleet) /cancelled
(Spot Fleet) - The EC2 Fleet is deleted or the Spot Fleet request is canceled and has no running instances. The EC2 Fleet or Spot Fleet will be deleted two days after its instances are terminated. -
deleted_running
(EC2 Fleet) /cancelled_running
(Spot Fleet) - The EC2 Fleet is deleted or the Spot Fleet request is canceled and does not launch additional instances. Its existing instances continue to run until they are interrupted or terminated. The request remains in this state until all instances are interrupted or terminated. -
deleted_terminating
(EC2 Fleet) /cancelled_terminating
(Spot Fleet) - The EC2 Fleet is deleted or the Spot Fleet request is canceled and its instances are terminating. The request remains in this state until all instances are terminated. -
expired
- The EC2 Fleet or Spot Fleet request has expired. If the request was created withTerminateInstancesWithExpiration
set, a subsequentterminated
event indicates that the instances are terminated. -
modify_in_progress
- The EC2 Fleet or Spot Fleet request is being modified. The request remains in this state until the modification is fully processed. -
modify_succeeded
- The EC2 Fleet or Spot Fleet request was modified. -
submitted
- The EC2 Fleet or Spot Fleet request is being evaluated and Amazon EC2 is preparing to launch the target number of instances. -
progress
- The EC2 Fleet or Spot Fleet request is in the process of being fulfilled.
instanceChange
events:
-
launched
- A new instance was launched. -
terminated
- An instance was terminated by the user. -
termination_notified
- An instance termination notification was sent when a Spot Instance was terminated by Amazon EC2 during scale-down, when the target capacity of the fleet was modified down, for example, from a target capacity of 4 to a target capacity of 3.
Information
events:
-
fleetProgressHalted
- The price in every launch specification is not valid because it is below the Spot price (all the launch specifications have producedlaunchSpecUnusable
events). A launch specification might become valid if the Spot price changes. -
launchSpecTemporarilyBlacklisted
- The configuration is not valid and several attempts to launch instances have failed. For more information, see the description of the event. -
launchSpecUnusable
- The price in a launch specification is not valid because it is below the Spot price. -
registerWithLoadBalancersFailed
- An attempt to register instances with load balancers failed. For more information, see the description of the event.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance. This information is available only for instanceChange
events.
source§impl EventInformation
impl EventInformation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EventInformation
.
Examples found in repository?
58441 58442 58443 58444 58445 58446 58447 58448 58449 58450 58451 58452 58453 58454 58455 58456 58457 58458 58459 58460 58461 58462 58463 58464 58465 58466 58467 58468 58469 58470 58471 58472 58473 58474 58475 58476 58477 58478 58479 58480 58481 58482 58483 58484 58485 58486 58487 58488 58489 58490 58491
pub fn deser_structure_crate_model_event_information(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::EventInformation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::EventInformation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("eventDescription") /* EventDescription com.amazonaws.ec2#EventInformation$EventDescription */ => {
let var_2845 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_event_description(var_2845);
}
,
s if s.matches("eventSubType") /* EventSubType com.amazonaws.ec2#EventInformation$EventSubType */ => {
let var_2846 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_event_sub_type(var_2846);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#EventInformation$InstanceId */ => {
let var_2847 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_instance_id(var_2847);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for EventInformation
impl Clone for EventInformation
source§fn clone(&self) -> EventInformation
fn clone(&self) -> EventInformation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more