private static void DeletePort(VpcClient client) { var req = new DeletePortRequest { PortId = "efa0d2e2-314f-44f2-99f6-ecfeaab3ba9d" }; try { DeletePortResponse resp = client.DeletePort(req); Console.WriteLine(resp.HttpStatusCode); } catch (RequestTimeoutException requestTimeoutException) { Console.WriteLine(requestTimeoutException.ErrorMessage); } catch (ServiceResponseException clientRequestException) { Console.WriteLine(clientRequestException.HttpStatusCode); Console.WriteLine(clientRequestException.ErrorCode); Console.WriteLine(clientRequestException.ErrorMsg); } catch (ConnectionException connectionException) { Console.WriteLine(connectionException.ErrorMessage); } }
public static DeletePortResponse Unmarshall(UnmarshallerContext _ctx) { DeletePortResponse deletePortResponse = new DeletePortResponse(); deletePortResponse.HttpResponse = _ctx.HttpResponse; deletePortResponse.RequestId = _ctx.StringValue("DeletePort.RequestId"); return(deletePortResponse); }