import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { AddProfilePermissionCommand , AddProfilePermissionCommandInput , AddProfilePermissionCommandOutput , } from "./commands/AddProfilePermissionCommand" ; import { CancelSigningProfileCommand , CancelSigningProfileCommandInput , CancelSigningProfileCommandOutput , } from "./commands/CancelSigningProfileCommand" ; import { DescribeSigningJobCommand , DescribeSigningJobCommandInput , DescribeSigningJobCommandOutput , } from "./commands/DescribeSigningJobCommand" ; import { GetSigningPlatformCommand , GetSigningPlatformCommandInput , GetSigningPlatformCommandOutput , } from "./commands/GetSigningPlatformCommand" ; import { GetSigningProfileCommand , GetSigningProfileCommandInput , GetSigningProfileCommandOutput , } from "./commands/GetSigningProfileCommand" ; import { ListProfilePermissionsCommand , ListProfilePermissionsCommandInput , ListProfilePermissionsCommandOutput , } from "./commands/ListProfilePermissionsCommand" ; import { ListSigningJobsCommand , ListSigningJobsCommandInput , ListSigningJobsCommandOutput , } from "./commands/ListSigningJobsCommand" ; import { ListSigningPlatformsCommand , ListSigningPlatformsCommandInput , ListSigningPlatformsCommandOutput , } from "./commands/ListSigningPlatformsCommand" ; import { ListSigningProfilesCommand , ListSigningProfilesCommandInput , ListSigningProfilesCommandOutput , } from "./commands/ListSigningProfilesCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { PutSigningProfileCommand , PutSigningProfileCommandInput , PutSigningProfileCommandOutput , } from "./commands/PutSigningProfileCommand" ; import { RemoveProfilePermissionCommand , RemoveProfilePermissionCommandInput , RemoveProfilePermissionCommandOutput , } from "./commands/RemoveProfilePermissionCommand" ; import { RevokeSignatureCommand , RevokeSignatureCommandInput , RevokeSignatureCommandOutput , } from "./commands/RevokeSignatureCommand" ; import { RevokeSigningProfileCommand , RevokeSigningProfileCommandInput , RevokeSigningProfileCommandOutput , } from "./commands/RevokeSigningProfileCommand" ; import { StartSigningJobCommand , StartSigningJobCommandInput , StartSigningJobCommandOutput , } from "./commands/StartSigningJobCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { SignerClient } from "./SignerClient" ; /**
 * <p>AWS Signer is a fully managed code signing service to help you ensure the trust and
 * 			integrity of your code. </p>
 * 		       <p>AWS Signer supports the following applications:</p>
 *
 * 		       <p>With <i>code signing for AWS Lambda</i>, you can sign AWS Lambda
 * 			deployment packages. Integrated support is provided for Amazon S3, Amazon CloudWatch,
 * 			and AWS CloudTrail. In order to sign code, you create a signing profile and then use
 * 			Signer to sign Lambda zip files in S3. </p>
 *
 * 		       <p>With <i>code signing for IoT</i>, you can sign code for any IoT device that is
 * 			supported by AWS. IoT code signing is available for <a href="http://docs.aws.amazon.com/freertos/latest/userguide/">Amazon FreeRTOS</a> and <a href="http://docs.aws.amazon.com/iot/latest/developerguide/">AWS IoT Device Management</a>, and is
 * 			integrated with <a href="http://docs.aws.amazon.com/acm/latest/userguide/">AWS Certificate Manager (ACM)</a>. In order to sign
 * 			code, you import a third-party code signing certificate using ACM, and use that to
 * 			sign updates in Amazon FreeRTOS and AWS IoT Device Management. </p>
 * 		       <p>For more information about AWS Signer, see the <a href="http://docs.aws.amazon.com/signer/latest/developerguide/Welcome.html">AWS Signer Developer Guide</a>.</p>
 *
 * 		       <p></p>
 */ export class Signer extends SignerClient { /**
     * <p>Adds cross-account permissions to a signing profile.</p>
     */ public addProfilePermission ( args , options ? ) ; public addProfilePermission ( args , cb ) ; public addProfilePermission ( args , options , cb ) ; public addProfilePermission ( args , optionsOrCb ? , cb ? ) { const command = new AddProfilePermissionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Changes the state of an <code>ACTIVE</code> signing profile to <code>CANCELED</code>.
     * 			A canceled profile is still viewable with the <code>ListSigningProfiles</code>
     * 			operation, but it cannot perform new signing jobs, and is deleted two years after
     * 			cancelation.</p>
     */ public cancelSigningProfile ( args , options ? ) ; public cancelSigningProfile ( args , cb ) ; public cancelSigningProfile ( args , options , cb ) ; public cancelSigningProfile ( args , optionsOrCb ? , cb ? ) { const command = new CancelSigningProfileCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns information about a specific code signing job. You specify the job by using
     * 			the <code>jobId</code> value that is returned by the <a>StartSigningJob</a>
     * 			operation. </p>
     */ public describeSigningJob ( args , options ? ) ; public describeSigningJob ( args , cb ) ; public describeSigningJob ( args , options , cb ) ; public describeSigningJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribeSigningJobCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns information on a specific signing platform.</p>
     */ public getSigningPlatform ( args , options ? ) ; public getSigningPlatform ( args , cb ) ; public getSigningPlatform ( args , options , cb ) ; public getSigningPlatform ( args , optionsOrCb ? , cb ? ) { const command = new GetSigningPlatformCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns information on a specific signing profile.</p>
     */ public getSigningProfile ( args , options ? ) ; public getSigningProfile ( args , cb ) ; public getSigningProfile ( args , options , cb ) ; public getSigningProfile ( args , optionsOrCb ? , cb ? ) { const command = new GetSigningProfileCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists the cross-account permissions associated with a signing profile.</p>
     */ public listProfilePermissions ( args , options ? ) ; public listProfilePermissions ( args , cb ) ; public listProfilePermissions ( args , options , cb ) ; public listProfilePermissions ( args , optionsOrCb ? , cb ? ) { const command = new ListProfilePermissionsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists all your signing jobs. You can use the <code>maxResults</code> parameter to
     * 			limit the number of signing jobs that are returned in the response. If additional jobs
     * 			remain to be listed, code signing returns a <code>nextToken</code> value. Use this value in
     * 			subsequent calls to <code>ListSigningJobs</code> to fetch the remaining values. You can
     * 			continue calling <code>ListSigningJobs</code> with your <code>maxResults</code>
     * 			parameter and with new values that code signing returns in the <code>nextToken</code>
     * 			parameter until all of your signing jobs have been returned. </p>
     */ public listSigningJobs ( args , options ? ) ; public listSigningJobs ( args , cb ) ; public listSigningJobs ( args , options , cb ) ; public listSigningJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListSigningJobsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists all signing platforms available in code signing that match the request parameters. If
     * 			additional jobs remain to be listed, code signing returns a <code>nextToken</code> value. Use
     * 			this value in subsequent calls to <code>ListSigningJobs</code> to fetch the remaining
     * 			values. You can continue calling <code>ListSigningJobs</code> with your
     * 				<code>maxResults</code> parameter and with new values that code signing returns in the
     * 				<code>nextToken</code> parameter until all of your signing jobs have been
     * 			returned.</p>
     */ public listSigningPlatforms ( args , options ? ) ; public listSigningPlatforms ( args , cb ) ; public listSigningPlatforms ( args , options , cb ) ; public listSigningPlatforms ( args , optionsOrCb ? , cb ? ) { const command = new ListSigningPlatformsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Lists all available signing profiles in your AWS account. Returns only profiles with
     * 			an <code>ACTIVE</code> status unless the <code>includeCanceled</code> request field is
     * 			set to <code>true</code>. If additional jobs remain to be listed, code signing returns a
     * 				<code>nextToken</code> value. Use this value in subsequent calls to
     * 				<code>ListSigningJobs</code> to fetch the remaining values. You can continue calling
     * 				<code>ListSigningJobs</code> with your <code>maxResults</code> parameter and with
     * 			new values that code signing returns in the <code>nextToken</code> parameter until all of your
     * 			signing jobs have been returned.</p>
     */ public listSigningProfiles ( args , options ? ) ; public listSigningProfiles ( args , cb ) ; public listSigningProfiles ( args , options , cb ) ; public listSigningProfiles ( args , optionsOrCb ? , cb ? ) { const command = new ListSigningProfilesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Returns a list of the tags associated with a signing profile resource.</p>
     */ public listTagsForResource ( args , options ? ) ; public listTagsForResource ( args , cb ) ; public listTagsForResource ( args , options , cb ) ; public listTagsForResource ( args , optionsOrCb ? , cb ? ) { const command = new ListTagsForResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Creates a signing profile. A signing profile is a code signing template that can be used to
     * 			carry out a pre-defined signing job. For more information, see <a href="http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html">http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html</a>
     *          </p>
     */ public putSigningProfile ( args , options ? ) ; public putSigningProfile ( args , cb ) ; public putSigningProfile ( args , options , cb ) ; public putSigningProfile ( args , optionsOrCb ? , cb ? ) { const command = new PutSigningProfileCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Removes cross-account permissions from a signing profile.</p>
     */ public removeProfilePermission ( args , options ? ) ; public removeProfilePermission ( args , cb ) ; public removeProfilePermission ( args , options , cb ) ; public removeProfilePermission ( args , optionsOrCb ? , cb ? ) { const command = new RemoveProfilePermissionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Changes the state of a signing job to REVOKED. This indicates that the signature is no
     * 			longer valid.</p>
     */ public revokeSignature ( args , options ? ) ; public revokeSignature ( args , cb ) ; public revokeSignature ( args , options , cb ) ; public revokeSignature ( args , optionsOrCb ? , cb ? ) { const command = new RevokeSignatureCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Changes the state of a signing profile to REVOKED. This indicates that signatures
     * 			generated using the signing profile after an effective start date are no longer
     * 			valid.</p>
     */ public revokeSigningProfile ( args , options ? ) ; public revokeSigningProfile ( args , cb ) ; public revokeSigningProfile ( args , options , cb ) ; public revokeSigningProfile ( args , optionsOrCb ? , cb ? ) { const command = new RevokeSigningProfileCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Initiates a signing job to be performed on the code provided. Signing jobs are
     * 			viewable by the <code>ListSigningJobs</code> operation for two years after they are
     * 			performed. Note the following requirements: </p>
     * 		       <ul>
     *             <li>
     * 				           <p> You must create an Amazon S3 source bucket. For more information, see <a href="http://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html">Create a Bucket</a> in the
     * 						<i>Amazon S3 Getting Started Guide</i>. </p>
     * 			         </li>
     *             <li>
     * 				           <p>Your S3 source bucket must be version enabled.</p>
     * 			         </li>
     *             <li>
     * 				           <p>You must create an S3 destination bucket. Code signing uses your S3 destination
     * 					bucket to write your signed code.</p>
     * 			         </li>
     *             <li>
     * 				           <p>You specify the name of the source and destination buckets when calling the
     * 						<code>StartSigningJob</code> operation.</p>
     * 			         </li>
     *             <li>
     * 				           <p>You must also specify a request token that identifies your request to
     * 					code signing.</p>
     * 			         </li>
     *          </ul>
     * 		       <p>You can call the <a>DescribeSigningJob</a> and the <a>ListSigningJobs</a> actions after you call
     * 			<code>StartSigningJob</code>.</p>
     * 		       <p>For a Java example that shows how to use this action, see <a href="http://docs.aws.amazon.com/acm/latest/userguide/">http://docs.aws.amazon.com/acm/latest/userguide/</a>
     *          </p>
     */ public startSigningJob ( args , options ? ) ; public startSigningJob ( args , cb ) ; public startSigningJob ( args , options , cb ) ; public startSigningJob ( args , optionsOrCb ? , cb ? ) { const command = new StartSigningJobCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Adds one or more tags to a signing profile. Tags are labels that you can use to
     * 			identify and organize your AWS resources. Each tag consists of a key and an optional
     * 			value. To specify the signing profile, use its Amazon Resource Name (ARN). To specify
     * 			the tag, use a key-value pair.</p>
     */ public tagResource ( args , options ? ) ; public tagResource ( args , cb ) ; public tagResource ( args , options , cb ) ; public tagResource ( args , optionsOrCb ? , cb ? ) { const command = new TagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Removes one or more tags from a signing profile. To remove the tags, specify a list of
     * 			tag keys.</p>
     */ public untagResource ( args , options ? ) ; public untagResource ( args , cb ) ; public untagResource ( args , options , cb ) ; public untagResource ( args , optionsOrCb ? , cb ? ) { const command = new UntagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } }