Getting ACME external account binding credentials - 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.

Getting ACME external account binding credentials

The following example shows how to use the GetAcmeExternalAccountBindingCredentials function.

package com.amazonaws.samples; import com.amazonaws.services.certificatemanager.AWSCertificateManagerClientBuilder; import com.amazonaws.services.certificatemanager.AWSCertificateManager; import com.amazonaws.services.certificatemanager.model.GetAcmeExternalAccountBindingCredentialsRequest; import com.amazonaws.services.certificatemanager.model.GetAcmeExternalAccountBindingCredentialsResult; public class AWSCertificateManagerSample { public static void main(String[] args) { AWSCertificateManager client = AWSCertificateManagerClientBuilder.defaultClient(); // Create the request. GetAcmeExternalAccountBindingCredentialsRequest req = new GetAcmeExternalAccountBindingCredentialsRequest() .withAcmeExternalAccountBindingArn("arn:aws:acm:us-east-1:123456789012:acme-endpoint/ep-example/acme-external-account-binding/eab-example"); // Get the credentials. GetAcmeExternalAccountBindingCredentialsResult result = client.getAcmeExternalAccountBindingCredentials(req); // Retrieve the key ID and MAC key from the response. System.out.println("KeyId: " + result.getKeyId()); System.out.println("MacKey: " + result.getMacKey()); } }