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
You can use Code Signing for Amazon FreeRTOS (AWS Signer) to sign code that you created for any of the IoT devices that Amazon Web Services supports. AWS Signer is integrated with Amazon FreeRTOS, AWS Certificate Manager, and AWS CloudTrail. Amazon FreeRTOS customers can use AWS Signer to sign code images before making them available for microcontrollers. You can use ACM to import third-party certificates to be used by AWS Signer. For general information about using AWS Signer, see the Code Signing for Amazon FreeRTOS Developer Guide.
Sending a Request Using Signer
var signer = new AWS.Signer();
signer.cancelSigningProfile(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
-
new AWS.Signer(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
cancelSigningProfile(params = {}, callback) ⇒ AWS.Request
Changes the state of an ACTIVE signing profile to CANCELED.
-
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.
-
listSigningJobs(params = {}, callback) ⇒ AWS.Request
Lists all your signing jobs.
-
listSigningPlatforms(params = {}, callback) ⇒ AWS.Request
Lists all signing platforms available in AWS Signer that match the request parameters.
-
listSigningProfiles(params = {}, callback) ⇒ AWS.Request
Lists all available signing profiles in your AWS account.
-
putSigningProfile(params = {}, callback) ⇒ AWS.Request
Creates a signing profile.
-
startSigningJob(params = {}, callback) ⇒ AWS.Request
Initiates a signing job to be performed on the code provided.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given Signer resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
Property Details
Method Details
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.
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, AWS Signer 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 AWS Signer 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 AWS Signer that match the request parameters. If additional jobs remain to be listed, AWS Signer 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 AWS Signer 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, AWS Signer 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 AWS Signer returns in the nextToken parameter until all of your signing jobs have been returned.
putSigningProfile(params = {}, callback) ⇒ AWS.Request
Creates a signing profile. A signing profile is an AWS Signer 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
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. AWS Signer uses your S3 destination bucket to write your signed code.
-
You specify the name of the source and destination buckets when calling the
StartSigningJoboperation. -
You must also specify a request token that identifies your request to AWS Signer.
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/
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).