Struct aws_sdk_ec2::types::IpamResourceCidr
source · #[non_exhaustive]pub struct IpamResourceCidr {Show 15 fields
pub ipam_id: Option<String>,
pub ipam_scope_id: Option<String>,
pub ipam_pool_id: Option<String>,
pub resource_region: Option<String>,
pub resource_owner_id: Option<String>,
pub resource_id: Option<String>,
pub resource_name: Option<String>,
pub resource_cidr: Option<String>,
pub resource_type: Option<IpamResourceType>,
pub resource_tags: Option<Vec<IpamResourceTag>>,
pub ip_usage: Option<f64>,
pub compliance_status: Option<IpamComplianceStatus>,
pub management_state: Option<IpamManagementState>,
pub overlap_status: Option<IpamOverlapStatus>,
pub vpc_id: Option<String>,
}
Expand description
The CIDR for an IPAM resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.ipam_id: Option<String>
The IPAM ID for an IPAM resource.
ipam_scope_id: Option<String>
The scope ID for an IPAM resource.
ipam_pool_id: Option<String>
The pool ID for an IPAM resource.
resource_region: Option<String>
The Amazon Web Services Region for an IPAM resource.
resource_owner_id: Option<String>
The Amazon Web Services account number of the owner of an IPAM resource.
resource_id: Option<String>
The ID of an IPAM resource.
resource_name: Option<String>
The name of an IPAM resource.
resource_cidr: Option<String>
The CIDR for an IPAM resource.
resource_type: Option<IpamResourceType>
The type of IPAM resource.
The tags for an IPAM resource.
ip_usage: 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 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).
compliance_status: 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.
management_state: 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.
overlap_status: 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.
vpc_id: Option<String>
The ID of a VPC.
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 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() -> IpamResourceCidrBuilder
pub fn builder() -> IpamResourceCidrBuilder
Creates a new builder-style object to manufacture IpamResourceCidr
.
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 moresource§impl Debug for IpamResourceCidr
impl Debug for IpamResourceCidr
source§impl PartialEq<IpamResourceCidr> for IpamResourceCidr
impl PartialEq<IpamResourceCidr> for IpamResourceCidr
source§fn eq(&self, other: &IpamResourceCidr) -> bool
fn eq(&self, other: &IpamResourceCidr) -> bool
self
and other
values to be equal, and is used
by ==
.