/// <summary> /// Initiates the asynchronous execution of the AssignPrivateIpAddresses operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssignPrivateIpAddresses 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<AssignPrivateIpAddressesResponse> AssignPrivateIpAddressesAsync(AssignPrivateIpAddressesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AssignPrivateIpAddressesRequestMarshaller(); var unmarshaller = AssignPrivateIpAddressesResponseUnmarshaller.Instance; return InvokeAsync<AssignPrivateIpAddressesRequest,AssignPrivateIpAddressesResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void AssignPrivateIpAddressesMarshallTest() { var operation = service_model.FindOperation("AssignPrivateIpAddresses"); var request = InstantiateClassGenerator.Execute<AssignPrivateIpAddressesRequest>(); var marshaller = new AssignPrivateIpAddressesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Assigns one or more secondary private IP addresses to the specified network interface. /// You can specify one or more specific secondary IP addresses, or you can specify the /// number of secondary IP addresses to be automatically assigned within the subnet's /// CIDR block range. The number of secondary IP addresses that you can assign to an instance /// varies by instance type. For information about instance types, see <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance /// Types</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>. For more information /// about Elastic IP addresses, 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> /// AssignPrivateIpAddresses is available only in EC2-VPC. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssignPrivateIpAddresses service method.</param> /// /// <returns>The response from the AssignPrivateIpAddresses service method, as returned by EC2.</returns> public AssignPrivateIpAddressesResponse AssignPrivateIpAddresses(AssignPrivateIpAddressesRequest request) { var marshaller = new AssignPrivateIpAddressesRequestMarshaller(); var unmarshaller = AssignPrivateIpAddressesResponseUnmarshaller.Instance; return Invoke<AssignPrivateIpAddressesRequest,AssignPrivateIpAddressesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the AssignPrivateIpAddresses operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssignPrivateIpAddresses 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 EndAssignPrivateIpAddresses /// operation.</returns> public IAsyncResult BeginAssignPrivateIpAddresses(AssignPrivateIpAddressesRequest request, AsyncCallback callback, object state) { var marshaller = new AssignPrivateIpAddressesRequestMarshaller(); var unmarshaller = AssignPrivateIpAddressesResponseUnmarshaller.Instance; return BeginInvoke<AssignPrivateIpAddressesRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeAssignPrivateIpAddresses(AssignPrivateIpAddressesRequest assignPrivateIpAddressesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new AssignPrivateIpAddressesRequestMarshaller().Marshall(assignPrivateIpAddressesRequest); var unmarshaller = AssignPrivateIpAddressesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Assigns one or more secondary private IP addresses to the specified network interface. You can specify one or more specific secondary /// IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet's CIDR block range. The /// number of secondary IP addresses that you can assign to an instance varies by instance type. For information about instance types, see <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance Types</a> in the <i>Amazon Elastic Compute Cloud /// User Guide</i> . For more information about Elastic IP addresses, 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>AssignPrivateIpAddresses is available only in EC2-VPC.</para> /// </summary> /// /// <param name="assignPrivateIpAddressesRequest">Container for the necessary parameters to execute the AssignPrivateIpAddresses 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<AssignPrivateIpAddressesResponse> AssignPrivateIpAddressesAsync(AssignPrivateIpAddressesRequest assignPrivateIpAddressesRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AssignPrivateIpAddressesRequestMarshaller(); var unmarshaller = AssignPrivateIpAddressesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, AssignPrivateIpAddressesRequest, AssignPrivateIpAddressesResponse>(assignPrivateIpAddressesRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the AssignPrivateIpAddresses operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.AssignPrivateIpAddresses"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssignPrivateIpAddresses 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<AssignPrivateIpAddressesResponse> AssignPrivateIpAddressesAsync(AssignPrivateIpAddressesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AssignPrivateIpAddressesRequestMarshaller(); var unmarshaller = AssignPrivateIpAddressesResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, AssignPrivateIpAddressesRequest, AssignPrivateIpAddressesResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }