Struct aws_sdk_ec2::types::IpamDiscoveredResourceCidr
source · #[non_exhaustive]pub struct IpamDiscoveredResourceCidr {
pub ipam_resource_discovery_id: Option<String>,
pub resource_region: Option<String>,
pub resource_id: Option<String>,
pub resource_owner_id: Option<String>,
pub resource_cidr: Option<String>,
pub resource_type: Option<IpamResourceType>,
pub resource_tags: Option<Vec<IpamResourceTag>>,
pub ip_usage: Option<f64>,
pub vpc_id: Option<String>,
pub sample_time: Option<DateTime>,
}
Expand description
An IPAM discovered resource CIDR. A discovered resource is a resource CIDR monitored under a resource discovery. The following resources can be discovered: VPCs, Public IPv4 pools, VPC subnets, and Elastic IP addresses. The discovered resource CIDR is the IP address range in CIDR notation that is associated with the 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_resource_discovery_id: Option<String>
The resource discovery ID.
resource_region: Option<String>
The resource Region.
resource_id: Option<String>
The resource ID.
resource_owner_id: Option<String>
The resource owner ID.
resource_cidr: Option<String>
The resource CIDR.
resource_type: Option<IpamResourceType>
The resource type.
The resource tags.
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).
vpc_id: Option<String>
The VPC ID.
sample_time: Option<DateTime>
The last successful resource discovery time.
Implementations§
source§impl IpamDiscoveredResourceCidr
impl IpamDiscoveredResourceCidr
sourcepub fn ipam_resource_discovery_id(&self) -> Option<&str>
pub fn ipam_resource_discovery_id(&self) -> Option<&str>
The resource discovery ID.
sourcepub fn resource_region(&self) -> Option<&str>
pub fn resource_region(&self) -> Option<&str>
The resource Region.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The resource ID.
sourcepub fn resource_owner_id(&self) -> Option<&str>
pub fn resource_owner_id(&self) -> Option<&str>
The resource owner ID.
sourcepub fn resource_cidr(&self) -> Option<&str>
pub fn resource_cidr(&self) -> Option<&str>
The resource CIDR.
sourcepub fn resource_type(&self) -> Option<&IpamResourceType>
pub fn resource_type(&self) -> Option<&IpamResourceType>
The resource type.
The resource tags.
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 sample_time(&self) -> Option<&DateTime>
pub fn sample_time(&self) -> Option<&DateTime>
The last successful resource discovery time.
source§impl IpamDiscoveredResourceCidr
impl IpamDiscoveredResourceCidr
sourcepub fn builder() -> IpamDiscoveredResourceCidrBuilder
pub fn builder() -> IpamDiscoveredResourceCidrBuilder
Creates a new builder-style object to manufacture IpamDiscoveredResourceCidr
.
Trait Implementations§
source§impl Clone for IpamDiscoveredResourceCidr
impl Clone for IpamDiscoveredResourceCidr
source§fn clone(&self) -> IpamDiscoveredResourceCidr
fn clone(&self) -> IpamDiscoveredResourceCidr
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IpamDiscoveredResourceCidr
impl Debug for IpamDiscoveredResourceCidr
source§impl PartialEq<IpamDiscoveredResourceCidr> for IpamDiscoveredResourceCidr
impl PartialEq<IpamDiscoveredResourceCidr> for IpamDiscoveredResourceCidr
source§fn eq(&self, other: &IpamDiscoveredResourceCidr) -> bool
fn eq(&self, other: &IpamDiscoveredResourceCidr) -> bool
self
and other
values to be equal, and is used
by ==
.