/// <summary> /// Initiates the asynchronous execution of the ReleaseAddress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ReleaseAddress 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<ReleaseAddressResponse> ReleaseAddressAsync(ReleaseAddressRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ReleaseAddressRequestMarshaller(); var unmarshaller = ReleaseAddressResponseUnmarshaller.Instance; return InvokeAsync<ReleaseAddressRequest,ReleaseAddressResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void ReleaseAddressMarshallTest() { var operation = service_model.FindOperation("ReleaseAddress"); var request = InstantiateClassGenerator.Execute<ReleaseAddressRequest>(); var marshaller = new ReleaseAddressRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Releases the specified Elastic IP address. /// /// /// <para> /// After releasing an Elastic IP address, it is released to the IP address pool and might /// be unavailable to you. Be sure to update your DNS records and any servers or devices /// that communicate with the address. If you attempt to release an Elastic IP address /// that you already released, you'll get an <code>AuthFailure</code> error if the address /// is already allocated to another AWS account. /// </para> /// /// <para> /// [EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates /// it from any instance that it's associated with. To disassociate an Elastic IP address /// without releasing it, use <a>DisassociateAddress</a>. /// </para> /// /// <para> /// [Nondefault VPC] You must use <a>DisassociateAddress</a> to disassociate the Elastic /// IP address before you try to release it. Otherwise, Amazon EC2 returns an error (<code>InvalidIPAddress.InUse</code>). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ReleaseAddress service method.</param> /// /// <returns>The response from the ReleaseAddress service method, as returned by EC2.</returns> public ReleaseAddressResponse ReleaseAddress(ReleaseAddressRequest request) { var marshaller = new ReleaseAddressRequestMarshaller(); var unmarshaller = ReleaseAddressResponseUnmarshaller.Instance; return Invoke<ReleaseAddressRequest,ReleaseAddressResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ReleaseAddress operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ReleaseAddress 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 EndReleaseAddress /// operation.</returns> public IAsyncResult BeginReleaseAddress(ReleaseAddressRequest request, AsyncCallback callback, object state) { var marshaller = new ReleaseAddressRequestMarshaller(); var unmarshaller = ReleaseAddressResponseUnmarshaller.Instance; return BeginInvoke<ReleaseAddressRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeReleaseAddress(ReleaseAddressRequest releaseAddressRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ReleaseAddressRequestMarshaller().Marshall(releaseAddressRequest); var unmarshaller = ReleaseAddressResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Releases the specified Elastic IP address.</para> <para>After releasing an Elastic IP address, it is released to the IP address pool /// and might be unavailable to you. Be sure to update your DNS records and any servers or devices that communicate with the address. If you /// attempt to release an Elastic IP address that you already released, you'll get an <c>AuthFailure</c> error if the address is already /// allocated to another AWS account.</para> <para>[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it /// from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.</para> /// <para>[Nondefault VPC] You must use the DisassociateAddress to disassociate the Elastic IP address before you try to release it. Otherwise, /// Amazon EC2 returns an error ( <c>InvalidIPAddress.InUse</c> ).</para> /// </summary> /// /// <param name="releaseAddressRequest">Container for the necessary parameters to execute the ReleaseAddress 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<ReleaseAddressResponse> ReleaseAddressAsync(ReleaseAddressRequest releaseAddressRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ReleaseAddressRequestMarshaller(); var unmarshaller = ReleaseAddressResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ReleaseAddressRequest, ReleaseAddressResponse>(releaseAddressRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the ReleaseAddress operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.ReleaseAddress"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ReleaseAddress 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<ReleaseAddressResponse> ReleaseAddressAsync(ReleaseAddressRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ReleaseAddressRequestMarshaller(); var unmarshaller = ReleaseAddressResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ReleaseAddressRequest, ReleaseAddressResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }