public void NeptuneDeleteDBClusterSnapshot() { #region delete-db-cluster-snapshot-c67e0d95-670e-4fb5-af90-6d9a70a91b07 var response = client.DeleteDBClusterSnapshot(new DeleteDBClusterSnapshotRequest { DBClusterSnapshotIdentifier = "mydbclustersnapshot" }); DBClusterSnapshot dbClusterSnapshot = response.DBClusterSnapshot; #endregion }
private Amazon.Neptune.Model.DeleteDBClusterSnapshotResponse CallAWSServiceOperation(IAmazonNeptune client, Amazon.Neptune.Model.DeleteDBClusterSnapshotRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Neptune", "DeleteDBClusterSnapshot"); try { #if DESKTOP return(client.DeleteDBClusterSnapshot(request)); #elif CORECLR return(client.DeleteDBClusterSnapshotAsync(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; } }