Struct aws_sdk_elasticache::input::StartMigrationInput
source · #[non_exhaustive]pub struct StartMigrationInput { /* private fields */ }
Implementations§
source§impl StartMigrationInput
impl StartMigrationInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartMigration, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartMigration, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartMigration
>
Examples found in repository?
src/client.rs (line 10508)
10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartMigration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartMigrationError>,
> {
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::StartMigrationOutput,
aws_smithy_http::result::SdkError<crate::error::StartMigrationError>,
> {
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 StartMigrationInput
.
source§impl StartMigrationInput
impl StartMigrationInput
sourcepub fn replication_group_id(&self) -> Option<&str>
pub fn replication_group_id(&self) -> Option<&str>
The ID of the replication group to which data should be migrated.
sourcepub fn customer_node_endpoint_list(&self) -> Option<&[CustomerNodeEndpoint]>
pub fn customer_node_endpoint_list(&self) -> Option<&[CustomerNodeEndpoint]>
List of endpoints from which data should be migrated. For Redis (cluster mode disabled), list should have only one element.
Trait Implementations§
source§impl Clone for StartMigrationInput
impl Clone for StartMigrationInput
source§fn clone(&self) -> StartMigrationInput
fn clone(&self) -> StartMigrationInput
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