// Deletes a previously provisioned cluster without its final snapshot being
// created. A successful response from the web service indicates that the request
// was received correctly. Use DescribeClusters to monitor the status of the
// deletion. The delete operation cannot be canceled or reverted once submitted.
// For more information about managing clusters, go to Amazon Redshift Clusters
// (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) in
// the Amazon Redshift Cluster Management Guide. If you want to shut down the
// cluster and retain it for future use, set SkipFinalClusterSnapshot to false and
// specify a name for FinalClusterSnapshotIdentifier. You can later restore this
// snapshot to resume using the cluster. If a final cluster snapshot is requested,
// the status of the cluster will be "final-snapshot" while the snapshot is being
// taken, then it's "deleting" once Amazon Redshift begins deleting the cluster.
// For more information about managing clusters, go to Amazon Redshift Clusters
// (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html) in
// the Amazon Redshift Cluster Management Guide.
Deletes a previously provisioned cluster without its final snapshot being
created. A successful response from the web service indicates that the request
was received correctly. Use DescribeClusters to monitor the status of the
deletion. The delete operation cannot be canceled or reverted once submitted.
For more information about managing clusters, go to Amazon Redshift Clusters
in
the Amazon Redshift Cluster Management Guide. If you want to shut down the
cluster and retain it for future use, set SkipFinalClusterSnapshot to false and
specify a name for FinalClusterSnapshotIdentifier. You can later restore this
snapshot to resume using the cluster. If a final cluster snapshot is requested,
the status of the cluster will be "final-snapshot" while the snapshot is being
taken, then it's "deleting" once Amazon Redshift begins deleting the cluster.
For more information about managing clusters, go to Amazon Redshift Clusters
in
the Amazon Redshift Cluster Management Guide.
// Deletes a previously provisioned cluster without its final snapshot being // created . A successful response from the web service indicates that the request // was received correctly . Use DescribeClusters to monitor the status of the // deletion . The delete operation cannot be canceled or reverted once submitted . // For more information about managing clusters go to Amazon Redshift Clusters // ( https : // docs . aws . amazon . com / redshift / latest / mgmt / working - with - clusters . html ) in // the Amazon Redshift Cluster Management Guide . If you want to shut down the // cluster and retain it for future use set SkipFinalClusterSnapshot to false and // specify a name for FinalClusterSnapshotIdentifier . You can later restore this // snapshot to resume using the cluster . If a final cluster snapshot is requested // the status of the cluster will be " final - snapshot " while the snapshot is being // taken then it ' s " deleting " once Amazon Redshift begins deleting the cluster . // For more information about managing clusters go to Amazon Redshift Clusters // ( https : // docs . aws . amazon . com / redshift / latest / mgmt / working - with - clusters . html ) in // the Amazon Redshift Cluster Management Guide .
func (c *Client) DeleteCluster(ctx context.Context, params *DeleteClusterInput, optFns ...func(*Options)) (*DeleteClusterOutput, error) {
	if params == nil {
		params = &DeleteClusterInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DeleteCluster", params, optFns, addOperationDeleteClusterMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DeleteClusterOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DeleteCluster ( ctx context . Context , params * DeleteClusterInput , optFns ... func ( * Options ) ) ( * DeleteClusterOutput , error ) { if params == nil { params = & DeleteClusterInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDeleteClusterMiddlewares ) if err != nil { return nil , err } out := result . ( * DeleteClusterOutput ) out . ResultMetadata = metadata return out , nil }
Deletes a previously provisioned cluster without its final snapshot being
created.
Deletes a previously provisioned cluster without its final snapshot being created .