public DeleteSigningCertificateAsync ( |
||
request | Container for the necessary parameters to execute the DeleteSigningCertificate operation. | |
cancellationToken | System | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// |
return | Task |
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(); } }