/// <summary> /// Initiates the asynchronous execution of the ModifyImageAttribute operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyImageAttribute 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<ModifyImageAttributeResponse> ModifyImageAttributeAsync(ModifyImageAttributeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyImageAttributeRequestMarshaller(); var unmarshaller = ModifyImageAttributeResponseUnmarshaller.Instance; return InvokeAsync<ModifyImageAttributeRequest,ModifyImageAttributeResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void ModifyImageAttributeMarshallTest() { var operation = service_model.FindOperation("ModifyImageAttribute"); var request = InstantiateClassGenerator.Execute<ModifyImageAttributeRequest>(); var marshaller = new ModifyImageAttributeRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Modifies the specified attribute of the specified AMI. You can specify only one attribute /// at a time. /// /// <note> /// <para> /// AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product /// code cannot be made public. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ModifyImageAttribute service method.</param> /// /// <returns>The response from the ModifyImageAttribute service method, as returned by EC2.</returns> public ModifyImageAttributeResponse ModifyImageAttribute(ModifyImageAttributeRequest request) { var marshaller = new ModifyImageAttributeRequestMarshaller(); var unmarshaller = ModifyImageAttributeResponseUnmarshaller.Instance; return Invoke<ModifyImageAttributeRequest,ModifyImageAttributeResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ModifyImageAttribute operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyImageAttribute 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 EndModifyImageAttribute /// operation.</returns> public IAsyncResult BeginModifyImageAttribute(ModifyImageAttributeRequest request, AsyncCallback callback, object state) { var marshaller = new ModifyImageAttributeRequestMarshaller(); var unmarshaller = ModifyImageAttributeResponseUnmarshaller.Instance; return BeginInvoke<ModifyImageAttributeRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeModifyImageAttribute(ModifyImageAttributeRequest modifyImageAttributeRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ModifyImageAttributeRequestMarshaller().Marshall(modifyImageAttributeRequest); var unmarshaller = ModifyImageAttributeResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para>Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.</para> <para><b>NOTE:</b> AWS /// Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public. </para> /// </summary> /// /// <param name="modifyImageAttributeRequest">Container for the necessary parameters to execute the ModifyImageAttribute 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<ModifyImageAttributeResponse> ModifyImageAttributeAsync(ModifyImageAttributeRequest modifyImageAttributeRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyImageAttributeRequestMarshaller(); var unmarshaller = ModifyImageAttributeResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ModifyImageAttributeRequest, ModifyImageAttributeResponse>(modifyImageAttributeRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the ModifyImageAttribute operation. /// <seealso cref="Amazon.EC2.IAmazonEC2.ModifyImageAttribute"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ModifyImageAttribute 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<ModifyImageAttributeResponse> ModifyImageAttributeAsync(ModifyImageAttributeRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ModifyImageAttributeRequestMarshaller(); var unmarshaller = ModifyImageAttributeResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, ModifyImageAttributeRequest, ModifyImageAttributeResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }