Example usage for com.amazonaws.services.redshift.model RestoreFromClusterSnapshotRequest RestoreFromClusterSnapshotRequest

List of usage examples for com.amazonaws.services.redshift.model RestoreFromClusterSnapshotRequest RestoreFromClusterSnapshotRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.redshift.model RestoreFromClusterSnapshotRequest RestoreFromClusterSnapshotRequest.

Prototype

RestoreFromClusterSnapshotRequest

Source Link

Usage

From source file:com.gs.obevo.amazon.RedshiftInstanceUtil.java

License:Apache License

private void restore(String dbInstanceIdentifier) throws Exception {
    Cluster response = client.restoreFromClusterSnapshot(new RestoreFromClusterSnapshotRequest()
            .withSnapshotIdentifier(SNAPSHOT_IDENTIFIER).withClusterIdentifier(INSTANCE_ID));
    System.out.println(response);

    describe(dbInstanceIdentifier);/*from w w w.j  av a  2 s.c  om*/
}