Module Values.RestoreTableFromClusterSnapshotResultSource

Creates a new table from a table in an Amazon Redshift cluster snapshot. You must create the new table within the Amazon Redshift cluster that the snapshot was taken from. You cannot use RestoreTableFromClusterSnapshot to restore a table with the same name as an existing table in an Amazon Redshift cluster. That is, you cannot overwrite an existing table in a cluster with a restored table. If you want to replace your original table with a new, restored table, then rename or drop your original table before you call RestoreTableFromClusterSnapshot. When you have renamed your original table, then you can pass the original name of the table as the NewTableName parameter value in the call to RestoreTableFromClusterSnapshot. This way, you can replace the original table with the table created from the snapshot. You can't use this operation to restore tables with interleaved sort keys.

Sourcetype restoreTableFromClusterSnapshotResult = {
  1. tableRestoreStatus : TableRestoreStatus.t option;
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. restoreTableFromClusterSnapshotResult : restoreTableFromClusterSnapshotResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `ClusterNotFoundFault of ClusterNotFoundFault.t
  2. | `ClusterSnapshotNotFoundFault of ClusterSnapshotNotFoundFault.t
  3. | `InProgressTableRestoreQuotaExceededFault of InProgressTableRestoreQuotaExceededFault.t
  4. | `InvalidClusterSnapshotStateFault of InvalidClusterSnapshotStateFault.t
  5. | `InvalidClusterStateFault of InvalidClusterStateFault.t
  6. | `InvalidTableRestoreArgumentFault of InvalidTableRestoreArgumentFault.t
  7. | `UnsupportedOperationFault of UnsupportedOperationFault.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?tableRestoreStatus:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ClusterNotFoundFault of unit | `ClusterSnapshotNotFoundFault of unit | `InProgressTableRestoreQuotaExceededFault of unit | `InvalidClusterSnapshotStateFault of unit | `InvalidClusterStateFault of unit | `InvalidTableRestoreArgumentFault of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationFault of unit ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ClusterNotFoundFault of unit | `ClusterSnapshotNotFoundFault of unit | `InProgressTableRestoreQuotaExceededFault of unit | `InvalidClusterSnapshotStateFault of unit | `InvalidClusterStateFault of unit | `InvalidTableRestoreArgumentFault of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationFault of unit ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `Long of LongOptional.t | `String of String_.t | `Timestamp of TStamp.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t