Struct aws_sdk_ec2::input::ModifyReservedInstancesInput
source · #[non_exhaustive]pub struct ModifyReservedInstancesInput { /* private fields */ }
Expand description
Contains the parameters for ModifyReservedInstances.
Implementations§
source§impl ModifyReservedInstancesInput
impl ModifyReservedInstancesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyReservedInstances, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyReservedInstances, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyReservedInstances
>
Examples found in repository?
src/client.rs (line 67103)
67089 67090 67091 67092 67093 67094 67095 67096 67097 67098 67099 67100 67101 67102 67103 67104 67105 67106 67107 67108 67109 67110 67111 67112 67113 67114 67115 67116 67117 67118 67119 67120 67121 67122 67123 67124 67125 67126 67127 67128 67129 67130 67131
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyReservedInstances,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyReservedInstancesError>,
> {
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::ModifyReservedInstancesOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyReservedInstancesError>,
> {
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 ModifyReservedInstancesInput
.
source§impl ModifyReservedInstancesInput
impl ModifyReservedInstancesInput
sourcepub fn reserved_instances_ids(&self) -> Option<&[String]>
pub fn reserved_instances_ids(&self) -> Option<&[String]>
The IDs of the Reserved Instances to modify.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
sourcepub fn target_configurations(&self) -> Option<&[ReservedInstancesConfiguration]>
pub fn target_configurations(&self) -> Option<&[ReservedInstancesConfiguration]>
The configuration settings for the Reserved Instances to modify.
Trait Implementations§
source§impl Clone for ModifyReservedInstancesInput
impl Clone for ModifyReservedInstancesInput
source§fn clone(&self) -> ModifyReservedInstancesInput
fn clone(&self) -> ModifyReservedInstancesInput
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