Code Signing for AWS IoT
Developer Guide

CancelSigningProfile

The following example shows how to use the CancelSigningProfile operation.

package com.examples; import com.amazonaws.auth.profile.ProfileCredentialsProvider; import com.amazonaws.services.signer.AWSSigner; import com.amazonaws.services.signer.AWSSignerClient; import com.amazonaws.services.signer.model.CancelSigningProfileRequest; /** * This examples demonstrates creating a code signing profile and using it to start a signing job. */ public class CancelSigningProfile { public static void main(String[] s) { final String credentialsProfile = "default"; final String codeSigningProfileName = "MyProfile"; // Create a client. final AWSSigner client = AWSSignerClient.builder() .withRegion("us-west-2") .withCredentials(new ProfileCredentialsProvider(credentialsProfile)) .build(); // cancel a signing profile client.cancelSigningProfile(new CancelSigningProfileRequest().withProfileName(codeSigningProfileName)); } }