Struct aws_sdk_ec2::input::ModifyIpamResourceCidrInput
source · #[non_exhaustive]pub struct ModifyIpamResourceCidrInput { /* private fields */ }
Implementations§
source§impl ModifyIpamResourceCidrInput
impl ModifyIpamResourceCidrInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyIpamResourceCidr, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyIpamResourceCidr, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyIpamResourceCidr
>
Examples found in repository?
src/client.rs (line 66172)
66158 66159 66160 66161 66162 66163 66164 66165 66166 66167 66168 66169 66170 66171 66172 66173 66174 66175 66176 66177 66178 66179 66180 66181 66182 66183 66184 66185 66186 66187 66188 66189 66190 66191 66192 66193 66194 66195 66196 66197 66198 66199 66200
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyIpamResourceCidr,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyIpamResourceCidrError>,
> {
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::ModifyIpamResourceCidrOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyIpamResourceCidrError>,
> {
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 ModifyIpamResourceCidrInput
.
source§impl ModifyIpamResourceCidrInput
impl ModifyIpamResourceCidrInput
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 resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The ID of the resource you want to modify.
sourcepub fn resource_cidr(&self) -> Option<&str>
pub fn resource_cidr(&self) -> Option<&str>
The CIDR of the resource you want to modify.
sourcepub fn resource_region(&self) -> Option<&str>
pub fn resource_region(&self) -> Option<&str>
The Amazon Web Services Region of the resource you want to modify.
sourcepub fn current_ipam_scope_id(&self) -> Option<&str>
pub fn current_ipam_scope_id(&self) -> Option<&str>
The ID of the current scope that the resource CIDR is in.
sourcepub fn destination_ipam_scope_id(&self) -> Option<&str>
pub fn destination_ipam_scope_id(&self) -> Option<&str>
The ID of the scope you want to transfer the resource CIDR to.
Trait Implementations§
source§impl Clone for ModifyIpamResourceCidrInput
impl Clone for ModifyIpamResourceCidrInput
source§fn clone(&self) -> ModifyIpamResourceCidrInput
fn clone(&self) -> ModifyIpamResourceCidrInput
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