Struct aws_sdk_securityhub::types::AwsEc2SubnetDetails
source · #[non_exhaustive]pub struct AwsEc2SubnetDetails {Show 13 fields
pub assign_ipv6_address_on_creation: Option<bool>,
pub availability_zone: Option<String>,
pub availability_zone_id: Option<String>,
pub available_ip_address_count: Option<i32>,
pub cidr_block: Option<String>,
pub default_for_az: Option<bool>,
pub map_public_ip_on_launch: Option<bool>,
pub owner_id: Option<String>,
pub state: Option<String>,
pub subnet_arn: Option<String>,
pub subnet_id: Option<String>,
pub vpc_id: Option<String>,
pub ipv6_cidr_block_association_set: Option<Vec<Ipv6CidrBlockAssociation>>,
}
Expand description
Contains information about a subnet in Amazon EC2.
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.assign_ipv6_address_on_creation: Option<bool>
Whether to assign an IPV6 address to a network interface that is created in this subnet.
availability_zone: Option<String>
The Availability Zone for the subnet.
availability_zone_id: Option<String>
The identifier of the Availability Zone for the subnet.
available_ip_address_count: Option<i32>
The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.
cidr_block: Option<String>
The IPV4 CIDR block that is assigned to the subnet.
default_for_az: Option<bool>
Whether this subnet is the default subnet for the Availability Zone.
map_public_ip_on_launch: Option<bool>
Whether instances in this subnet receive a public IP address.
owner_id: Option<String>
The identifier of the Amazon Web Services account that owns the subnet.
state: Option<String>
The current state of the subnet. Valid values are available
or pending
.
subnet_arn: Option<String>
The ARN of the subnet.
subnet_id: Option<String>
The identifier of the subnet.
vpc_id: Option<String>
The identifier of the VPC that contains the subnet.
ipv6_cidr_block_association_set: Option<Vec<Ipv6CidrBlockAssociation>>
The IPV6 CIDR blocks that are associated with the subnet.
Implementations§
source§impl AwsEc2SubnetDetails
impl AwsEc2SubnetDetails
sourcepub fn assign_ipv6_address_on_creation(&self) -> Option<bool>
pub fn assign_ipv6_address_on_creation(&self) -> Option<bool>
Whether to assign an IPV6 address to a network interface that is created in this subnet.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone for the subnet.
sourcepub fn availability_zone_id(&self) -> Option<&str>
pub fn availability_zone_id(&self) -> Option<&str>
The identifier of the Availability Zone for the subnet.
sourcepub fn available_ip_address_count(&self) -> Option<i32>
pub fn available_ip_address_count(&self) -> Option<i32>
The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.
sourcepub fn cidr_block(&self) -> Option<&str>
pub fn cidr_block(&self) -> Option<&str>
The IPV4 CIDR block that is assigned to the subnet.
sourcepub fn default_for_az(&self) -> Option<bool>
pub fn default_for_az(&self) -> Option<bool>
Whether this subnet is the default subnet for the Availability Zone.
sourcepub fn map_public_ip_on_launch(&self) -> Option<bool>
pub fn map_public_ip_on_launch(&self) -> Option<bool>
Whether instances in this subnet receive a public IP address.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The identifier of the Amazon Web Services account that owns the subnet.
sourcepub fn state(&self) -> Option<&str>
pub fn state(&self) -> Option<&str>
The current state of the subnet. Valid values are available
or pending
.
sourcepub fn subnet_arn(&self) -> Option<&str>
pub fn subnet_arn(&self) -> Option<&str>
The ARN of the subnet.
sourcepub fn ipv6_cidr_block_association_set(&self) -> &[Ipv6CidrBlockAssociation]
pub fn ipv6_cidr_block_association_set(&self) -> &[Ipv6CidrBlockAssociation]
The IPV6 CIDR blocks that are associated with the subnet.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ipv6_cidr_block_association_set.is_none()
.
source§impl AwsEc2SubnetDetails
impl AwsEc2SubnetDetails
sourcepub fn builder() -> AwsEc2SubnetDetailsBuilder
pub fn builder() -> AwsEc2SubnetDetailsBuilder
Creates a new builder-style object to manufacture AwsEc2SubnetDetails
.
Trait Implementations§
source§impl Clone for AwsEc2SubnetDetails
impl Clone for AwsEc2SubnetDetails
source§fn clone(&self) -> AwsEc2SubnetDetails
fn clone(&self) -> AwsEc2SubnetDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsEc2SubnetDetails
impl Debug for AwsEc2SubnetDetails
source§impl PartialEq for AwsEc2SubnetDetails
impl PartialEq for AwsEc2SubnetDetails
source§fn eq(&self, other: &AwsEc2SubnetDetails) -> bool
fn eq(&self, other: &AwsEc2SubnetDetails) -> bool
self
and other
values to be equal, and is used
by ==
.