#[non_exhaustive]pub struct DescribeFastLaunchImagesSuccessItem { /* private fields */ }
Expand description
Describe details about a fast-launch enabled Windows image that meets the requested criteria. Criteria are defined by the DescribeFastLaunchImages
action filters.
Implementations§
source§impl DescribeFastLaunchImagesSuccessItem
impl DescribeFastLaunchImagesSuccessItem
sourcepub fn image_id(&self) -> Option<&str>
pub fn image_id(&self) -> Option<&str>
The image ID that identifies the fast-launch enabled Windows image.
sourcepub fn resource_type(&self) -> Option<&FastLaunchResourceType>
pub fn resource_type(&self) -> Option<&FastLaunchResourceType>
The resource type that is used for pre-provisioning the Windows AMI. Supported values include: snapshot
.
sourcepub fn snapshot_configuration(
&self
) -> Option<&FastLaunchSnapshotConfigurationResponse>
pub fn snapshot_configuration(
&self
) -> Option<&FastLaunchSnapshotConfigurationResponse>
A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots.
sourcepub fn launch_template(
&self
) -> Option<&FastLaunchLaunchTemplateSpecificationResponse>
pub fn launch_template(
&self
) -> Option<&FastLaunchLaunchTemplateSpecificationResponse>
The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances from pre-provisioned snapshots.
sourcepub fn max_parallel_launches(&self) -> Option<i32>
pub fn max_parallel_launches(&self) -> Option<i32>
The maximum number of parallel instances that are launched for creating resources.
sourcepub fn state(&self) -> Option<&FastLaunchStateCode>
pub fn state(&self) -> Option<&FastLaunchStateCode>
The current state of faster launching for the specified Windows AMI.
sourcepub fn state_transition_reason(&self) -> Option<&str>
pub fn state_transition_reason(&self) -> Option<&str>
The reason that faster launching for the Windows AMI changed to the current state.
sourcepub fn state_transition_time(&self) -> Option<&DateTime>
pub fn state_transition_time(&self) -> Option<&DateTime>
The time that faster launching for the Windows AMI changed to the current state.
source§impl DescribeFastLaunchImagesSuccessItem
impl DescribeFastLaunchImagesSuccessItem
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DescribeFastLaunchImagesSuccessItem
.
Examples found in repository?
44409 44410 44411 44412 44413 44414 44415 44416 44417 44418 44419 44420 44421 44422 44423 44424 44425 44426 44427 44428 44429 44430 44431 44432 44433 44434 44435 44436 44437 44438 44439 44440 44441 44442 44443 44444 44445 44446 44447 44448 44449 44450 44451 44452 44453 44454 44455 44456 44457 44458 44459 44460 44461 44462 44463 44464 44465 44466 44467 44468 44469 44470 44471 44472 44473 44474 44475 44476 44477 44478 44479 44480 44481 44482 44483 44484 44485 44486 44487 44488 44489 44490 44491 44492 44493 44494 44495 44496 44497 44498 44499 44500 44501 44502 44503 44504 44505 44506 44507 44508 44509 44510 44511 44512 44513 44514 44515 44516 44517 44518 44519 44520 44521 44522 44523 44524 44525 44526 44527 44528 44529 44530 44531 44532 44533 44534 44535 44536 44537
pub fn deser_structure_crate_model_describe_fast_launch_images_success_item(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DescribeFastLaunchImagesSuccessItem, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::DescribeFastLaunchImagesSuccessItem::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$ImageId */ => {
let var_1951 =
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_image_id(var_1951);
}
,
s if s.matches("resourceType") /* ResourceType com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$ResourceType */ => {
let var_1952 =
Some(
Result::<crate::model::FastLaunchResourceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FastLaunchResourceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_resource_type(var_1952);
}
,
s if s.matches("snapshotConfiguration") /* SnapshotConfiguration com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$SnapshotConfiguration */ => {
let var_1953 =
Some(
crate::xml_deser::deser_structure_crate_model_fast_launch_snapshot_configuration_response(&mut tag)
?
)
;
builder = builder.set_snapshot_configuration(var_1953);
}
,
s if s.matches("launchTemplate") /* LaunchTemplate com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$LaunchTemplate */ => {
let var_1954 =
Some(
crate::xml_deser::deser_structure_crate_model_fast_launch_launch_template_specification_response(&mut tag)
?
)
;
builder = builder.set_launch_template(var_1954);
}
,
s if s.matches("maxParallelLaunches") /* MaxParallelLaunches com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$MaxParallelLaunches */ => {
let var_1955 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_max_parallel_launches(var_1955);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$OwnerId */ => {
let var_1956 =
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_owner_id(var_1956);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$State */ => {
let var_1957 =
Some(
Result::<crate::model::FastLaunchStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FastLaunchStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1957);
}
,
s if s.matches("stateTransitionReason") /* StateTransitionReason com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$StateTransitionReason */ => {
let var_1958 =
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_state_transition_reason(var_1958);
}
,
s if s.matches("stateTransitionTime") /* StateTransitionTime com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$StateTransitionTime */ => {
let var_1959 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
?
)
;
builder = builder.set_state_transition_time(var_1959);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for DescribeFastLaunchImagesSuccessItem
impl Clone for DescribeFastLaunchImagesSuccessItem
source§fn clone(&self) -> DescribeFastLaunchImagesSuccessItem
fn clone(&self) -> DescribeFastLaunchImagesSuccessItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more