/// <summary> /// Initiates the asynchronous execution of the DisassociateAddress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateAddress 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<DisassociateAddressResponse> DisassociateAddressAsync(DisassociateAddressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DisassociateAddressRequestMarshaller(); var unmarshaller = DisassociateAddressResponseUnmarshaller.Instance; return InvokeAsync<DisassociateAddressRequest,DisassociateAddressResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void DisassociateAddressMarshallTest() { var operation = service_model.FindOperation("DisassociateAddress"); var request = InstantiateClassGenerator.Execute<DisassociateAddressRequest>(); var marshaller = new DisassociateAddressRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Disassociates an Elastic IP address from the instance or network interface it's associated /// with. /// /// /// <para> /// An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For /// more information, see <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html">Elastic /// IP Addresses</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>. /// </para> /// /// <para> /// This is an idempotent operation. If you perform the operation more than once, Amazon /// EC2 doesn't return an error. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateAddress service method.</param> /// /// <returns>The response from the DisassociateAddress service method, as returned by EC2.</returns> public DisassociateAddressResponse DisassociateAddress(DisassociateAddressRequest request) { var marshaller = new DisassociateAddressRequestMarshaller(); var unmarshaller = DisassociateAddressResponseUnmarshaller.Instance; return Invoke<DisassociateAddressRequest,DisassociateAddressResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DisassociateAddress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateAddress operation on AmazonEC2Client.</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 EndDisassociateAddress /// operation.</returns> public IAsyncResult BeginDisassociateAddress(DisassociateAddressRequest request, AsyncCallback callback, object state) { var marshaller = new DisassociateAddressRequestMarshaller(); var unmarshaller = DisassociateAddressResponseUnmarshaller.Instance; return BeginInvoke<DisassociateAddressRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeDisassociateAddress(DisassociateAddressRequest disassociateAddressRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DisassociateAddressRequestMarshaller().Marshall(disassociateAddressRequest); var unmarshaller = DisassociateAddressResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Disassociates an Elastic IP address from the instance or network interface it's associated with.</para> <para>This is an idempotent /// operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.</para> /// </summary> /// /// <param name="disassociateAddressRequest">Container for the necessary parameters to execute the DisassociateAddress service method on /// AmazonEC2.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<DisassociateAddressResponse> DisassociateAddressAsync(DisassociateAddressRequest disassociateAddressRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DisassociateAddressRequestMarshaller(); var unmarshaller = DisassociateAddressResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DisassociateAddressRequest, DisassociateAddressResponse>(disassociateAddressRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DisassociateAddress operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.DisassociateAddress"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateAddress 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 async Task<DisassociateAddressResponse> DisassociateAddressAsync(DisassociateAddressRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DisassociateAddressRequestMarshaller(); var unmarshaller = DisassociateAddressResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DisassociateAddressRequest, DisassociateAddressResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }