ListSigningCertificatesAsync() 공개 메소드

Initiates the asynchronous execution of the ListSigningCertificates operation.
public ListSigningCertificatesAsync ( ListSigningCertificatesRequest request, System cancellationToken = default(CancellationToken) ) : Task
request ListSigningCertificatesRequest Container for the necessary parameters to execute the ListSigningCertificates operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
리턴 Task
예제 #1
0
 public static void DeleteCertificatesForUser(AmazonIdentityManagementServiceClient client, string username)
 {
     ListSigningCertificatesResponse response =
         client.ListSigningCertificatesAsync(new ListSigningCertificatesRequest() { UserName = username }).Result;
     foreach (SigningCertificate cert in response.Certificates)
     {
         client.DeleteSigningCertificateAsync(new DeleteSigningCertificateRequest() { UserName = username, CertificateId = cert.CertificateId }).Wait();
     }
 }