Struct aws_sdk_ec2::model::IpamResourceCidr
source · #[non_exhaustive]pub struct IpamResourceCidr { /* private fields */ }
Expand description
The CIDR for an IPAM resource.
Implementations§
source§impl IpamResourceCidr
impl IpamResourceCidr
sourcepub fn ipam_scope_id(&self) -> Option<&str>
pub fn ipam_scope_id(&self) -> Option<&str>
The scope ID for an IPAM resource.
sourcepub fn ipam_pool_id(&self) -> Option<&str>
pub fn ipam_pool_id(&self) -> Option<&str>
The pool ID for an IPAM resource.
sourcepub fn resource_region(&self) -> Option<&str>
pub fn resource_region(&self) -> Option<&str>
The Amazon Web Services Region for an IPAM resource.
sourcepub fn resource_owner_id(&self) -> Option<&str>
pub fn resource_owner_id(&self) -> Option<&str>
The Amazon Web Services account number of the owner of an IPAM resource.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The ID of an IPAM resource.
sourcepub fn resource_name(&self) -> Option<&str>
pub fn resource_name(&self) -> Option<&str>
The name of an IPAM resource.
sourcepub fn resource_cidr(&self) -> Option<&str>
pub fn resource_cidr(&self) -> Option<&str>
The CIDR for an IPAM resource.
sourcepub fn resource_type(&self) -> Option<&IpamResourceType>
pub fn resource_type(&self) -> Option<&IpamResourceType>
The type of IPAM resource.
The tags for an IPAM resource.
sourcepub fn ip_usage(&self) -> Option<f64>
pub fn ip_usage(&self) -> Option<f64>
The percentage of IP address space in use. To convert the decimal to a percentage, multiply the decimal by 100. Note the following:
-
For a resources that are VPCs, this is the percentage of IP address space in the VPC that's taken up by subnet CIDRs.
-
For resources that are subnets, if the subnet has an IPv4 CIDR provisioned to it, this is the percentage of IPv4 address space in the subnet that's in use. If the subnet has an IPv6 CIDR provisioned to it, the percentage of IPv6 address space in use is not represented. The percentage of IPv6 address space in use cannot currently be calculated.
-
For resources that are public IPv4 pools, this is the percentage of IP address space in the pool that's been allocated to Elastic IP addresses (EIPs).
sourcepub fn compliance_status(&self) -> Option<&IpamComplianceStatus>
pub fn compliance_status(&self) -> Option<&IpamComplianceStatus>
The compliance status of the IPAM resource. For more information on compliance statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn management_state(&self) -> Option<&IpamManagementState>
pub fn management_state(&self) -> Option<&IpamManagementState>
The management state of the resource. For more information about management states, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn overlap_status(&self) -> Option<&IpamOverlapStatus>
pub fn overlap_status(&self) -> Option<&IpamOverlapStatus>
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.
source§impl IpamResourceCidr
impl IpamResourceCidr
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IpamResourceCidr
.
Examples found in repository?
37598 37599 37600 37601 37602 37603 37604 37605 37606 37607 37608 37609 37610 37611 37612 37613 37614 37615 37616 37617 37618 37619 37620 37621 37622 37623 37624 37625 37626 37627 37628 37629 37630 37631 37632 37633 37634 37635 37636 37637 37638 37639 37640 37641 37642 37643 37644 37645 37646 37647 37648 37649 37650 37651 37652 37653 37654 37655 37656 37657 37658 37659 37660 37661 37662 37663 37664 37665 37666 37667 37668 37669 37670 37671 37672 37673 37674 37675 37676 37677 37678 37679 37680 37681 37682 37683 37684 37685 37686 37687 37688 37689 37690 37691 37692 37693 37694 37695 37696 37697 37698 37699 37700 37701 37702 37703 37704 37705 37706 37707 37708 37709 37710 37711 37712 37713 37714 37715 37716 37717 37718 37719 37720 37721 37722 37723 37724 37725 37726 37727 37728 37729 37730 37731 37732 37733 37734 37735 37736 37737 37738 37739 37740 37741 37742 37743 37744 37745 37746 37747 37748 37749 37750 37751 37752 37753 37754 37755 37756 37757 37758 37759 37760 37761 37762 37763 37764 37765 37766 37767 37768 37769 37770 37771 37772 37773 37774 37775 37776 37777 37778 37779 37780 37781 37782 37783 37784 37785 37786 37787 37788 37789 37790 37791 37792 37793 37794 37795 37796 37797 37798 37799 37800 37801 37802 37803 37804 37805 37806 37807
pub fn deser_structure_crate_model_ipam_resource_cidr(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamResourceCidr, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamResourceCidr::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ipamId") /* IpamId com.amazonaws.ec2#IpamResourceCidr$IpamId */ => {
let var_1571 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_ipam_id(var_1571);
}
,
s if s.matches("ipamScopeId") /* IpamScopeId com.amazonaws.ec2#IpamResourceCidr$IpamScopeId */ => {
let var_1572 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_ipam_scope_id(var_1572);
}
,
s if s.matches("ipamPoolId") /* IpamPoolId com.amazonaws.ec2#IpamResourceCidr$IpamPoolId */ => {
let var_1573 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_ipam_pool_id(var_1573);
}
,
s if s.matches("resourceRegion") /* ResourceRegion com.amazonaws.ec2#IpamResourceCidr$ResourceRegion */ => {
let var_1574 =
Some(
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_1574);
}
,
s if s.matches("resourceOwnerId") /* ResourceOwnerId com.amazonaws.ec2#IpamResourceCidr$ResourceOwnerId */ => {
let var_1575 =
Some(
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_1575);
}
,
s if s.matches("resourceId") /* ResourceId com.amazonaws.ec2#IpamResourceCidr$ResourceId */ => {
let var_1576 =
Some(
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_1576);
}
,
s if s.matches("resourceName") /* ResourceName com.amazonaws.ec2#IpamResourceCidr$ResourceName */ => {
let var_1577 =
Some(
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_1577);
}
,
s if s.matches("resourceCidr") /* ResourceCidr com.amazonaws.ec2#IpamResourceCidr$ResourceCidr */ => {
let var_1578 =
Some(
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_1578);
}
,
s if s.matches("resourceType") /* ResourceType com.amazonaws.ec2#IpamResourceCidr$ResourceType */ => {
let var_1579 =
Some(
Result::<crate::model::IpamResourceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamResourceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_resource_type(var_1579);
}
,
s if s.matches("resourceTagSet") /* ResourceTags com.amazonaws.ec2#IpamResourceCidr$ResourceTags */ => {
let var_1580 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_ipam_resource_tag_list(&mut tag)
?
)
;
builder = builder.set_resource_tags(var_1580);
}
,
s if s.matches("ipUsage") /* IpUsage com.amazonaws.ec2#IpamResourceCidr$IpUsage */ => {
let var_1581 =
Some(
{
<f64 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 (double: `com.amazonaws.ec2#BoxedDouble`)"))
}
?
)
;
builder = builder.set_ip_usage(var_1581);
}
,
s if s.matches("complianceStatus") /* ComplianceStatus com.amazonaws.ec2#IpamResourceCidr$ComplianceStatus */ => {
let var_1582 =
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_compliance_status(var_1582);
}
,
s if s.matches("managementState") /* ManagementState com.amazonaws.ec2#IpamResourceCidr$ManagementState */ => {
let var_1583 =
Some(
Result::<crate::model::IpamManagementState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamManagementState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_management_state(var_1583);
}
,
s if s.matches("overlapStatus") /* OverlapStatus com.amazonaws.ec2#IpamResourceCidr$OverlapStatus */ => {
let var_1584 =
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_overlap_status(var_1584);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#IpamResourceCidr$VpcId */ => {
let var_1585 =
Some(
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_1585);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for IpamResourceCidr
impl Clone for IpamResourceCidr
source§fn clone(&self) -> IpamResourceCidr
fn clone(&self) -> IpamResourceCidr
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more