internal AddTagsResponse AddTags(AddTagsRequest request) { var marshaller = new AddTagsRequestMarshaller(); var unmarshaller = AddTagsResponseUnmarshaller.Instance; return(Invoke <AddTagsRequest, AddTagsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the AddTags operation. /// <seealso cref="Amazon.ElasticMapReduce.IAmazonElasticMapReduce"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTags 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 <AddTagsResponse> AddTagsAsync(AddTagsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddTagsRequestMarshaller(); var unmarshaller = AddTagsResponseUnmarshaller.Instance; return(Invoke <IRequest, AddTagsRequest, AddTagsResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the AddTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTags 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags">REST API Reference for AddTags Operation</seealso> public virtual Task <AddTagsResponse> AddTagsAsync(AddTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AddTagsRequestMarshaller(); var unmarshaller = AddTagsResponseUnmarshaller.Instance; return(InvokeAsync <AddTagsRequest, AddTagsResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Adds or modifies tags for the specified pipeline. /// </summary> /// <param name="pipelineId">The ID of the pipeline.</param> /// <param name="tags">The tags to add, as key/value pairs.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AddTags service method, as returned by DataPipeline.</returns> /// <exception cref="Amazon.DataPipeline.Model.InternalServiceErrorException"> /// An internal service error occurred. /// </exception> /// <exception cref="Amazon.DataPipeline.Model.InvalidRequestException"> /// The request was not valid. Verify that your request was properly formatted, that the /// signature was generated with the correct credentials, and that you haven't exceeded /// any of the service limits for your account. /// </exception> /// <exception cref="Amazon.DataPipeline.Model.PipelineDeletedException"> /// The specified pipeline has been deleted. /// </exception> /// <exception cref="Amazon.DataPipeline.Model.PipelineNotFoundException"> /// The specified pipeline was not found. Verify that you used the correct user and account /// identifiers. /// </exception> public Task <AddTagsResponse> AddTagsAsync(string pipelineId, List <Tag> tags, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new AddTagsRequest(); request.PipelineId = pipelineId; request.Tags = tags; return(AddTagsAsync(request, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the AddTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTags operation on AmazonElasticsearchClient.</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 EndAddTags /// operation.</returns> public IAsyncResult BeginAddTags(AddTagsRequest request, AsyncCallback callback, object state) { var marshaller = new AddTagsRequestMarshaller(); var unmarshaller = AddTagsResponseUnmarshaller.Instance; return(BeginInvoke <AddTagsRequest>(request, marshaller, unmarshaller, callback, state)); }
public async Task <AddTagsResponse> AddTagsAsync(string arn, List <Tag> tags) { AddTagsRequest request = new AddTagsRequest() { ARN = arn, TagList = tags }; return(await client.AddTagsAsync(request)); }
public AddTagsResponse AddTags(string arn, List <Tag> tags) { AddTagsRequest request = new AddTagsRequest() { ARN = arn, TagList = tags }; return(client.AddTagsAsync(request).GetAwaiter().GetResult()); }
/// <summary> /// Initiates the asynchronous execution of the AddTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTags 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags">REST API Reference for AddTags Operation</seealso> public virtual Task <AddTagsResponse> AddTagsAsync(AddTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsResponseUnmarshaller.Instance; return(InvokeAsync <AddTagsResponse>(request, options, cancellationToken)); }
internal virtual AddTagsResponse AddTags(AddTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsResponseUnmarshaller.Instance; return(Invoke <AddTagsResponse>(request, options)); }
internal AddTagsResponse AddTags(AddTagsRequest request) { var task = AddTagsAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }