public void RedshiftCopyClusterSnapshot()
        {
            #region to--creates-a-copy-of-a-snapshot-1482357194074

            var response = client.CopyClusterSnapshot(new CopyClusterSnapshotRequest
            {
                SourceSnapshotIdentifier = "rs:mycluster-2016-12-21-20-40-51",
                TargetSnapshotIdentifier = "my-saved-snapshot-cop"
            });


            #endregion
        }
Exemplo n.º 2
0
 private Amazon.Redshift.Model.CopyClusterSnapshotResponse CallAWSServiceOperation(IAmazonRedshift client, Amazon.Redshift.Model.CopyClusterSnapshotRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Redshift", "CopyClusterSnapshot");
     try
     {
         #if DESKTOP
         return(client.CopyClusterSnapshot(request));
         #elif CORECLR
         return(client.CopyClusterSnapshotAsync(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;
     }
 }