當前位置: 首頁>>代碼示例>>Java>>正文


Java DeleteServerCertificateRequest類代碼示例

本文整理匯總了Java中com.amazonaws.services.identitymanagement.model.DeleteServerCertificateRequest的典型用法代碼示例。如果您正苦於以下問題:Java DeleteServerCertificateRequest類的具體用法?Java DeleteServerCertificateRequest怎麽用?Java DeleteServerCertificateRequest使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DeleteServerCertificateRequest類屬於com.amazonaws.services.identitymanagement.model包,在下文中一共展示了DeleteServerCertificateRequest類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: main

import com.amazonaws.services.identitymanagement.model.DeleteServerCertificateRequest; //導入依賴的package包/類
public static void main(String[] args) {

        final String USAGE =
            "To run this example, supply a certificate name\n" +
            "Ex: DeleteServerCertificate <certificate-name>\n";

        if (args.length != 1) {
            System.out.println(USAGE);
            System.exit(1);
        }

        String cert_name = args[0];

        final AmazonIdentityManagement iam =
            AmazonIdentityManagementClientBuilder.defaultClient();

        DeleteServerCertificateRequest request =
            new DeleteServerCertificateRequest()
                .withServerCertificateName(cert_name);

        DeleteServerCertificateResult response =
            iam.deleteServerCertificate(request);

        System.out.println("Successfully deleted server certificate " +
                cert_name);
    }
 
開發者ID:awsdocs,項目名稱:aws-doc-sdk-examples,代碼行數:27,代碼來源:DeleteServerCertificate.java

示例2: deleteServerCert

import com.amazonaws.services.identitymanagement.model.DeleteServerCertificateRequest; //導入依賴的package包/類
public void deleteServerCert(String name) throws Exception {
    logger.info("delete server cert, name={}", name);

    // after delete ELB listener, it may not be visible to IAM immediately
    new Runner<Void>()
        .maxAttempts(3)
        .retryInterval(Duration.ofSeconds(20))
        .retryOn(e -> e instanceof AmazonServiceException && "DeleteConflict".equals(((AmazonServiceException) e).getErrorCode()))
        .run(() -> {
            iam.deleteServerCertificate(new DeleteServerCertificateRequest(name));
            return null;
        });
}
 
開發者ID:neowu,項目名稱:cmn-project,代碼行數:14,代碼來源:IAM.java

示例3: deleteServerCertificate

import com.amazonaws.services.identitymanagement.model.DeleteServerCertificateRequest; //導入依賴的package包/類
/**
 * Deletes the server certificate.
 *
 * @param name The server certificate name
 */
public void deleteServerCertificate(final String name) {
    client.deleteServerCertificate(new DeleteServerCertificateRequest().withServerCertificateName(name));
}
 
開發者ID:Nike-Inc,項目名稱:cerberus-lifecycle-cli,代碼行數:9,代碼來源:IdentityManagementService.java


注:本文中的com.amazonaws.services.identitymanagement.model.DeleteServerCertificateRequest類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。