Struct aws_sdk_securityhub::model::AwsEc2SubnetDetails
source · [−]#[non_exhaustive]pub struct AwsEc2SubnetDetails {Show 13 fields
pub assign_ipv6_address_on_creation: bool,
pub availability_zone: Option<String>,
pub availability_zone_id: Option<String>,
pub available_ip_address_count: i32,
pub cidr_block: Option<String>,
pub default_for_az: bool,
pub map_public_ip_on_launch: 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: 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: 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: bool
Whether this subnet is the default subnet for the Availability Zone.
map_public_ip_on_launch: 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.
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
sourceimpl AwsEc2SubnetDetails
impl AwsEc2SubnetDetails
sourcepub fn assign_ipv6_address_on_creation(&self) -> bool
pub fn assign_ipv6_address_on_creation(&self) -> 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) -> i32
pub fn available_ip_address_count(&self) -> 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) -> bool
pub fn default_for_az(&self) -> bool
Whether this subnet is the default subnet for the Availability Zone.
sourcepub fn map_public_ip_on_launch(&self) -> bool
pub fn map_public_ip_on_launch(&self) -> 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 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
) -> Option<&[Ipv6CidrBlockAssociation]>
pub fn ipv6_cidr_block_association_set(
&self
) -> Option<&[Ipv6CidrBlockAssociation]>
The IPV6 CIDR blocks that are associated with the subnet.
sourceimpl AwsEc2SubnetDetails
impl AwsEc2SubnetDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsEc2SubnetDetails
Trait Implementations
sourceimpl Clone for AwsEc2SubnetDetails
impl Clone for AwsEc2SubnetDetails
sourcefn clone(&self) -> AwsEc2SubnetDetails
fn clone(&self) -> AwsEc2SubnetDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AwsEc2SubnetDetails
impl Debug for AwsEc2SubnetDetails
sourceimpl PartialEq<AwsEc2SubnetDetails> for AwsEc2SubnetDetails
impl PartialEq<AwsEc2SubnetDetails> for AwsEc2SubnetDetails
sourcefn eq(&self, other: &AwsEc2SubnetDetails) -> bool
fn eq(&self, other: &AwsEc2SubnetDetails) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AwsEc2SubnetDetails) -> bool
fn ne(&self, other: &AwsEc2SubnetDetails) -> bool
This method tests for !=
.
impl StructuralPartialEq for AwsEc2SubnetDetails
Auto Trait Implementations
impl RefUnwindSafe for AwsEc2SubnetDetails
impl Send for AwsEc2SubnetDetails
impl Sync for AwsEc2SubnetDetails
impl Unpin for AwsEc2SubnetDetails
impl UnwindSafe for AwsEc2SubnetDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more