public void SnowballCancelCluster() { #region to-cancel-a-cluster-job-1482533760554 var response = client.CancelCluster(new CancelClusterRequest { ClusterId = "CID123e4567-e89b-12d3-a456-426655440000" }); #endregion }
private Amazon.Snowball.Model.CancelClusterResponse CallAWSServiceOperation(IAmazonSnowball client, Amazon.Snowball.Model.CancelClusterRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Import/Export Snowball", "CancelCluster"); try { #if DESKTOP return(client.CancelCluster(request)); #elif CORECLR return(client.CancelClusterAsync(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; } }