Struct aws_sdk_ec2::client::fluent_builders::ModifyIpamPool
source · pub struct ModifyIpamPool { /* private fields */ }
Expand description
Fluent builder constructing a request to ModifyIpamPool
.
Modify the configurations of an IPAM pool.
For more information, see Modify a pool in the Amazon VPC IPAM User Guide.
Implementations§
source§impl ModifyIpamPool
impl ModifyIpamPool
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ModifyIpamPool, AwsResponseRetryClassifier>, SdkError<ModifyIpamPoolError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ModifyIpamPool, AwsResponseRetryClassifier>, SdkError<ModifyIpamPoolError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ModifyIpamPoolOutput, SdkError<ModifyIpamPoolError>>
pub async fn send(
self
) -> Result<ModifyIpamPoolOutput, SdkError<ModifyIpamPoolError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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, input: impl Into<String>) -> Self
pub fn ipam_pool_id(self, input: impl Into<String>) -> Self
The ID of the IPAM pool you want to modify.
sourcepub fn set_ipam_pool_id(self, input: Option<String>) -> Self
pub fn set_ipam_pool_id(self, input: Option<String>) -> Self
The ID of the IPAM pool you want to modify.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the IPAM pool you want to modify.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the IPAM pool you want to modify.
sourcepub fn auto_import(self, input: bool) -> Self
pub fn auto_import(self, input: bool) -> Self
If true, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.
A locale must be set on the pool for this feature to work.
sourcepub fn set_auto_import(self, input: Option<bool>) -> Self
pub fn set_auto_import(self, input: Option<bool>) -> Self
If true, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.
A locale must be set on the pool for this feature to work.
sourcepub fn allocation_min_netmask_length(self, input: i32) -> Self
pub fn allocation_min_netmask_length(self, input: i32) -> Self
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask length must be less than the maximum netmask length.
sourcepub fn set_allocation_min_netmask_length(self, input: Option<i32>) -> Self
pub fn set_allocation_min_netmask_length(self, input: Option<i32>) -> Self
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask length must be less than the maximum netmask length.
sourcepub fn allocation_max_netmask_length(self, input: i32) -> Self
pub fn allocation_max_netmask_length(self, input: i32) -> Self
The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask length must be greater than the minimum netmask length.
sourcepub fn set_allocation_max_netmask_length(self, input: Option<i32>) -> Self
pub fn set_allocation_max_netmask_length(self, input: Option<i32>) -> Self
The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask length must be greater than the minimum netmask length.
sourcepub fn allocation_default_netmask_length(self, input: i32) -> Self
pub fn allocation_default_netmask_length(self, input: i32) -> Self
The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.
sourcepub fn set_allocation_default_netmask_length(self, input: Option<i32>) -> Self
pub fn set_allocation_default_netmask_length(self, input: Option<i32>) -> Self
The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.
sourcepub fn clear_allocation_default_netmask_length(self, input: bool) -> Self
pub fn clear_allocation_default_netmask_length(self, input: bool) -> Self
Clear the default netmask length allocation rule for this pool.
sourcepub fn set_clear_allocation_default_netmask_length(
self,
input: Option<bool>
) -> Self
pub fn set_clear_allocation_default_netmask_length(
self,
input: Option<bool>
) -> Self
Clear the default netmask length allocation rule for this pool.
Appends an item to AddAllocationResourceTags
.
To override the contents of this collection use set_add_allocation_resource_tags
.
Add tag allocation rules to a pool. For more information about allocation rules, see Create a top-level pool in the Amazon VPC IPAM User Guide.
Add tag allocation rules to a pool. For more information about allocation rules, see Create a top-level pool in the Amazon VPC IPAM User Guide.
Appends an item to RemoveAllocationResourceTags
.
To override the contents of this collection use set_remove_allocation_resource_tags
.
Remove tag allocation rules from a pool.
Remove tag allocation rules from a pool.
Trait Implementations§
source§impl Clone for ModifyIpamPool
impl Clone for ModifyIpamPool
source§fn clone(&self) -> ModifyIpamPool
fn clone(&self) -> ModifyIpamPool
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more