Struct aws_sdk_elasticache::input::TestFailoverInput
source · #[non_exhaustive]pub struct TestFailoverInput { /* private fields */ }
Implementations§
source§impl TestFailoverInput
impl TestFailoverInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestFailover, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<TestFailover, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<TestFailover
>
Examples found in repository?
src/client.rs (line 10639)
10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::TestFailover,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::TestFailoverError>,
> {
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::TestFailoverOutput,
aws_smithy_http::result::SdkError<crate::error::TestFailoverError>,
> {
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 TestFailoverInput
.
source§impl TestFailoverInput
impl TestFailoverInput
sourcepub fn replication_group_id(&self) -> Option<&str>
pub fn replication_group_id(&self) -> Option<&str>
The name of the replication group (console: cluster) whose automatic failover is being tested by this operation.
sourcepub fn node_group_id(&self) -> Option<&str>
pub fn node_group_id(&self) -> Option<&str>
The name of the node group (called shard in the console) in this replication group on which automatic failover is to be tested. You may test automatic failover on up to 5 node groups in any rolling 24-hour period.
Trait Implementations§
source§impl Clone for TestFailoverInput
impl Clone for TestFailoverInput
source§fn clone(&self) -> TestFailoverInput
fn clone(&self) -> TestFailoverInput
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