#[non_exhaustive]pub struct DescribeReservedInstancesModificationsInput { /* private fields */ }
Expand description
Contains the parameters for DescribeReservedInstancesModifications.
Implementations§
source§impl DescribeReservedInstancesModificationsInput
impl DescribeReservedInstancesModificationsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeReservedInstancesModifications, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeReservedInstancesModifications, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeReservedInstancesModifications
>
Examples found in repository?
44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeReservedInstancesModifications,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::DescribeReservedInstancesModificationsError,
>,
> {
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::DescribeReservedInstancesModificationsOutput,
aws_smithy_http::result::SdkError<
crate::error::DescribeReservedInstancesModificationsError,
>,
> {
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
}
More examples
7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101
pub fn send(
self,
) -> impl tokio_stream::Stream<
Item = std::result::Result<
crate::output::DescribeReservedInstancesModificationsOutput,
aws_smithy_http::result::SdkError<
crate::error::DescribeReservedInstancesModificationsError,
>,
>,
> + Unpin {
// Move individual fields out of self for the borrow checker
let builder = self.builder;
let handle = self.handle;
aws_smithy_async::future::fn_stream::FnStream::new(move |tx| {
Box::pin(async move {
// Build the input for the first time. If required fields are missing, this is where we'll produce an early error.
let mut input = match builder
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)
{
Ok(input) => input,
Err(e) => {
let _ = tx.send(Err(e)).await;
return;
}
};
loop {
let op = match input
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)
{
Ok(op) => op,
Err(e) => {
let _ = tx.send(Err(e)).await;
return;
}
};
let resp = handle.client.call(op).await;
// If the input member is None or it was an error
let done = match resp {
Ok(ref resp) => {
let new_token = crate::lens::reflens_structure_crate_output_describe_reserved_instances_modifications_output_next_token(resp);
let is_empty = new_token.map(|token| token.is_empty()).unwrap_or(true);
if !is_empty
&& new_token == input.next_token.as_ref()
&& self.stop_on_duplicate_token
{
true
} else {
input.next_token = new_token.cloned();
is_empty
}
}
Err(_) => true,
};
if tx.send(resp).await.is_err() {
// receiving end was dropped
return;
}
if done {
return;
}
}
})
})
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DescribeReservedInstancesModificationsInput
.
source§impl DescribeReservedInstancesModificationsInput
impl DescribeReservedInstancesModificationsInput
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
One or more filters.
-
client-token
- The idempotency token for the modification request. -
create-date
- The time when the modification request was created. -
effective-date
- The time when the modification becomes effective. -
modification-result.reserved-instances-id
- The ID for the Reserved Instances created as part of the modification request. This ID is only available when the status of the modification isfulfilled
. -
modification-result.target-configuration.availability-zone
- The Availability Zone for the new Reserved Instances. -
modification-result.target-configuration.instance-count
- The number of new Reserved Instances. -
modification-result.target-configuration.instance-type
- The instance type of the new Reserved Instances. -
modification-result.target-configuration.platform
- The network platform of the new Reserved Instances (EC2-Classic
|EC2-VPC
). -
reserved-instances-id
- The ID of the Reserved Instances modified. -
reserved-instances-modification-id
- The ID of the modification request. -
status
- The status of the Reserved Instances modification request (processing
|fulfilled
|failed
). -
status-message
- The reason for the status. -
update-date
- The time when the modification request was last updated.
sourcepub fn reserved_instances_modification_ids(&self) -> Option<&[String]>
pub fn reserved_instances_modification_ids(&self) -> Option<&[String]>
IDs for the submitted modification request.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token to retrieve the next page of results.
Trait Implementations§
source§impl Clone for DescribeReservedInstancesModificationsInput
impl Clone for DescribeReservedInstancesModificationsInput
source§fn clone(&self) -> DescribeReservedInstancesModificationsInput
fn clone(&self) -> DescribeReservedInstancesModificationsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more