Struct aws_sdk_ec2::model::instance::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Instance
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn ami_launch_index(self, input: i32) -> Self
pub fn ami_launch_index(self, input: i32) -> Self
The AMI launch index, which can be used to find this instance in the launch group.
sourcepub fn set_ami_launch_index(self, input: Option<i32>) -> Self
pub fn set_ami_launch_index(self, input: Option<i32>) -> Self
The AMI launch index, which can be used to find this instance in the launch group.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn image_id(self, input: impl Into<String>) -> Self
pub fn image_id(self, input: impl Into<String>) -> Self
The ID of the AMI used to launch the instance.
sourcepub fn set_image_id(self, input: Option<String>) -> Self
pub fn set_image_id(self, input: Option<String>) -> Self
The ID of the AMI used to launch the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn instance_type(self, input: InstanceType) -> Self
pub fn instance_type(self, input: InstanceType) -> Self
The instance type.
sourcepub fn set_instance_type(self, input: Option<InstanceType>) -> Self
pub fn set_instance_type(self, input: Option<InstanceType>) -> Self
The instance type.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn kernel_id(self, input: impl Into<String>) -> Self
pub fn kernel_id(self, input: impl Into<String>) -> Self
The kernel associated with this instance, if applicable.
sourcepub fn set_kernel_id(self, input: Option<String>) -> Self
pub fn set_kernel_id(self, input: Option<String>) -> Self
The kernel associated with this instance, if applicable.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn key_name(self, input: impl Into<String>) -> Self
pub fn key_name(self, input: impl Into<String>) -> Self
The name of the key pair, if this instance was launched with an associated key pair.
sourcepub fn set_key_name(self, input: Option<String>) -> Self
pub fn set_key_name(self, input: Option<String>) -> Self
The name of the key pair, if this instance was launched with an associated key pair.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn launch_time(self, input: DateTime) -> Self
pub fn launch_time(self, input: DateTime) -> Self
The time the instance was launched.
sourcepub fn set_launch_time(self, input: Option<DateTime>) -> Self
pub fn set_launch_time(self, input: Option<DateTime>) -> Self
The time the instance was launched.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn monitoring(self, input: Monitoring) -> Self
pub fn monitoring(self, input: Monitoring) -> Self
The monitoring for the instance.
sourcepub fn set_monitoring(self, input: Option<Monitoring>) -> Self
pub fn set_monitoring(self, input: Option<Monitoring>) -> Self
The monitoring for the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn placement(self, input: Placement) -> Self
pub fn placement(self, input: Placement) -> Self
The location where the instance launched, if applicable.
sourcepub fn set_placement(self, input: Option<Placement>) -> Self
pub fn set_placement(self, input: Option<Placement>) -> Self
The location where the instance launched, if applicable.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn platform(self, input: PlatformValues) -> Self
pub fn platform(self, input: PlatformValues) -> Self
The value is Windows
for Windows instances; otherwise blank.
sourcepub fn set_platform(self, input: Option<PlatformValues>) -> Self
pub fn set_platform(self, input: Option<PlatformValues>) -> Self
The value is Windows
for Windows instances; otherwise blank.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn private_dns_name(self, input: impl Into<String>) -> Self
pub fn private_dns_name(self, input: impl Into<String>) -> Self
(IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running
state.
[EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
sourcepub fn set_private_dns_name(self, input: Option<String>) -> Self
pub fn set_private_dns_name(self, input: Option<String>) -> Self
(IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running
state.
[EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn private_ip_address(self, input: impl Into<String>) -> Self
pub fn private_ip_address(self, input: impl Into<String>) -> Self
The private IPv4 address assigned to the instance.
sourcepub fn set_private_ip_address(self, input: Option<String>) -> Self
pub fn set_private_ip_address(self, input: Option<String>) -> Self
The private IPv4 address assigned to the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn product_codes(self, input: ProductCode) -> Self
pub fn product_codes(self, input: ProductCode) -> Self
Appends an item to product_codes
.
To override the contents of this collection use set_product_codes
.
The product codes attached to this instance, if applicable.
sourcepub fn set_product_codes(self, input: Option<Vec<ProductCode>>) -> Self
pub fn set_product_codes(self, input: Option<Vec<ProductCode>>) -> Self
The product codes attached to this instance, if applicable.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn public_dns_name(self, input: impl Into<String>) -> Self
pub fn public_dns_name(self, input: impl Into<String>) -> Self
(IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance enters the running
state. For EC2-VPC, this name is only available if you've enabled DNS hostnames for your VPC.
sourcepub fn set_public_dns_name(self, input: Option<String>) -> Self
pub fn set_public_dns_name(self, input: Option<String>) -> Self
(IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance enters the running
state. For EC2-VPC, this name is only available if you've enabled DNS hostnames for your VPC.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn public_ip_address(self, input: impl Into<String>) -> Self
pub fn public_ip_address(self, input: impl Into<String>) -> Self
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
sourcepub fn set_public_ip_address(self, input: Option<String>) -> Self
pub fn set_public_ip_address(self, input: Option<String>) -> Self
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ramdisk_id(self, input: impl Into<String>) -> Self
pub fn ramdisk_id(self, input: impl Into<String>) -> Self
The RAM disk associated with this instance, if applicable.
sourcepub fn set_ramdisk_id(self, input: Option<String>) -> Self
pub fn set_ramdisk_id(self, input: Option<String>) -> Self
The RAM disk associated with this instance, if applicable.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn state(self, input: InstanceState) -> Self
pub fn state(self, input: InstanceState) -> Self
The current state of the instance.
sourcepub fn set_state(self, input: Option<InstanceState>) -> Self
pub fn set_state(self, input: Option<InstanceState>) -> Self
The current state of the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn state_transition_reason(self, input: impl Into<String>) -> Self
pub fn state_transition_reason(self, input: impl Into<String>) -> Self
The reason for the most recent state transition. This might be an empty string.
sourcepub fn set_state_transition_reason(self, input: Option<String>) -> Self
pub fn set_state_transition_reason(self, input: Option<String>) -> Self
The reason for the most recent state transition. This might be an empty string.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn subnet_id(self, input: impl Into<String>) -> Self
pub fn subnet_id(self, input: impl Into<String>) -> Self
[EC2-VPC] The ID of the subnet in which the instance is running.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
[EC2-VPC] The ID of the subnet in which the instance is running.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
[EC2-VPC] The ID of the VPC in which the instance is running.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
[EC2-VPC] The ID of the VPC in which the instance is running.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn architecture(self, input: ArchitectureValues) -> Self
pub fn architecture(self, input: ArchitectureValues) -> Self
The architecture of the image.
sourcepub fn set_architecture(self, input: Option<ArchitectureValues>) -> Self
pub fn set_architecture(self, input: Option<ArchitectureValues>) -> Self
The architecture of the image.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn block_device_mappings(self, input: InstanceBlockDeviceMapping) -> Self
pub fn block_device_mappings(self, input: InstanceBlockDeviceMapping) -> Self
Appends an item to block_device_mappings
.
To override the contents of this collection use set_block_device_mappings
.
Any block device mapping entries for the instance.
sourcepub fn set_block_device_mappings(
self,
input: Option<Vec<InstanceBlockDeviceMapping>>
) -> Self
pub fn set_block_device_mappings(
self,
input: Option<Vec<InstanceBlockDeviceMapping>>
) -> Self
Any block device mapping entries for the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The idempotency token you provided when you launched the instance, if applicable.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The idempotency token you provided when you launched the instance, if applicable.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ebs_optimized(self, input: bool) -> Self
pub fn ebs_optimized(self, input: bool) -> Self
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
sourcepub fn set_ebs_optimized(self, input: Option<bool>) -> Self
pub fn set_ebs_optimized(self, input: Option<bool>) -> Self
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ena_support(self, input: bool) -> Self
pub fn ena_support(self, input: bool) -> Self
Specifies whether enhanced networking with ENA is enabled.
sourcepub fn set_ena_support(self, input: Option<bool>) -> Self
pub fn set_ena_support(self, input: Option<bool>) -> Self
Specifies whether enhanced networking with ENA is enabled.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn hypervisor(self, input: HypervisorType) -> Self
pub fn hypervisor(self, input: HypervisorType) -> Self
The hypervisor type of the instance. The value xen
is used for both Xen and Nitro hypervisors.
sourcepub fn set_hypervisor(self, input: Option<HypervisorType>) -> Self
pub fn set_hypervisor(self, input: Option<HypervisorType>) -> Self
The hypervisor type of the instance. The value xen
is used for both Xen and Nitro hypervisors.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn iam_instance_profile(self, input: IamInstanceProfile) -> Self
pub fn iam_instance_profile(self, input: IamInstanceProfile) -> Self
The IAM instance profile associated with the instance, if applicable.
sourcepub fn set_iam_instance_profile(self, input: Option<IamInstanceProfile>) -> Self
pub fn set_iam_instance_profile(self, input: Option<IamInstanceProfile>) -> Self
The IAM instance profile associated with the instance, if applicable.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn instance_lifecycle(self, input: InstanceLifecycleType) -> Self
pub fn instance_lifecycle(self, input: InstanceLifecycleType) -> Self
Indicates whether this is a Spot Instance or a Scheduled Instance.
sourcepub fn set_instance_lifecycle(self, input: Option<InstanceLifecycleType>) -> Self
pub fn set_instance_lifecycle(self, input: Option<InstanceLifecycleType>) -> Self
Indicates whether this is a Spot Instance or a Scheduled Instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn elastic_gpu_associations(self, input: ElasticGpuAssociation) -> Self
pub fn elastic_gpu_associations(self, input: ElasticGpuAssociation) -> Self
Appends an item to elastic_gpu_associations
.
To override the contents of this collection use set_elastic_gpu_associations
.
The Elastic GPU associated with the instance.
sourcepub fn set_elastic_gpu_associations(
self,
input: Option<Vec<ElasticGpuAssociation>>
) -> Self
pub fn set_elastic_gpu_associations(
self,
input: Option<Vec<ElasticGpuAssociation>>
) -> Self
The Elastic GPU associated with the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn elastic_inference_accelerator_associations(
self,
input: ElasticInferenceAcceleratorAssociation
) -> Self
pub fn elastic_inference_accelerator_associations(
self,
input: ElasticInferenceAcceleratorAssociation
) -> Self
Appends an item to elastic_inference_accelerator_associations
.
To override the contents of this collection use set_elastic_inference_accelerator_associations
.
The elastic inference accelerator associated with the instance.
sourcepub fn set_elastic_inference_accelerator_associations(
self,
input: Option<Vec<ElasticInferenceAcceleratorAssociation>>
) -> Self
pub fn set_elastic_inference_accelerator_associations(
self,
input: Option<Vec<ElasticInferenceAcceleratorAssociation>>
) -> Self
The elastic inference accelerator associated with the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn network_interfaces(self, input: InstanceNetworkInterface) -> Self
pub fn network_interfaces(self, input: InstanceNetworkInterface) -> Self
Appends an item to network_interfaces
.
To override the contents of this collection use set_network_interfaces
.
[EC2-VPC] The network interfaces for the instance.
sourcepub fn set_network_interfaces(
self,
input: Option<Vec<InstanceNetworkInterface>>
) -> Self
pub fn set_network_interfaces(
self,
input: Option<Vec<InstanceNetworkInterface>>
) -> Self
[EC2-VPC] The network interfaces for the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn outpost_arn(self, input: impl Into<String>) -> Self
pub fn outpost_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Outpost.
sourcepub fn set_outpost_arn(self, input: Option<String>) -> Self
pub fn set_outpost_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Outpost.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn root_device_name(self, input: impl Into<String>) -> Self
pub fn root_device_name(self, input: impl Into<String>) -> Self
The device name of the root device volume (for example, /dev/sda1
).
sourcepub fn set_root_device_name(self, input: Option<String>) -> Self
pub fn set_root_device_name(self, input: Option<String>) -> Self
The device name of the root device volume (for example, /dev/sda1
).
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn root_device_type(self, input: DeviceType) -> Self
pub fn root_device_type(self, input: DeviceType) -> Self
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
sourcepub fn set_root_device_type(self, input: Option<DeviceType>) -> Self
pub fn set_root_device_type(self, input: Option<DeviceType>) -> Self
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn security_groups(self, input: GroupIdentifier) -> Self
pub fn security_groups(self, input: GroupIdentifier) -> Self
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
The security groups for the instance.
sourcepub fn set_security_groups(self, input: Option<Vec<GroupIdentifier>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<GroupIdentifier>>) -> Self
The security groups for the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn source_dest_check(self, input: bool) -> Self
pub fn source_dest_check(self, input: bool) -> Self
Indicates whether source/destination checking is enabled.
sourcepub fn set_source_dest_check(self, input: Option<bool>) -> Self
pub fn set_source_dest_check(self, input: Option<bool>) -> Self
Indicates whether source/destination checking is enabled.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn spot_instance_request_id(self, input: impl Into<String>) -> Self
pub fn spot_instance_request_id(self, input: impl Into<String>) -> Self
If the request is a Spot Instance request, the ID of the request.
sourcepub fn set_spot_instance_request_id(self, input: Option<String>) -> Self
pub fn set_spot_instance_request_id(self, input: Option<String>) -> Self
If the request is a Spot Instance request, the ID of the request.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn sriov_net_support(self, input: impl Into<String>) -> Self
pub fn sriov_net_support(self, input: impl Into<String>) -> Self
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sourcepub fn set_sriov_net_support(self, input: Option<String>) -> Self
pub fn set_sriov_net_support(self, input: Option<String>) -> Self
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn state_reason(self, input: StateReason) -> Self
pub fn state_reason(self, input: StateReason) -> Self
The reason for the most recent state transition.
sourcepub fn set_state_reason(self, input: Option<StateReason>) -> Self
pub fn set_state_reason(self, input: Option<StateReason>) -> Self
The reason for the most recent state transition.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Any tags assigned to the instance.
Any tags assigned to the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn virtualization_type(self, input: VirtualizationType) -> Self
pub fn virtualization_type(self, input: VirtualizationType) -> Self
The virtualization type of the instance.
sourcepub fn set_virtualization_type(self, input: Option<VirtualizationType>) -> Self
pub fn set_virtualization_type(self, input: Option<VirtualizationType>) -> Self
The virtualization type of the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn cpu_options(self, input: CpuOptions) -> Self
pub fn cpu_options(self, input: CpuOptions) -> Self
The CPU options for the instance.
sourcepub fn set_cpu_options(self, input: Option<CpuOptions>) -> Self
pub fn set_cpu_options(self, input: Option<CpuOptions>) -> Self
The CPU options for the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn capacity_reservation_id(self, input: impl Into<String>) -> Self
pub fn capacity_reservation_id(self, input: impl Into<String>) -> Self
The ID of the Capacity Reservation.
sourcepub fn set_capacity_reservation_id(self, input: Option<String>) -> Self
pub fn set_capacity_reservation_id(self, input: Option<String>) -> Self
The ID of the Capacity Reservation.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn capacity_reservation_specification(
self,
input: CapacityReservationSpecificationResponse
) -> Self
pub fn capacity_reservation_specification(
self,
input: CapacityReservationSpecificationResponse
) -> Self
Information about the Capacity Reservation targeting option.
sourcepub fn set_capacity_reservation_specification(
self,
input: Option<CapacityReservationSpecificationResponse>
) -> Self
pub fn set_capacity_reservation_specification(
self,
input: Option<CapacityReservationSpecificationResponse>
) -> Self
Information about the Capacity Reservation targeting option.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn hibernation_options(self, input: HibernationOptions) -> Self
pub fn hibernation_options(self, input: HibernationOptions) -> Self
Indicates whether the instance is enabled for hibernation.
sourcepub fn set_hibernation_options(self, input: Option<HibernationOptions>) -> Self
pub fn set_hibernation_options(self, input: Option<HibernationOptions>) -> Self
Indicates whether the instance is enabled for hibernation.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn licenses(self, input: LicenseConfiguration) -> Self
pub fn licenses(self, input: LicenseConfiguration) -> Self
Appends an item to licenses
.
To override the contents of this collection use set_licenses
.
The license configurations for the instance.
sourcepub fn set_licenses(self, input: Option<Vec<LicenseConfiguration>>) -> Self
pub fn set_licenses(self, input: Option<Vec<LicenseConfiguration>>) -> Self
The license configurations for the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn metadata_options(self, input: InstanceMetadataOptionsResponse) -> Self
pub fn metadata_options(self, input: InstanceMetadataOptionsResponse) -> Self
The metadata options for the instance.
sourcepub fn set_metadata_options(
self,
input: Option<InstanceMetadataOptionsResponse>
) -> Self
pub fn set_metadata_options(
self,
input: Option<InstanceMetadataOptionsResponse>
) -> Self
The metadata options for the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn enclave_options(self, input: EnclaveOptions) -> Self
pub fn enclave_options(self, input: EnclaveOptions) -> Self
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
sourcepub fn set_enclave_options(self, input: Option<EnclaveOptions>) -> Self
pub fn set_enclave_options(self, input: Option<EnclaveOptions>) -> Self
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn boot_mode(self, input: BootModeValues) -> Self
pub fn boot_mode(self, input: BootModeValues) -> Self
The boot mode of the instance. For more information, see Boot modes in the Amazon EC2 User Guide.
sourcepub fn set_boot_mode(self, input: Option<BootModeValues>) -> Self
pub fn set_boot_mode(self, input: Option<BootModeValues>) -> Self
The boot mode of the instance. For more information, see Boot modes in the Amazon EC2 User Guide.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn platform_details(self, input: impl Into<String>) -> Self
pub fn platform_details(self, input: impl Into<String>) -> Self
The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
sourcepub fn set_platform_details(self, input: Option<String>) -> Self
pub fn set_platform_details(self, input: Option<String>) -> Self
The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn usage_operation(self, input: impl Into<String>) -> Self
pub fn usage_operation(self, input: impl Into<String>) -> Self
The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
sourcepub fn set_usage_operation(self, input: Option<String>) -> Self
pub fn set_usage_operation(self, input: Option<String>) -> Self
The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn usage_operation_update_time(self, input: DateTime) -> Self
pub fn usage_operation_update_time(self, input: DateTime) -> Self
The time that the usage operation was last updated.
sourcepub fn set_usage_operation_update_time(self, input: Option<DateTime>) -> Self
pub fn set_usage_operation_update_time(self, input: Option<DateTime>) -> Self
The time that the usage operation was last updated.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn private_dns_name_options(
self,
input: PrivateDnsNameOptionsResponse
) -> Self
pub fn private_dns_name_options(
self,
input: PrivateDnsNameOptionsResponse
) -> Self
The options for the instance hostname.
sourcepub fn set_private_dns_name_options(
self,
input: Option<PrivateDnsNameOptionsResponse>
) -> Self
pub fn set_private_dns_name_options(
self,
input: Option<PrivateDnsNameOptionsResponse>
) -> Self
The options for the instance hostname.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ipv6_address(self, input: impl Into<String>) -> Self
pub fn ipv6_address(self, input: impl Into<String>) -> Self
The IPv6 address assigned to the instance.
sourcepub fn set_ipv6_address(self, input: Option<String>) -> Self
pub fn set_ipv6_address(self, input: Option<String>) -> Self
The IPv6 address assigned to the instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn tpm_support(self, input: impl Into<String>) -> Self
pub fn tpm_support(self, input: impl Into<String>) -> Self
If the instance is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User Guide.
sourcepub fn set_tpm_support(self, input: Option<String>) -> Self
pub fn set_tpm_support(self, input: Option<String>) -> Self
If the instance is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User Guide.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn maintenance_options(self, input: InstanceMaintenanceOptions) -> Self
pub fn maintenance_options(self, input: InstanceMaintenanceOptions) -> Self
Provides information on the recovery and maintenance options of your instance.
sourcepub fn set_maintenance_options(
self,
input: Option<InstanceMaintenanceOptions>
) -> Self
pub fn set_maintenance_options(
self,
input: Option<InstanceMaintenanceOptions>
) -> Self
Provides information on the recovery and maintenance options of your instance.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> Instance
pub fn build(self) -> Instance
Consumes the builder and constructs a Instance
.
Examples found in repository?
55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 55073 55074 55075 55076 55077 55078 55079 55080 55081 55082 55083 55084 55085 55086 55087 55088 55089 55090 55091 55092 55093 55094 55095 55096 55097 55098 55099 55100 55101 55102 55103 55104 55105 55106 55107 55108 55109 55110 55111 55112 55113 55114 55115 55116 55117 55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 55129 55130 55131 55132 55133 55134 55135 55136 55137 55138 55139 55140 55141 55142 55143 55144 55145 55146 55147 55148 55149 55150 55151 55152 55153 55154 55155 55156 55157 55158 55159 55160 55161 55162 55163 55164 55165 55166 55167 55168 55169 55170 55171 55172 55173 55174 55175 55176 55177 55178 55179 55180 55181 55182 55183 55184 55185 55186 55187 55188 55189 55190 55191 55192 55193 55194 55195 55196 55197 55198 55199 55200 55201 55202 55203 55204 55205 55206 55207 55208 55209 55210 55211 55212 55213 55214 55215 55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 55227 55228 55229 55230 55231 55232 55233 55234 55235 55236 55237 55238 55239 55240 55241 55242 55243 55244 55245 55246 55247 55248 55249 55250 55251 55252 55253 55254 55255 55256 55257 55258 55259 55260 55261 55262 55263 55264 55265 55266 55267 55268 55269 55270 55271 55272 55273 55274 55275 55276 55277 55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 55289 55290 55291 55292 55293 55294 55295 55296 55297 55298 55299 55300 55301 55302 55303 55304 55305 55306 55307 55308 55309 55310 55311 55312 55313 55314 55315 55316 55317 55318 55319 55320 55321 55322 55323 55324 55325 55326 55327 55328 55329 55330 55331 55332 55333 55334 55335 55336 55337 55338 55339 55340 55341 55342 55343 55344 55345 55346 55347 55348 55349 55350 55351 55352 55353 55354 55355 55356 55357 55358 55359 55360 55361 55362 55363 55364 55365 55366 55367 55368 55369 55370 55371 55372 55373 55374 55375 55376 55377 55378 55379 55380 55381 55382 55383 55384 55385 55386 55387 55388 55389 55390 55391 55392 55393 55394 55395 55396 55397 55398 55399 55400 55401 55402 55403 55404 55405 55406 55407 55408 55409 55410 55411 55412 55413 55414 55415 55416 55417 55418 55419 55420 55421 55422 55423 55424 55425 55426 55427 55428 55429 55430 55431 55432 55433 55434 55435 55436 55437 55438 55439 55440 55441 55442 55443 55444 55445 55446 55447 55448 55449 55450 55451 55452 55453 55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 55470 55471 55472 55473 55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 55557 55558 55559 55560 55561 55562 55563 55564 55565 55566 55567 55568 55569 55570 55571 55572 55573 55574 55575 55576 55577 55578 55579 55580 55581 55582 55583 55584 55585 55586 55587 55588 55589 55590 55591 55592 55593 55594 55595 55596 55597 55598 55599 55600 55601 55602 55603 55604 55605 55606 55607 55608 55609 55610 55611 55612 55613 55614 55615 55616 55617 55618 55619 55620 55621 55622 55623 55624 55625 55626 55627 55628 55629 55630 55631 55632 55633 55634 55635 55636 55637 55638 55639 55640 55641 55642 55643 55644 55645 55646 55647 55648 55649 55650 55651 55652 55653 55654 55655 55656 55657 55658 55659 55660 55661 55662 55663 55664 55665 55666 55667 55668 55669 55670 55671 55672 55673 55674 55675 55676 55677 55678 55679 55680 55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734
pub fn deser_structure_crate_model_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Instance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Instance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("amiLaunchIndex") /* AmiLaunchIndex com.amazonaws.ec2#Instance$AmiLaunchIndex */ => {
let var_2653 =
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_ami_launch_index(var_2653);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#Instance$ImageId */ => {
let var_2654 =
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_2654);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#Instance$InstanceId */ => {
let var_2655 =
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_2655);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#Instance$InstanceType */ => {
let var_2656 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_2656);
}
,
s if s.matches("kernelId") /* KernelId com.amazonaws.ec2#Instance$KernelId */ => {
let var_2657 =
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_kernel_id(var_2657);
}
,
s if s.matches("keyName") /* KeyName com.amazonaws.ec2#Instance$KeyName */ => {
let var_2658 =
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_key_name(var_2658);
}
,
s if s.matches("launchTime") /* LaunchTime com.amazonaws.ec2#Instance$LaunchTime */ => {
let var_2659 =
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#DateTime`)"))
?
)
;
builder = builder.set_launch_time(var_2659);
}
,
s if s.matches("monitoring") /* Monitoring com.amazonaws.ec2#Instance$Monitoring */ => {
let var_2660 =
Some(
crate::xml_deser::deser_structure_crate_model_monitoring(&mut tag)
?
)
;
builder = builder.set_monitoring(var_2660);
}
,
s if s.matches("placement") /* Placement com.amazonaws.ec2#Instance$Placement */ => {
let var_2661 =
Some(
crate::xml_deser::deser_structure_crate_model_placement(&mut tag)
?
)
;
builder = builder.set_placement(var_2661);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#Instance$Platform */ => {
let var_2662 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_2662);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#Instance$PrivateDnsName */ => {
let var_2663 =
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_private_dns_name(var_2663);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#Instance$PrivateIpAddress */ => {
let var_2664 =
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_private_ip_address(var_2664);
}
,
s if s.matches("productCodes") /* ProductCodes com.amazonaws.ec2#Instance$ProductCodes */ => {
let var_2665 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_product_code_list(&mut tag)
?
)
;
builder = builder.set_product_codes(var_2665);
}
,
s if s.matches("dnsName") /* PublicDnsName com.amazonaws.ec2#Instance$PublicDnsName */ => {
let var_2666 =
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_public_dns_name(var_2666);
}
,
s if s.matches("ipAddress") /* PublicIpAddress com.amazonaws.ec2#Instance$PublicIpAddress */ => {
let var_2667 =
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_public_ip_address(var_2667);
}
,
s if s.matches("ramdiskId") /* RamdiskId com.amazonaws.ec2#Instance$RamdiskId */ => {
let var_2668 =
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_ramdisk_id(var_2668);
}
,
s if s.matches("instanceState") /* State com.amazonaws.ec2#Instance$State */ => {
let var_2669 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_state(var_2669);
}
,
s if s.matches("reason") /* StateTransitionReason com.amazonaws.ec2#Instance$StateTransitionReason */ => {
let var_2670 =
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_2670);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#Instance$SubnetId */ => {
let var_2671 =
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_subnet_id(var_2671);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#Instance$VpcId */ => {
let var_2672 =
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_vpc_id(var_2672);
}
,
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#Instance$Architecture */ => {
let var_2673 =
Some(
Result::<crate::model::ArchitectureValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ArchitectureValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_architecture(var_2673);
}
,
s if s.matches("blockDeviceMapping") /* BlockDeviceMappings com.amazonaws.ec2#Instance$BlockDeviceMappings */ => {
let var_2674 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_block_device_mapping_list(&mut tag)
?
)
;
builder = builder.set_block_device_mappings(var_2674);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#Instance$ClientToken */ => {
let var_2675 =
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_client_token(var_2675);
}
,
s if s.matches("ebsOptimized") /* EbsOptimized com.amazonaws.ec2#Instance$EbsOptimized */ => {
let var_2676 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ebs_optimized(var_2676);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#Instance$EnaSupport */ => {
let var_2677 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_ena_support(var_2677);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#Instance$Hypervisor */ => {
let var_2678 =
Some(
Result::<crate::model::HypervisorType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::HypervisorType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_hypervisor(var_2678);
}
,
s if s.matches("iamInstanceProfile") /* IamInstanceProfile com.amazonaws.ec2#Instance$IamInstanceProfile */ => {
let var_2679 =
Some(
crate::xml_deser::deser_structure_crate_model_iam_instance_profile(&mut tag)
?
)
;
builder = builder.set_iam_instance_profile(var_2679);
}
,
s if s.matches("instanceLifecycle") /* InstanceLifecycle com.amazonaws.ec2#Instance$InstanceLifecycle */ => {
let var_2680 =
Some(
Result::<crate::model::InstanceLifecycleType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycleType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_lifecycle(var_2680);
}
,
s if s.matches("elasticGpuAssociationSet") /* ElasticGpuAssociations com.amazonaws.ec2#Instance$ElasticGpuAssociations */ => {
let var_2681 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_gpu_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_associations(var_2681);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationSet") /* ElasticInferenceAcceleratorAssociations com.amazonaws.ec2#Instance$ElasticInferenceAcceleratorAssociations */ => {
let var_2682 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_elastic_inference_accelerator_association_list(&mut tag)
?
)
;
builder = builder.set_elastic_inference_accelerator_associations(var_2682);
}
,
s if s.matches("networkInterfaceSet") /* NetworkInterfaces com.amazonaws.ec2#Instance$NetworkInterfaces */ => {
let var_2683 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_network_interface_list(&mut tag)
?
)
;
builder = builder.set_network_interfaces(var_2683);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#Instance$OutpostArn */ => {
let var_2684 =
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_outpost_arn(var_2684);
}
,
s if s.matches("rootDeviceName") /* RootDeviceName com.amazonaws.ec2#Instance$RootDeviceName */ => {
let var_2685 =
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_root_device_name(var_2685);
}
,
s if s.matches("rootDeviceType") /* RootDeviceType com.amazonaws.ec2#Instance$RootDeviceType */ => {
let var_2686 =
Some(
Result::<crate::model::DeviceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DeviceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_root_device_type(var_2686);
}
,
s if s.matches("groupSet") /* SecurityGroups com.amazonaws.ec2#Instance$SecurityGroups */ => {
let var_2687 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_security_groups(var_2687);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#Instance$SourceDestCheck */ => {
let var_2688 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_2688);
}
,
s if s.matches("spotInstanceRequestId") /* SpotInstanceRequestId com.amazonaws.ec2#Instance$SpotInstanceRequestId */ => {
let var_2689 =
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_spot_instance_request_id(var_2689);
}
,
s if s.matches("sriovNetSupport") /* SriovNetSupport com.amazonaws.ec2#Instance$SriovNetSupport */ => {
let var_2690 =
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_sriov_net_support(var_2690);
}
,
s if s.matches("stateReason") /* StateReason com.amazonaws.ec2#Instance$StateReason */ => {
let var_2691 =
Some(
crate::xml_deser::deser_structure_crate_model_state_reason(&mut tag)
?
)
;
builder = builder.set_state_reason(var_2691);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#Instance$Tags */ => {
let var_2692 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2692);
}
,
s if s.matches("virtualizationType") /* VirtualizationType com.amazonaws.ec2#Instance$VirtualizationType */ => {
let var_2693 =
Some(
Result::<crate::model::VirtualizationType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::VirtualizationType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_virtualization_type(var_2693);
}
,
s if s.matches("cpuOptions") /* CpuOptions com.amazonaws.ec2#Instance$CpuOptions */ => {
let var_2694 =
Some(
crate::xml_deser::deser_structure_crate_model_cpu_options(&mut tag)
?
)
;
builder = builder.set_cpu_options(var_2694);
}
,
s if s.matches("capacityReservationId") /* CapacityReservationId com.amazonaws.ec2#Instance$CapacityReservationId */ => {
let var_2695 =
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_capacity_reservation_id(var_2695);
}
,
s if s.matches("capacityReservationSpecification") /* CapacityReservationSpecification com.amazonaws.ec2#Instance$CapacityReservationSpecification */ => {
let var_2696 =
Some(
crate::xml_deser::deser_structure_crate_model_capacity_reservation_specification_response(&mut tag)
?
)
;
builder = builder.set_capacity_reservation_specification(var_2696);
}
,
s if s.matches("hibernationOptions") /* HibernationOptions com.amazonaws.ec2#Instance$HibernationOptions */ => {
let var_2697 =
Some(
crate::xml_deser::deser_structure_crate_model_hibernation_options(&mut tag)
?
)
;
builder = builder.set_hibernation_options(var_2697);
}
,
s if s.matches("licenseSet") /* Licenses com.amazonaws.ec2#Instance$Licenses */ => {
let var_2698 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_license_list(&mut tag)
?
)
;
builder = builder.set_licenses(var_2698);
}
,
s if s.matches("metadataOptions") /* MetadataOptions com.amazonaws.ec2#Instance$MetadataOptions */ => {
let var_2699 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_metadata_options_response(&mut tag)
?
)
;
builder = builder.set_metadata_options(var_2699);
}
,
s if s.matches("enclaveOptions") /* EnclaveOptions com.amazonaws.ec2#Instance$EnclaveOptions */ => {
let var_2700 =
Some(
crate::xml_deser::deser_structure_crate_model_enclave_options(&mut tag)
?
)
;
builder = builder.set_enclave_options(var_2700);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#Instance$BootMode */ => {
let var_2701 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2701);
}
,
s if s.matches("platformDetails") /* PlatformDetails com.amazonaws.ec2#Instance$PlatformDetails */ => {
let var_2702 =
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_platform_details(var_2702);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#Instance$UsageOperation */ => {
let var_2703 =
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_usage_operation(var_2703);
}
,
s if s.matches("usageOperationUpdateTime") /* UsageOperationUpdateTime com.amazonaws.ec2#Instance$UsageOperationUpdateTime */ => {
let var_2704 =
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_usage_operation_update_time(var_2704);
}
,
s if s.matches("privateDnsNameOptions") /* PrivateDnsNameOptions com.amazonaws.ec2#Instance$PrivateDnsNameOptions */ => {
let var_2705 =
Some(
crate::xml_deser::deser_structure_crate_model_private_dns_name_options_response(&mut tag)
?
)
;
builder = builder.set_private_dns_name_options(var_2705);
}
,
s if s.matches("ipv6Address") /* Ipv6Address com.amazonaws.ec2#Instance$Ipv6Address */ => {
let var_2706 =
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_ipv6_address(var_2706);
}
,
s if s.matches("tpmSupport") /* TpmSupport com.amazonaws.ec2#Instance$TpmSupport */ => {
let var_2707 =
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_tpm_support(var_2707);
}
,
s if s.matches("maintenanceOptions") /* MaintenanceOptions com.amazonaws.ec2#Instance$MaintenanceOptions */ => {
let var_2708 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_maintenance_options(&mut tag)
?
)
;
builder = builder.set_maintenance_options(var_2708);
}
,
_ => {}
}
}
Ok(builder.build())
}