Class: AWS.Signer
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Signer
- Identifier:
- signer
- API Version:
- 2017-08-25
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
AWS Signer is a fully managed code signing service to help you ensure the trust and integrity of your code.
AWS Signer supports the following applications:
With code signing for AWS Lambda, 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.
With code signing for IoT, you can sign code for any IoT device that is supported by AWS. IoT code signing is available for Amazon FreeRTOS and AWS IoT Device Management, and is integrated with AWS Certificate Manager (ACM). 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.
For more information about AWS Signer, see the AWS Signer Developer Guide.
Sending a Request Using Signer
var signer = new AWS.Signer();
signer.addProfilePermission(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Signer object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var signer = new AWS.Signer({apiVersion: '2017-08-25'});
You can also set the API version globally in AWS.config.apiVersions
using
the signer service identifier:
AWS.config.apiVersions = {
signer: '2017-08-25',
// other service API versions
};
var signer = new AWS.Signer();
Waiter Resource States
This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:
Constructor Summary collapse
-
new AWS.Signer(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
addProfilePermission(params = {}, callback) ⇒ AWS.Request
Adds cross-account permissions to a signing profile.
.
-
cancelSigningProfile(params = {}, callback) ⇒ AWS.Request
Changes the state of an
ACTIVE
signing profile toCANCELED
. -
describeSigningJob(params = {}, callback) ⇒ AWS.Request
Returns information about a specific code signing job.
-
getSigningPlatform(params = {}, callback) ⇒ AWS.Request
Returns information on a specific signing platform.
.
-
getSigningProfile(params = {}, callback) ⇒ AWS.Request
Returns information on a specific signing profile.
.
-
listProfilePermissions(params = {}, callback) ⇒ AWS.Request
Lists the cross-account permissions associated with a signing profile.
.
-
listSigningJobs(params = {}, callback) ⇒ AWS.Request
Lists all your signing jobs.
-
listSigningPlatforms(params = {}, callback) ⇒ AWS.Request
Lists all signing platforms available in code signing that match the request parameters.
-
listSigningProfiles(params = {}, callback) ⇒ AWS.Request
Lists all available signing profiles in your AWS account.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of the tags associated with a signing profile resource.
.
-
putSigningProfile(params = {}, callback) ⇒ AWS.Request
Creates a signing profile.
-
removeProfilePermission(params = {}, callback) ⇒ AWS.Request
Removes cross-account permissions from a signing profile.
.
-
revokeSignature(params = {}, callback) ⇒ AWS.Request
Changes the state of a signing job to REVOKED.
-
revokeSigningProfile(params = {}, callback) ⇒ AWS.Request
Changes the state of a signing profile to REVOKED.
-
startSigningJob(params = {}, callback) ⇒ AWS.Request
Initiates a signing job to be performed on the code provided.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Adds one or more tags to a signing profile.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes one or more tags from a signing profile.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given Signer resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.Signer(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
addProfilePermission(params = {}, callback) ⇒ AWS.Request
Adds cross-account permissions to a signing profile.
cancelSigningProfile(params = {}, callback) ⇒ AWS.Request
Changes the state of an ACTIVE
signing profile to CANCELED
. A canceled profile is still viewable with the ListSigningProfiles
operation, but it cannot perform new signing jobs, and is deleted two years after cancelation.
describeSigningJob(params = {}, callback) ⇒ AWS.Request
Returns information about a specific code signing job. You specify the job by using the jobId
value that is returned by the StartSigningJob operation.
getSigningPlatform(params = {}, callback) ⇒ AWS.Request
Returns information on a specific signing platform.
getSigningProfile(params = {}, callback) ⇒ AWS.Request
Returns information on a specific signing profile.
listProfilePermissions(params = {}, callback) ⇒ AWS.Request
Lists the cross-account permissions associated with a signing profile.
listSigningJobs(params = {}, callback) ⇒ AWS.Request
Lists all your signing jobs. You can use the maxResults
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 nextToken
value. Use this value in subsequent calls to ListSigningJobs
to fetch the remaining values. You can continue calling ListSigningJobs
with your maxResults
parameter and with new values that code signing returns in the nextToken
parameter until all of your signing jobs have been returned.
listSigningPlatforms(params = {}, callback) ⇒ AWS.Request
Lists all signing platforms available in code signing that match the request parameters. If additional jobs remain to be listed, code signing returns a nextToken
value. Use this value in subsequent calls to ListSigningJobs
to fetch the remaining values. You can continue calling ListSigningJobs
with your maxResults
parameter and with new values that code signing returns in the nextToken
parameter until all of your signing jobs have been returned.
listSigningProfiles(params = {}, callback) ⇒ AWS.Request
Lists all available signing profiles in your AWS account. Returns only profiles with an ACTIVE
status unless the includeCanceled
request field is set to true
. If additional jobs remain to be listed, code signing returns a nextToken
value. Use this value in subsequent calls to ListSigningJobs
to fetch the remaining values. You can continue calling ListSigningJobs
with your maxResults
parameter and with new values that code signing returns in the nextToken
parameter until all of your signing jobs have been returned.
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of the tags associated with a signing profile resource.
putSigningProfile(params = {}, callback) ⇒ AWS.Request
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 http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html
removeProfilePermission(params = {}, callback) ⇒ AWS.Request
Removes cross-account permissions from a signing profile.
revokeSignature(params = {}, callback) ⇒ AWS.Request
Changes the state of a signing job to REVOKED. This indicates that the signature is no longer valid.
revokeSigningProfile(params = {}, callback) ⇒ AWS.Request
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.
startSigningJob(params = {}, callback) ⇒ AWS.Request
Initiates a signing job to be performed on the code provided. Signing jobs are viewable by the ListSigningJobs
operation for two years after they are performed. Note the following requirements:
-
You must create an Amazon S3 source bucket. For more information, see Create a Bucket in the Amazon S3 Getting Started Guide.
-
Your S3 source bucket must be version enabled.
-
You must create an S3 destination bucket. Code signing uses your S3 destination bucket to write your signed code.
-
You specify the name of the source and destination buckets when calling the
StartSigningJob
operation. -
You must also specify a request token that identifies your request to code signing.
You can call the DescribeSigningJob and the ListSigningJobs actions after you call StartSigningJob
.
For a Java example that shows how to use this action, see http://docs.aws.amazon.com/acm/latest/userguide/
tagResource(params = {}, callback) ⇒ AWS.Request
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.
untagResource(params = {}, callback) ⇒ AWS.Request
Removes one or more tags from a signing profile. To remove the tags, specify a list of tag keys.
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given Signer resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.
Waiter Resource Details
signer.waitFor('successfulSigningJob', params = {}, [callback]) ⇒ AWS.Request
Waits for the successfulSigningJob
state by periodically calling the underlying
Signer.describeSigningJob() operation every 20 seconds
(at most 25 times).