Struct aws_sdk_ec2::client::fluent_builders::ModifyIpamResourceCidr
source · pub struct ModifyIpamResourceCidr { /* private fields */ }
Expand description
Fluent builder constructing a request to ModifyIpamResourceCidr
.
Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in.
For more information, see Move resource CIDRs between scopes and Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide.
Implementations§
source§impl ModifyIpamResourceCidr
impl ModifyIpamResourceCidr
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ModifyIpamResourceCidr, AwsResponseRetryClassifier>, SdkError<ModifyIpamResourceCidrError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ModifyIpamResourceCidr, AwsResponseRetryClassifier>, SdkError<ModifyIpamResourceCidrError>>
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<ModifyIpamResourceCidrOutput, SdkError<ModifyIpamResourceCidrError>>
pub async fn send(
self
) -> Result<ModifyIpamResourceCidrOutput, SdkError<ModifyIpamResourceCidrError>>
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 resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The ID of the resource you want to modify.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The ID of the resource you want to modify.
sourcepub fn resource_cidr(self, input: impl Into<String>) -> Self
pub fn resource_cidr(self, input: impl Into<String>) -> Self
The CIDR of the resource you want to modify.
sourcepub fn set_resource_cidr(self, input: Option<String>) -> Self
pub fn set_resource_cidr(self, input: Option<String>) -> Self
The CIDR of the resource you want to modify.
sourcepub fn resource_region(self, input: impl Into<String>) -> Self
pub fn resource_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region of the resource you want to modify.
sourcepub fn set_resource_region(self, input: Option<String>) -> Self
pub fn set_resource_region(self, input: Option<String>) -> Self
The Amazon Web Services Region of the resource you want to modify.
sourcepub fn current_ipam_scope_id(self, input: impl Into<String>) -> Self
pub fn current_ipam_scope_id(self, input: impl Into<String>) -> Self
The ID of the current scope that the resource CIDR is in.
sourcepub fn set_current_ipam_scope_id(self, input: Option<String>) -> Self
pub fn set_current_ipam_scope_id(self, input: Option<String>) -> Self
The ID of the current scope that the resource CIDR is in.
sourcepub fn destination_ipam_scope_id(self, input: impl Into<String>) -> Self
pub fn destination_ipam_scope_id(self, input: impl Into<String>) -> Self
The ID of the scope you want to transfer the resource CIDR to.
sourcepub fn set_destination_ipam_scope_id(self, input: Option<String>) -> Self
pub fn set_destination_ipam_scope_id(self, input: Option<String>) -> Self
The ID of the scope you want to transfer the resource CIDR to.
sourcepub fn monitored(self, input: bool) -> Self
pub fn monitored(self, input: bool) -> Self
Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.
sourcepub fn set_monitored(self, input: Option<bool>) -> Self
pub fn set_monitored(self, input: Option<bool>) -> Self
Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.
Trait Implementations§
source§impl Clone for ModifyIpamResourceCidr
impl Clone for ModifyIpamResourceCidr
source§fn clone(&self) -> ModifyIpamResourceCidr
fn clone(&self) -> ModifyIpamResourceCidr
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more