internal DeleteHealthCheckResponse DeleteHealthCheck(DeleteHealthCheckRequest request) { var marshaller = new DeleteHealthCheckRequestMarshaller(); var unmarshaller = DeleteHealthCheckResponseUnmarshaller.Instance; return(Invoke <DeleteHealthCheckRequest, DeleteHealthCheckResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DeleteHealthCheck operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53.DeleteHealthCheck"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHealthCheck operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <DeleteHealthCheckResponse> DeleteHealthCheckAsync(DeleteHealthCheckRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteHealthCheckRequestMarshaller(); var unmarshaller = DeleteHealthCheckResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DeleteHealthCheckRequest, DeleteHealthCheckResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public void DeleteHealthCheckMarshallTest() { var operation = service_model.FindOperation("DeleteHealthCheck"); var request = InstantiateClassGenerator.Execute <DeleteHealthCheckRequest>(); var marshaller = new DeleteHealthCheckRequestMarshaller(); var internalRequest = marshaller.Marshall(request); RequestValidator.Validate("DeleteHealthCheck", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = DeleteHealthCheckResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as DeleteHealthCheckResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DeleteHealthCheck operation. /// <seealso cref="Amazon.Route53.IAmazonRoute53"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHealthCheck operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <DeleteHealthCheckResponse> DeleteHealthCheckAsync(DeleteHealthCheckRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteHealthCheckRequestMarshaller(); var unmarshaller = DeleteHealthCheckResponseUnmarshaller.Instance; return(InvokeAsync <DeleteHealthCheckRequest, DeleteHealthCheckResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// <para>This action deletes a health check. To delete a health check, send a <c>DELETE</c> request to the <c>2013-04-01/healthcheck/health /// check ID </c> resource.</para> <para><b>IMPORTANT:</b> You can delete a health check only if there are no resource record sets associated /// with this health check. If resource record sets are associated with this health check, you must disassociate them before you can delete your /// health check. If you try to delete a health check that is associated with resource record sets, Route 53 will deny your request with a /// HealthCheckInUse error. For information about disassociating the records from your health check, see ChangeResourceRecordSets.</para> /// </summary> /// /// <param name="deleteHealthCheckRequest">Container for the necessary parameters to execute the DeleteHealthCheck service method on /// AmazonRoute53.</param> /// /// <returns>The response from the DeleteHealthCheck service method, as returned by AmazonRoute53.</returns> /// /// <exception cref="T:Amazon.Route53.Model.NoSuchHealthCheckException" /> /// <exception cref="T:Amazon.Route53.Model.HealthCheckInUseException" /> /// <exception cref="T:Amazon.Route53.Model.InvalidInputException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DeleteHealthCheckResponse> DeleteHealthCheckAsync(DeleteHealthCheckRequest deleteHealthCheckRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteHealthCheckRequestMarshaller(); var unmarshaller = DeleteHealthCheckResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteHealthCheckRequest, DeleteHealthCheckResponse>(deleteHealthCheckRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para>This action deletes a health check. To delete a health check, send a <c>DELETE</c> request to the <c>2012-12-12/healthcheck/health /// check ID </c> resource.</para> <para><b>IMPORTANT:</b> You can delete a health check only if there are no resource record sets associated /// with this health check. If resource record sets are associated with this health check, you must disassociate them before you can delete your /// health check. If you try to delete a health check that is associated with resource record sets, Route 53 will deny your request with a /// HealthCheckInUse error. For information about disassociating the records from your health check, see ChangeResourceRecordSets.</para> /// </summary> /// /// <param name="deleteHealthCheckRequest">Container for the necessary parameters to execute the DeleteHealthCheck service method on /// AmazonRoute53.</param> /// /// <returns>The response from the DeleteHealthCheck service method, as returned by AmazonRoute53.</returns> /// /// <exception cref="T:Amazon.Route53.Model.InvalidInputException" /> /// <exception cref="T:Amazon.Route53.Model.HealthCheckInUseException" /> /// <exception cref="T:Amazon.Route53.Model.NoSuchHealthCheckException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeleteHealthCheckResponse> DeleteHealthCheckAsync(DeleteHealthCheckRequest deleteHealthCheckRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteHealthCheckRequestMarshaller(); var unmarshaller = DeleteHealthCheckResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteHealthCheckRequest, DeleteHealthCheckResponse>(deleteHealthCheckRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteHealthCheck operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHealthCheck operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<DeleteHealthCheckResponse> DeleteHealthCheckAsync(DeleteHealthCheckRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteHealthCheckRequestMarshaller(); var unmarshaller = DeleteHealthCheckResponseUnmarshaller.Instance; return InvokeAsync<DeleteHealthCheckRequest,DeleteHealthCheckResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// This action deletes a health check. To delete a health check, send a <code>DELETE</code> /// request to the <code>2013-04-01/healthcheck/<i>health check ID</i></code> resource. /// /// <important> You can delete a health check only if there are no resource record sets /// associated with this health check. If resource record sets are associated with this /// health check, you must disassociate them before you can delete your health check. /// If you try to delete a health check that is associated with resource record sets, /// Route 53 will deny your request with a <code>HealthCheckInUse</code> error. For information /// about disassociating the records from your health check, see <a>ChangeResourceRecordSets</a>.</important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHealthCheck service method.</param> /// /// <returns>The response from the DeleteHealthCheck service method, as returned by Route53.</returns> /// <exception cref="Amazon.Route53.Model.HealthCheckInUseException"> /// There are resource records associated with this health check. Before you can delete /// the health check, you must disassociate it from the resource record sets. /// </exception> /// <exception cref="Amazon.Route53.Model.InvalidInputException"> /// Some value specified in the request is invalid or the XML document is malformed. /// </exception> /// <exception cref="Amazon.Route53.Model.NoSuchHealthCheckException"> /// The health check you are trying to get or delete does not exist. /// </exception> public DeleteHealthCheckResponse DeleteHealthCheck(DeleteHealthCheckRequest request) { var marshaller = new DeleteHealthCheckRequestMarshaller(); var unmarshaller = DeleteHealthCheckResponseUnmarshaller.Instance; return Invoke<DeleteHealthCheckRequest,DeleteHealthCheckResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DeleteHealthCheck operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHealthCheck operation on AmazonRoute53Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHealthCheck /// operation.</returns> public IAsyncResult BeginDeleteHealthCheck(DeleteHealthCheckRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteHealthCheckRequestMarshaller(); var unmarshaller = DeleteHealthCheckResponseUnmarshaller.Instance; return BeginInvoke<DeleteHealthCheckRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDeleteHealthCheck(DeleteHealthCheckRequest deleteHealthCheckRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteHealthCheckRequestMarshaller().Marshall(deleteHealthCheckRequest); var unmarshaller = DeleteHealthCheckResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
public void DeleteHealthCheckMarshallTest() { var operation = service_model.FindOperation("DeleteHealthCheck"); var request = InstantiateClassGenerator.Execute<DeleteHealthCheckRequest>(); var marshaller = new DeleteHealthCheckRequestMarshaller(); var internalRequest = marshaller.Marshall(request); RequestValidator.Validate("DeleteHealthCheck", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = DeleteHealthCheckResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as DeleteHealthCheckResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }