#[non_exhaustive]
pub struct IpamAddressHistoryRecord { /* private fields */ }
Expand description

The historical record of a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the Amazon VPC IPAM User Guide.

Implementations§

The ID of the resource owner.

The Amazon Web Services Region of the resource.

The type of the resource.

The ID of the resource.

The CIDR of the resource.

The name of the resource.

The compliance status of a resource. For more information on compliance statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.

The overlap status of an IPAM resource. The overlap status tells you if the CIDR for a resource overlaps with another CIDR in the scope. For more information on overlap statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.

The VPC ID of the resource.

Sampled start time of the resource-to-CIDR association within the IPAM scope. Changes are picked up in periodic snapshots, so the start time may have occurred before this specific time.

Sampled end time of the resource-to-CIDR association within the IPAM scope. Changes are picked up in periodic snapshots, so the end time may have occurred before this specific time.

Creates a new builder-style object to manufacture IpamAddressHistoryRecord.

Examples found in repository?
src/xml_deser.rs (line 52442)
52438
52439
52440
52441
52442
52443
52444
52445
52446
52447
52448
52449
52450
52451
52452
52453
52454
52455
52456
52457
52458
52459
52460
52461
52462
52463
52464
52465
52466
52467
52468
52469
52470
52471
52472
52473
52474
52475
52476
52477
52478
52479
52480
52481
52482
52483
52484
52485
52486
52487
52488
52489
52490
52491
52492
52493
52494
52495
52496
52497
52498
52499
52500
52501
52502
52503
52504
52505
52506
52507
52508
52509
52510
52511
52512
52513
52514
52515
52516
52517
52518
52519
52520
52521
52522
52523
52524
52525
52526
52527
52528
52529
52530
52531
52532
52533
52534
52535
52536
52537
52538
52539
52540
52541
52542
52543
52544
52545
52546
52547
52548
52549
52550
52551
52552
52553
52554
52555
52556
52557
52558
52559
52560
52561
52562
52563
52564
52565
52566
52567
52568
52569
52570
52571
52572
52573
52574
52575
52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587
52588
52589
52590
52591
52592
52593
52594
52595
52596
52597
pub fn deser_structure_crate_model_ipam_address_history_record(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamAddressHistoryRecord, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::IpamAddressHistoryRecord::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("resourceOwnerId") /* ResourceOwnerId com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceOwnerId */ =>  {
                let var_2502 =
                    Some(
                        Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_resource_owner_id(var_2502);
            }
            ,
            s if s.matches("resourceRegion") /* ResourceRegion com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceRegion */ =>  {
                let var_2503 =
                    Some(
                        Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_resource_region(var_2503);
            }
            ,
            s if s.matches("resourceType") /* ResourceType com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceType */ =>  {
                let var_2504 =
                    Some(
                        Result::<crate::model::IpamAddressHistoryResourceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::IpamAddressHistoryResourceType::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_resource_type(var_2504);
            }
            ,
            s if s.matches("resourceId") /* ResourceId com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceId */ =>  {
                let var_2505 =
                    Some(
                        Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_resource_id(var_2505);
            }
            ,
            s if s.matches("resourceCidr") /* ResourceCidr com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceCidr */ =>  {
                let var_2506 =
                    Some(
                        Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_resource_cidr(var_2506);
            }
            ,
            s if s.matches("resourceName") /* ResourceName com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceName */ =>  {
                let var_2507 =
                    Some(
                        Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            .into()
                        )
                        ?
                    )
                ;
                builder = builder.set_resource_name(var_2507);
            }
            ,
            s if s.matches("resourceComplianceStatus") /* ResourceComplianceStatus com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceComplianceStatus */ =>  {
                let var_2508 =
                    Some(
                        Result::<crate::model::IpamComplianceStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::IpamComplianceStatus::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_resource_compliance_status(var_2508);
            }
            ,
            s if s.matches("resourceOverlapStatus") /* ResourceOverlapStatus com.amazonaws.ec2#IpamAddressHistoryRecord$ResourceOverlapStatus */ =>  {
                let var_2509 =
                    Some(
                        Result::<crate::model::IpamOverlapStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::IpamOverlapStatus::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_resource_overlap_status(var_2509);
            }
            ,
            s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#IpamAddressHistoryRecord$VpcId */ =>  {
                let var_2510 =
                    Some(
                        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_2510);
            }
            ,
            s if s.matches("sampledStartTime") /* SampledStartTime com.amazonaws.ec2#IpamAddressHistoryRecord$SampledStartTime */ =>  {
                let var_2511 =
                    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_sampled_start_time(var_2511);
            }
            ,
            s if s.matches("sampledEndTime") /* SampledEndTime com.amazonaws.ec2#IpamAddressHistoryRecord$SampledEndTime */ =>  {
                let var_2512 =
                    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_sampled_end_time(var_2512);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more