async fn stop_resource(&self, cluster_id: String) -> Result<()> {
        debug!(resource = cluster_id.as_str(), "Deleting");

        if !self.dry_run {
            let req = self.client.delete_cluster(DeleteClusterMessage {
                cluster_identifier: cluster_id.clone(),
                final_cluster_snapshot_identifier: Some(cluster_id),
                final_cluster_snapshot_retention_period: Some(7), // retain for 7 days
                ..Default::default()
            });

            handle_future!(req);
        }

        Ok(())
    }
// Redshift does not have a Stop option, next closest option available is
// to delete the cluster by taking a snapshot of the cluster and then restore
// when needed.
Redshift does not have a Stop option, next closest option available is
to delete the cluster by taking a snapshot of the cluster and then restore
when needed.
Redshift does not have a Stop option next closest option available is to delete the cluster by taking a snapshot of the cluster and then restore when needed .
async fn stop_resource(&self, cluster_id: String) -> Result<()> {
        debug!(resource = cluster_id.as_str(), "Deleting");
        if !self.dry_run {
            let req = self.client.delete_cluster(DeleteClusterMessage {
                cluster_identifier: cluster_id.clone(),
                final_cluster_snapshot_identifier: Some(cluster_id),
                final_cluster_snapshot_retention_period: Some(7), // retain for 7 days
                ..Default::default()
            });
            handle_future!(req);
        }
        Ok(())
    }
async fn stop_resource ( & self , cluster_id : String ) -> Result < ( ) > { debug ! ( resource cluster_id as_str ( ) " " ) ; if ! self . dry_run { let req = self . client . delete_cluster ( DeleteClusterMessage { cluster_identifier : cluster_id . clone ( ) , final_cluster_snapshot_identifier : Some ( cluster_id ) , final_cluster_snapshot_retention_period : Some ( 7 ) , // retain for 7 days .. Default :: default ( ) } ) ; handle_future ! ( req ) ; } Ok ( ( ) ) }
Redshift does not have a Stop option, next closest option available is
to delete the cluster by taking a snapshot of the cluster and then restore
when needed.
Redshift does not have a Stop option next closest option available is to delete the cluster by taking a snapshot of the cluster and then restore when needed .
&self
cluster_id
String