Amazon.IdentityManagement.AmazonIdentityManagementServiceClient.ListSigningCertificatesAsync C# (CSharp) Method

ListSigningCertificatesAsync() public method

Returns information about the signing certificates associated with the specified IAM user. If there are none, the action returns an empty list.

Although each user is limited to a small number of signing certificates, you can still paginate the results using the MaxItems and Marker parameters.

If the UserName field is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request for this API. Because this action works for access keys under the AWS account, you can use this action to manage root credentials even if the AWS account has no associated users.

/// The request was rejected because it referenced an entity that does not exist. The /// error message describes the entity. /// /// The request processing has failed because of an unknown error, exception or failure. ///
public ListSigningCertificatesAsync ( System cancellationToken = default(CancellationToken) ) : Task
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<ListSigningCertificatesResponse> ListSigningCertificatesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            return ListSigningCertificatesAsync(new ListSigningCertificatesRequest(), cancellationToken);
        }

Same methods

AmazonIdentityManagementServiceClient::ListSigningCertificatesAsync ( ListSigningCertificatesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonIdentityManagementServiceClient::ListSigningCertificatesAsync ( ListSigningCertificatesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonIdentityManagementServiceClient::ListSigningCertificatesAsync ( ListSigningCertificatesRequest request, ListSigningCertificatesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void

Usage Example

コード例 #1
0
ファイル: Util.cs プロジェクト: rajdotnet/aws-sdk-net
 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();
     }
 }
AmazonIdentityManagementServiceClient