Struct aws_sdk_ec2::input::ProvisionIpamPoolCidrInput
source · #[non_exhaustive]pub struct ProvisionIpamPoolCidrInput { /* private fields */ }
Implementations§
source§impl ProvisionIpamPoolCidrInput
impl ProvisionIpamPoolCidrInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ProvisionIpamPoolCidr, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ProvisionIpamPoolCidr, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ProvisionIpamPoolCidr
>
Examples found in repository?
src/client.rs (line 71265)
71251 71252 71253 71254 71255 71256 71257 71258 71259 71260 71261 71262 71263 71264 71265 71266 71267 71268 71269 71270 71271 71272 71273 71274 71275 71276 71277 71278 71279 71280 71281 71282 71283 71284 71285 71286 71287 71288 71289 71290 71291 71292 71293
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ProvisionIpamPoolCidr,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ProvisionIpamPoolCidrError>,
> {
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::ProvisionIpamPoolCidrOutput,
aws_smithy_http::result::SdkError<crate::error::ProvisionIpamPoolCidrError>,
> {
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 ProvisionIpamPoolCidrInput
.
source§impl ProvisionIpamPoolCidrInput
impl ProvisionIpamPoolCidrInput
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 to which you want to assign a CIDR.
A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option applies to public pools only.
Trait Implementations§
source§impl Clone for ProvisionIpamPoolCidrInput
impl Clone for ProvisionIpamPoolCidrInput
source§fn clone(&self) -> ProvisionIpamPoolCidrInput
fn clone(&self) -> ProvisionIpamPoolCidrInput
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