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 following are valid values:
-
prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide. -
explicit
: You manually assign the IP addresses to resources that reside in your subnet.
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 following are valid values:
-
prefix
: The Amazon EC2 Prefix Delegation feature assigns the IP addresses to network interfaces that are associated with an instance. For information about Prefix Delegation, see Prefix Delegation for Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide. -
explicit
: You manually assign the IP addresses to resources that reside in your subnet.
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) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to assign to the subnet CIDR reservation.
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<CreateSubnetCidrReservationInput> for CreateSubnetCidrReservationInput
impl PartialEq<CreateSubnetCidrReservationInput> 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 ==
.