Struct aws_sdk_ec2::input::ReleaseIpamPoolAllocationInput
source · #[non_exhaustive]pub struct ReleaseIpamPoolAllocationInput { /* private fields */ }
Implementations§
source§impl ReleaseIpamPoolAllocationInput
impl ReleaseIpamPoolAllocationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReleaseIpamPoolAllocation, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReleaseIpamPoolAllocation, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ReleaseIpamPoolAllocation
>
Examples found in repository?
src/client.rs (line 73291)
73277 73278 73279 73280 73281 73282 73283 73284 73285 73286 73287 73288 73289 73290 73291 73292 73293 73294 73295 73296 73297 73298 73299 73300 73301 73302 73303 73304 73305 73306 73307 73308 73309 73310 73311 73312 73313 73314 73315 73316 73317 73318 73319
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ReleaseIpamPoolAllocation,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ReleaseIpamPoolAllocationError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ReleaseIpamPoolAllocationOutput,
aws_smithy_http::result::SdkError<crate::error::ReleaseIpamPoolAllocationError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ReleaseIpamPoolAllocationInput
.
source§impl ReleaseIpamPoolAllocationInput
impl ReleaseIpamPoolAllocationInput
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 which contains the allocation you want to release.
sourcepub fn ipam_pool_allocation_id(&self) -> Option<&str>
pub fn ipam_pool_allocation_id(&self) -> Option<&str>
The ID of the allocation.
Trait Implementations§
source§impl Clone for ReleaseIpamPoolAllocationInput
impl Clone for ReleaseIpamPoolAllocationInput
source§fn clone(&self) -> ReleaseIpamPoolAllocationInput
fn clone(&self) -> ReleaseIpamPoolAllocationInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more