Struct aws_sdk_ec2::input::AllocateIpamPoolCidrInput
source · #[non_exhaustive]pub struct AllocateIpamPoolCidrInput { /* private fields */ }
Implementations§
source§impl AllocateIpamPoolCidrInput
impl AllocateIpamPoolCidrInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AllocateIpamPoolCidr, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AllocateIpamPoolCidr, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AllocateIpamPoolCidr
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AllocateIpamPoolCidrInput
.
source§impl AllocateIpamPoolCidrInput
impl AllocateIpamPoolCidrInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
A check for 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 ipam_pool_id(&self) -> Option<&str>
pub fn ipam_pool_id(&self) -> Option<&str>
The ID of the IPAM pool from which you would like to allocate a CIDR.
sourcepub fn cidr(&self) -> Option<&str>
pub fn cidr(&self) -> Option<&str>
The CIDR you would like to allocate from the IPAM pool. Note the following:
-
If there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
-
If the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.
Possible values: Any available IPv4 or IPv6 CIDR.
sourcepub fn netmask_length(&self) -> Option<i32>
pub fn netmask_length(&self) -> Option<i32>
The netmask length of the CIDR you would like to allocate from the IPAM pool. Note the following:
-
If there is no DefaultNetmaskLength allocation rule set on the pool, you must specify either the NetmaskLength or the CIDR.
-
If the DefaultNetmaskLength allocation rule is set on the pool, you can specify either the NetmaskLength or the CIDR and the DefaultNetmaskLength allocation rule will be ignored.
Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the allocation.
sourcepub fn preview_next_cidr(&self) -> Option<bool>
pub fn preview_next_cidr(&self) -> Option<bool>
A preview of the next available CIDR in a pool.
sourcepub fn disallowed_cidrs(&self) -> Option<&[String]>
pub fn disallowed_cidrs(&self) -> Option<&[String]>
Exclude a particular CIDR range from being returned by the pool. Disallowed CIDRs are only allowed if using netmask length for allocation.
Trait Implementations§
source§impl Clone for AllocateIpamPoolCidrInput
impl Clone for AllocateIpamPoolCidrInput
source§fn clone(&self) -> AllocateIpamPoolCidrInput
fn clone(&self) -> AllocateIpamPoolCidrInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AllocateIpamPoolCidrInput
impl Debug for AllocateIpamPoolCidrInput
source§impl PartialEq<AllocateIpamPoolCidrInput> for AllocateIpamPoolCidrInput
impl PartialEq<AllocateIpamPoolCidrInput> for AllocateIpamPoolCidrInput
source§fn eq(&self, other: &AllocateIpamPoolCidrInput) -> bool
fn eq(&self, other: &AllocateIpamPoolCidrInput) -> bool
self
and other
values to be equal, and is used
by ==
.