Struct aws_sdk_ec2::operation::create_subnet_cidr_reservation::CreateSubnetCidrReservationInput
source · #[non_exhaustive]pub struct CreateSubnetCidrReservationInput {
pub subnet_id: Option<String>,
pub cidr: Option<String>,
pub reservation_type: Option<SubnetCidrReservationType>,
pub description: Option<String>,
pub dry_run: Option<bool>,
pub tag_specifications: Option<Vec<TagSpecification>>,
}
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.subnet_id: Option<String>
The ID of the subnet.
cidr: Option<String>
The IPv4 or IPV6 CIDR range to reserve.
reservation_type: Option<SubnetCidrReservationType>
The type of reservation. The reservation type determines how the reserved IP addresses are assigned to resources.
-
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces. -
explicit
- You assign the reserved IP addresses to network interfaces.
description: Option<String>
The description to assign to the subnet CIDR reservation.
dry_run: Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
tag_specifications: Option<Vec<TagSpecification>>
The tags to assign to the subnet CIDR reservation.
Implementations§
source§impl CreateSubnetCidrReservationInput
impl CreateSubnetCidrReservationInput
sourcepub fn reservation_type(&self) -> Option<&SubnetCidrReservationType>
pub fn reservation_type(&self) -> Option<&SubnetCidrReservationType>
The type of reservation. The reservation type determines how the reserved IP addresses are assigned to resources.
-
prefix
- Amazon Web Services assigns the reserved IP addresses to network interfaces. -
explicit
- You assign the reserved IP addresses to network interfaces.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description to assign to the subnet CIDR reservation.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn tag_specifications(&self) -> &[TagSpecification]
pub fn tag_specifications(&self) -> &[TagSpecification]
The tags to assign to the subnet CIDR reservation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tag_specifications.is_none()
.
source§impl CreateSubnetCidrReservationInput
impl CreateSubnetCidrReservationInput
sourcepub fn builder() -> CreateSubnetCidrReservationInputBuilder
pub fn builder() -> CreateSubnetCidrReservationInputBuilder
Creates a new builder-style object to manufacture CreateSubnetCidrReservationInput
.
Trait Implementations§
source§impl Clone for CreateSubnetCidrReservationInput
impl Clone for CreateSubnetCidrReservationInput
source§fn clone(&self) -> CreateSubnetCidrReservationInput
fn clone(&self) -> CreateSubnetCidrReservationInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for CreateSubnetCidrReservationInput
impl PartialEq for CreateSubnetCidrReservationInput
source§fn eq(&self, other: &CreateSubnetCidrReservationInput) -> bool
fn eq(&self, other: &CreateSubnetCidrReservationInput) -> bool
self
and other
values to be equal, and is used
by ==
.