public void DatabaseMigrationServiceDeleteReplicationTask() { #region delete-replication-task-1481752903506 var response = client.DeleteReplicationTask(new DeleteReplicationTaskRequest { ReplicationTaskArn = "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ" }); ReplicationTask replicationTask = response.ReplicationTask; #endregion }
private Amazon.DatabaseMigrationService.Model.DeleteReplicationTaskResponse CallAWSServiceOperation(IAmazonDatabaseMigrationService client, Amazon.DatabaseMigrationService.Model.DeleteReplicationTaskRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Database Migration Service", "DeleteReplicationTask"); try { #if DESKTOP return(client.DeleteReplicationTask(request)); #elif CORECLR return(client.DeleteReplicationTaskAsync(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; } }