ListServerCertificatesAsync() public method

Initiates the asynchronous execution of the ListServerCertificates operation.
public ListServerCertificatesAsync ( ListServerCertificatesRequest request, System cancellationToken = default(CancellationToken) ) : Task
request ListServerCertificatesRequest Container for the necessary parameters to execute the ListServerCertificates operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
 /// <summary>
 /// Gets the existing cert by name.  If no match found, returns null.
 /// </summary>
 /// <param name="iam"></param>
 /// <param name="certNameWithDateTime"></param>
 /// <returns></returns>
 private static async Task<ServerCertificateMetadata> GetExistingCertByNameAsync(AmazonIdentityManagementServiceClient iam, string certNameWithDateTime)
 {
     var existingCerts = await iam.ListServerCertificatesAsync();
     var existingCert =
         existingCerts.ServerCertificateMetadataList.SingleOrDefault(
             metadata => metadata.ServerCertificateName == certNameWithDateTime);
     return existingCert;
 }