Renewing a certificate in a member account - AWS Certificate Manager
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Renewing a certificate in a member account

The following Java code example shows how to use the RenewMemberCertificate operation. Send certificate actions requests to your organization's inventory home Region. For more information, see Manage an ACM certificate.

package com.amazonaws.samples; import com.amazonaws.services.certificatemanager.AWSCertificateManagerClientBuilder; import com.amazonaws.services.certificatemanager.AWSCertificateManager; import com.amazonaws.services.certificatemanager.model.RenewMemberCertificateRequest; import com.amazonaws.services.certificatemanager.model.AWSCertificateManagerException; public class AWSCertificateManagerSample { public static void main(String[] args) { // Send requests to your organization's inventory home Region. AWSCertificateManager client = AWSCertificateManagerClientBuilder.standard() .withRegion("us-east-1") .build(); // Submit the renewal. try { client.renewMemberCertificate(new RenewMemberCertificateRequest() .withCertificateArn("arn:aws:acm:us-east-1:111122223333:certificate/12345678-1234-1234-1234-123456789012")); } catch (AWSCertificateManagerException e) { System.err.println("Failed to renew the certificate: " + e.getMessage()); } } }