Updating certificate options 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.

Updating certificate options in a member account

The following Java code example shows how to use the UpdateMemberCertificateOptions 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.AcmCertificateOptions; import com.amazonaws.services.certificatemanager.model.UpdateMemberCertificateOptionsRequest; 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(); // Update the certificate options. try { client.updateMemberCertificateOptions(new UpdateMemberCertificateOptionsRequest() .withCertificateArn("arn:aws:acm:us-east-1:111122223333:certificate/12345678-1234-1234-1234-123456789012") .withOptions(new AcmCertificateOptions().withExport("DISABLED"))); } catch (AWSCertificateManagerException e) { System.err.println("Failed to update the certificate options: " + e.getMessage()); } } }

In the preceding example, replace the placeholder values with your own information:

  • us-east-1 – The AWS Region that is your organization's inventory home Region.

  • 111122223333 – The AWS account ID of the member account that owns the certificate.

  • 12345678-1234-1234-1234-123456789012 – The ID of the ACM certificate in the certificate ARN.