#[non_exhaustive]pub struct RebootCacheClusterInput { /* private fields */ }
Expand description
Represents the input of a RebootCacheCluster
operation.
Implementations§
source§impl RebootCacheClusterInput
impl RebootCacheClusterInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RebootCacheCluster, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RebootCacheCluster, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RebootCacheCluster
>
Examples found in repository?
src/client.rs (line 10110)
10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RebootCacheCluster,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RebootCacheClusterError>,
> {
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::RebootCacheClusterOutput,
aws_smithy_http::result::SdkError<crate::error::RebootCacheClusterError>,
> {
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 RebootCacheClusterInput
.
source§impl RebootCacheClusterInput
impl RebootCacheClusterInput
sourcepub fn cache_cluster_id(&self) -> Option<&str>
pub fn cache_cluster_id(&self) -> Option<&str>
The cluster identifier. This parameter is stored as a lowercase string.
sourcepub fn cache_node_ids_to_reboot(&self) -> Option<&[String]>
pub fn cache_node_ids_to_reboot(&self) -> Option<&[String]>
A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.
Trait Implementations§
source§impl Clone for RebootCacheClusterInput
impl Clone for RebootCacheClusterInput
source§fn clone(&self) -> RebootCacheClusterInput
fn clone(&self) -> RebootCacheClusterInput
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