use super::*;
#[derive(Debug, Args)]
pub struct CompleteSnapshot {
#[arg(long)]
snapshot_id: String,
#[arg(long)]
changed_block_count: i32,
}
impl CompleteSnapshot {
pub(crate) async fn execute(self, config: &Config) -> EbsResult {
let status = config
.ebs()
.complete_snapshot()
.snapshot_id(self.snapshot_id)
.changed_blocks_count(self.changed_block_count)
.send()
.await?
.status;
Ok(Box::new(status))
}
}