public void DatabaseMigrationServiceDeleteEndpoint()
        {
            #region delete-endpoint-1481752425530

            var response = client.DeleteEndpoint(new DeleteEndpointRequest
            {
                EndpointArn = "arn:aws:dms:us-east-1:123456789012:endpoint:RAAR3R22XSH46S3PWLC3NJAWKM"
            });

            Endpoint endpoint = response.Endpoint;

            #endregion
        }
Exemple #2
0
 private Amazon.DatabaseMigrationService.Model.DeleteEndpointResponse CallAWSServiceOperation(IAmazonDatabaseMigrationService client, Amazon.DatabaseMigrationService.Model.DeleteEndpointRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Database Migration Service", "DeleteEndpoint");
     try
     {
         #if DESKTOP
         return(client.DeleteEndpoint(request));
         #elif CORECLR
         return(client.DeleteEndpointAsync(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;
     }
 }