/// <summary> /// <para> Deletes a policy from the LoadBalancer. The specified policy must not be enabled for any listeners. </para> /// </summary> /// /// <param name="deleteLoadBalancerPolicyRequest">Container for the necessary parameters to execute the DeleteLoadBalancerPolicy service method /// on AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the DeleteLoadBalancerPolicy service method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="InvalidConfigurationRequestException"/> /// <exception cref="LoadBalancerNotFoundException"/> public DeleteLoadBalancerPolicyResponse DeleteLoadBalancerPolicy(DeleteLoadBalancerPolicyRequest deleteLoadBalancerPolicyRequest) { IRequest <DeleteLoadBalancerPolicyRequest> request = new DeleteLoadBalancerPolicyRequestMarshaller().Marshall(deleteLoadBalancerPolicyRequest); DeleteLoadBalancerPolicyResponse response = Invoke <DeleteLoadBalancerPolicyRequest, DeleteLoadBalancerPolicyResponse> (request, this.signer, DeleteLoadBalancerPolicyResponseUnmarshaller.GetInstance()); return(response); }
public void DeleteLoadBalancerPolicyMarshallTest() { var operation = service_model.FindOperation("DeleteLoadBalancerPolicy"); var request = InstantiateClassGenerator.Execute <DeleteLoadBalancerPolicyRequest>(); var marshaller = new DeleteLoadBalancerPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DeleteLoadBalancerPolicyResponseUnmarshaller.Instance.Unmarshall(context) as DeleteLoadBalancerPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the DeleteLoadBalancerPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLoadBalancerPolicy 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<DeleteLoadBalancerPolicyResponse> DeleteLoadBalancerPolicyAsync(DeleteLoadBalancerPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteLoadBalancerPolicyRequestMarshaller(); var unmarshaller = DeleteLoadBalancerPolicyResponseUnmarshaller.Instance; return InvokeAsync<DeleteLoadBalancerPolicyRequest,DeleteLoadBalancerPolicyResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal DeleteLoadBalancerPolicyResponse DeleteLoadBalancerPolicy(DeleteLoadBalancerPolicyRequest request) { var marshaller = new DeleteLoadBalancerPolicyRequestMarshaller(); var unmarshaller = DeleteLoadBalancerPolicyResponseUnmarshaller.Instance; return Invoke<DeleteLoadBalancerPolicyRequest,DeleteLoadBalancerPolicyResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokeDeleteLoadBalancerPolicy(DeleteLoadBalancerPolicyRequest deleteLoadBalancerPolicyRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DeleteLoadBalancerPolicyRequestMarshaller().Marshall(deleteLoadBalancerPolicyRequest); var unmarshaller = DeleteLoadBalancerPolicyResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> Deletes a policy from the load balancer. The specified policy must not be enabled for any listeners. </para> /// </summary> /// /// <param name="deleteLoadBalancerPolicyRequest">Container for the necessary parameters to execute the DeleteLoadBalancerPolicy service method /// on AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the DeleteLoadBalancerPolicy service method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="T:Amazon.ElasticLoadBalancing.Model.InvalidConfigurationRequestException" /> /// <exception cref="T:Amazon.ElasticLoadBalancing.Model.LoadBalancerNotFoundException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DeleteLoadBalancerPolicyResponse> DeleteLoadBalancerPolicyAsync(DeleteLoadBalancerPolicyRequest deleteLoadBalancerPolicyRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteLoadBalancerPolicyRequestMarshaller(); var unmarshaller = DeleteLoadBalancerPolicyResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DeleteLoadBalancerPolicyRequest, DeleteLoadBalancerPolicyResponse>(deleteLoadBalancerPolicyRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// <para> Deletes a policy from the LoadBalancer. The specified policy /// must not be enabled for any listeners. </para> /// </summary> /// /// <param name="deleteLoadBalancerPolicyRequest">Container for the /// necessary parameters to execute the DeleteLoadBalancerPolicy service /// method on AmazonElasticLoadBalancing.</param> /// /// <returns>The response from the DeleteLoadBalancerPolicy service /// method, as returned by AmazonElasticLoadBalancing.</returns> /// /// <exception cref="LoadBalancerNotFoundException"/> /// <exception cref="InvalidConfigurationRequestException"/> public DeleteLoadBalancerPolicyResponse DeleteLoadBalancerPolicy(DeleteLoadBalancerPolicyRequest deleteLoadBalancerPolicyRequest) { IRequest<DeleteLoadBalancerPolicyRequest> request = new DeleteLoadBalancerPolicyRequestMarshaller().Marshall(deleteLoadBalancerPolicyRequest); DeleteLoadBalancerPolicyResponse response = Invoke<DeleteLoadBalancerPolicyRequest, DeleteLoadBalancerPolicyResponse> (request, this.signer, DeleteLoadBalancerPolicyResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the DeleteLoadBalancerPolicy operation. /// <seealso cref="Amazon.ElasticLoadBalancing.IAmazonElasticLoadBalancing.DeleteLoadBalancerPolicy"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLoadBalancerPolicy 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<DeleteLoadBalancerPolicyResponse> DeleteLoadBalancerPolicyAsync(DeleteLoadBalancerPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteLoadBalancerPolicyRequestMarshaller(); var unmarshaller = DeleteLoadBalancerPolicyResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DeleteLoadBalancerPolicyRequest, DeleteLoadBalancerPolicyResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
public void DeleteLoadBalancerPolicyMarshallTest() { var operation = service_model.FindOperation("DeleteLoadBalancerPolicy"); var request = InstantiateClassGenerator.Execute<DeleteLoadBalancerPolicyRequest>(); var marshaller = new DeleteLoadBalancerPolicyRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = DeleteLoadBalancerPolicyResponseUnmarshaller.Instance.Unmarshall(context) as DeleteLoadBalancerPolicyResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeDeleteLoadBalancerPolicy(DeleteLoadBalancerPolicyRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new DeleteLoadBalancerPolicyRequestMarshaller(); var unmarshaller = DeleteLoadBalancerPolicyResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// Initiates the asynchronous execution of the DeleteLoadBalancerPolicy operation. /// <seealso cref="Amazon.ElasticLoadBalancing.IAmazonElasticLoadBalancing"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLoadBalancerPolicy operation on AmazonElasticLoadBalancingClient.</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 EndDeleteLoadBalancerPolicy /// operation.</returns> public IAsyncResult BeginDeleteLoadBalancerPolicy(DeleteLoadBalancerPolicyRequest request, AsyncCallback callback, object state) { var marshaller = new DeleteLoadBalancerPolicyRequestMarshaller(); var unmarshaller = DeleteLoadBalancerPolicyResponseUnmarshaller.Instance; return BeginInvoke<DeleteLoadBalancerPolicyRequest>(request, marshaller, unmarshaller, callback, state); }