public void RedshiftCreateClusterSnapshot() { #region to-create-a-new-cluster-snapshot-1482180269983 var response = client.CreateClusterSnapshot(new CreateClusterSnapshotRequest { ClusterIdentifier = "mycluster", SnapshotIdentifier = "my-snapshot-id" }); #endregion }
private Amazon.Redshift.Model.CreateClusterSnapshotResponse CallAWSServiceOperation(IAmazonRedshift client, Amazon.Redshift.Model.CreateClusterSnapshotRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Redshift", "CreateClusterSnapshot"); try { #if DESKTOP return(client.CreateClusterSnapshot(request)); #elif CORECLR return(client.CreateClusterSnapshotAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }