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); ListSigningProfilesResponse resp = new ListSigningProfilesResponse(); do { ListSigningProfilesRequest req = new ListSigningProfilesRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.ListSigningProfiles(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.Profiles) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
/// <summary> /// Lists all available signing profiles in your AWS account. Returns only profiles with /// an <code>ACTIVE</code> status unless the <code>includeCanceled</code> request field /// is set to <code>true</code>. 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 ListSigningProfiles service method.</param> /// /// <returns>The response from the ListSigningProfiles 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningProfiles">REST API Reference for ListSigningProfiles Operation</seealso> public virtual ListSigningProfilesResponse ListSigningProfiles(ListSigningProfilesRequest request) { var marshaller = ListSigningProfilesRequestMarshaller.Instance; var unmarshaller = ListSigningProfilesResponseUnmarshaller.Instance; return(Invoke <ListSigningProfilesRequest, ListSigningProfilesResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ListSigningProfiles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSigningProfiles 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 EndListSigningProfiles /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningProfiles">REST API Reference for ListSigningProfiles Operation</seealso> public virtual IAsyncResult BeginListSigningProfiles(ListSigningProfilesRequest request, AsyncCallback callback, object state) { var marshaller = ListSigningProfilesRequestMarshaller.Instance; var unmarshaller = ListSigningProfilesResponseUnmarshaller.Instance; return(BeginInvoke <ListSigningProfilesRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the ListSigningProfiles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSigningProfiles 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/ListSigningProfiles">REST API Reference for ListSigningProfiles Operation</seealso> public virtual Task <ListSigningProfilesResponse> ListSigningProfilesAsync(ListSigningProfilesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = ListSigningProfilesRequestMarshaller.Instance; var unmarshaller = ListSigningProfilesResponseUnmarshaller.Instance; return(InvokeAsync <ListSigningProfilesRequest, ListSigningProfilesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
internal virtual ListSigningProfilesResponse ListSigningProfiles(ListSigningProfilesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSigningProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSigningProfilesResponseUnmarshaller.Instance; return(Invoke <ListSigningProfilesResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the ListSigningProfiles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListSigningProfiles 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 EndListSigningProfiles /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningProfiles">REST API Reference for ListSigningProfiles Operation</seealso> public virtual IAsyncResult BeginListSigningProfiles(ListSigningProfilesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListSigningProfilesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSigningProfilesResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }