/// <summary> /// Returns all tag keys in the specified region for the AWS account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTagKeys service method.</param> /// /// <returns>The response from the GetTagKeys service method, as returned by ResourceGroupsTaggingAPI.</returns> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.InternalServiceException"> /// The request processing failed because of an unknown error, exception, or failure. /// You can retry the request. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.InvalidParameterException"> /// A parameter is missing or a malformed string or invalid or out-of-range value was /// supplied for the request parameter. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.PaginationTokenExpiredException"> /// A <code>PaginationToken</code> is valid for a maximum of 15 minutes. Your request /// was denied because the specified <code>PaginationToken</code> has expired. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.ThrottledException"> /// The request was denied to limit the frequency of submitted requests. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/GetTagKeys">REST API Reference for GetTagKeys Operation</seealso> public virtual GetTagKeysResponse GetTagKeys(GetTagKeysRequest request) { var marshaller = new GetTagKeysRequestMarshaller(); var unmarshaller = GetTagKeysResponseUnmarshaller.Instance; return(Invoke <GetTagKeysRequest, GetTagKeysResponse>(request, marshaller, unmarshaller)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonResourceGroupsTaggingAPIConfig config = new AmazonResourceGroupsTaggingAPIConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonResourceGroupsTaggingAPIClient client = new AmazonResourceGroupsTaggingAPIClient(creds, config); GetTagKeysResponse resp = new GetTagKeysResponse(); do { GetTagKeysRequest req = new GetTagKeysRequest { PaginationToken = resp.PaginationToken }; resp = client.GetTagKeys(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.TagKeys) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.PaginationToken)); }
/// <summary> /// Initiates the asynchronous execution of the GetTagKeys operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTagKeys 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/resourcegroupstaggingapi-2017-01-26/GetTagKeys">REST API Reference for GetTagKeys Operation</seealso> public virtual Task <GetTagKeysResponse> GetTagKeysAsync(GetTagKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetTagKeysRequestMarshaller(); var unmarshaller = GetTagKeysResponseUnmarshaller.Instance; return(InvokeAsync <GetTagKeysRequest, GetTagKeysResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the GetTagKeys operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTagKeys operation on AmazonResourceGroupsTaggingAPIClient.</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 EndGetTagKeys /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/GetTagKeys">REST API Reference for GetTagKeys Operation</seealso> public IAsyncResult BeginGetTagKeys(GetTagKeysRequest request, AsyncCallback callback, object state) { var marshaller = new GetTagKeysRequestMarshaller(); var unmarshaller = GetTagKeysResponseUnmarshaller.Instance; return(BeginInvoke <GetTagKeysRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Returns all tag keys in the specified region for the AWS account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTagKeys service method.</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 GetTagKeys service method, as returned by ResourceGroupsTaggingAPI.</returns> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.InternalServiceException"> /// The request processing failed because of an unknown error, exception, or failure. /// You can retry the request. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.InvalidParameterException"> /// A parameter is missing or a malformed string or invalid or out-of-range value was /// supplied for the request parameter. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.PaginationTokenExpiredException"> /// A <code>PaginationToken</code> is valid for a maximum of 15 minutes. Your request /// was denied because the specified <code>PaginationToken</code> has expired. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.ThrottledException"> /// The request was denied to limit the frequency of submitted requests. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/GetTagKeys">REST API Reference for GetTagKeys Operation</seealso> public virtual Task <GetTagKeysResponse> GetTagKeysAsync(GetTagKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTagKeysRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTagKeysResponseUnmarshaller.Instance; return(InvokeAsync <GetTagKeysResponse>(request, options, cancellationToken)); }
/// <summary> /// Returns all tag keys in the specified region for the AWS account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetTagKeys service method.</param> /// /// <returns>The response from the GetTagKeys service method, as returned by ResourceGroupsTaggingAPI.</returns> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.InternalServiceException"> /// The request processing failed because of an unknown error, exception, or failure. /// You can retry the request. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.InvalidParameterException"> /// A parameter is missing or a malformed string or invalid or out-of-range value was /// supplied for the request parameter. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.PaginationTokenExpiredException"> /// A <code>PaginationToken</code> is valid for a maximum of 15 minutes. Your request /// was denied because the specified <code>PaginationToken</code> has expired. /// </exception> /// <exception cref="Amazon.ResourceGroupsTaggingAPI.Model.ThrottledException"> /// The request was denied to limit the frequency of submitted requests. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/GetTagKeys">REST API Reference for GetTagKeys Operation</seealso> public virtual GetTagKeysResponse GetTagKeys(GetTagKeysRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTagKeysRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTagKeysResponseUnmarshaller.Instance; return(Invoke <GetTagKeysResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the GetTagKeys operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetTagKeys operation on AmazonResourceGroupsTaggingAPIClient.</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 EndGetTagKeys /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/GetTagKeys">REST API Reference for GetTagKeys Operation</seealso> public virtual IAsyncResult BeginGetTagKeys(GetTagKeysRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetTagKeysRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTagKeysResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }