public void NeptuneDeleteDBInstance() { #region delete-db-instance-4412e650-949c-488a-b32a-7d3038ebccc4 var response = client.DeleteDBInstance(new DeleteDBInstanceRequest { DBInstanceIdentifier = "mymysqlinstance", SkipFinalSnapshot = true }); DBInstance dbInstance = response.DBInstance; #endregion }
private Amazon.Neptune.Model.DeleteDBInstanceResponse CallAWSServiceOperation(IAmazonNeptune client, Amazon.Neptune.Model.DeleteDBInstanceRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Neptune", "DeleteDBInstance"); try { #if DESKTOP return(client.DeleteDBInstance(request)); #elif CORECLR return(client.DeleteDBInstanceAsync(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; } }