/// <summary> /// Lists all your signing jobs. You can use the <code>maxResults</code> parameter to /// limit the number of signing jobs that are returned in the response. If additional /// jobs remain to be listed, AWS Signer returns a <code>nextToken</code> value. Use this /// value in subsequent calls to <code>ListSigningJobs</code> to fetch the remaining values. /// You can continue calling <code>ListSigningJobs</code> with your <code>maxResults</code> /// parameter and with new values that AWS Signer returns in the <code>nextToken</code> /// parameter until all of your signing jobs have been returned. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListSigningJobs service method.</param> /// /// <returns>The response from the ListSigningJobs service method, as returned by Signer.</returns> /// <exception cref="Amazon.Signer.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Signer.Model.InternalServiceErrorException"> /// An internal error occurred. /// </exception> /// <exception cref="Amazon.Signer.Model.ThrottlingException"> /// The signing job has been throttled. /// </exception> /// <exception cref="Amazon.Signer.Model.ValidationException"> /// You signing certificate could not be validated. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningJobs">REST API Reference for ListSigningJobs Operation</seealso> public virtual ListSigningJobsResponse ListSigningJobs(ListSigningJobsRequest request) { var marshaller = ListSigningJobsRequestMarshaller.Instance; var unmarshaller = ListSigningJobsResponseUnmarshaller.Instance; return(Invoke <ListSigningJobsRequest, ListSigningJobsResponse>(request, marshaller, unmarshaller)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonSignerConfig config = new AmazonSignerConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonSignerClient client = new AmazonSignerClient(creds, config); ListSigningJobsResponse resp = new ListSigningJobsResponse(); do { ListSigningJobsRequest req = new ListSigningJobsRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.ListSigningJobs(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.Jobs) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListSigningJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSigningJobs operation on AmazonSignerClient.</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 EndListSigningJobs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningJobs">REST API Reference for ListSigningJobs Operation</seealso> public virtual IAsyncResult BeginListSigningJobs(ListSigningJobsRequest request, AsyncCallback callback, object state) { var marshaller = ListSigningJobsRequestMarshaller.Instance; var unmarshaller = ListSigningJobsResponseUnmarshaller.Instance; return(BeginInvoke <ListSigningJobsRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the ListSigningJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSigningJobs 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/signer-2017-08-25/ListSigningJobs">REST API Reference for ListSigningJobs Operation</seealso> public virtual Task <ListSigningJobsResponse> ListSigningJobsAsync(ListSigningJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = ListSigningJobsRequestMarshaller.Instance; var unmarshaller = ListSigningJobsResponseUnmarshaller.Instance; return(InvokeAsync <ListSigningJobsRequest, ListSigningJobsResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the ListSigningJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSigningJobs 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/signer-2017-08-25/ListSigningJobs">REST API Reference for ListSigningJobs Operation</seealso> public virtual Task <ListSigningJobsResponse> ListSigningJobsAsync(ListSigningJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSigningJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSigningJobsResponseUnmarshaller.Instance; return(InvokeAsync <ListSigningJobsResponse>(request, options, cancellationToken)); }
internal virtual ListSigningJobsResponse ListSigningJobs(ListSigningJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSigningJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSigningJobsResponseUnmarshaller.Instance; return(Invoke <ListSigningJobsResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the ListSigningJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSigningJobs operation on AmazonSignerClient.</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 EndListSigningJobs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningJobs">REST API Reference for ListSigningJobs Operation</seealso> public virtual IAsyncResult BeginListSigningJobs(ListSigningJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListSigningJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSigningJobsResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }