@datafire/amazonaws_signer

5.0.0 • Public • Published

@datafire/amazonaws_signer

Client library for AWS Signer

Installation and Usage

npm install --save @datafire/amazonaws_signer
let amazonaws_signer = require('@datafire/amazonaws_signer').create({
  hmac: ""
});

amazonaws_signer.ListSigningJobs({
  "body": {},
  "Action": "",
  "Version": ""
}).then(data => {
  console.log(data);
});

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.

Actions

ListSigningJobs

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.

amazonaws_signer.ListSigningJobs({
  "body": {},
  "Action": "",
  "Version": ""
}, context)

Input

  • input object
    • body required ListSigningJobsRequest
    • maxResults string: Pagination limit
    • nextToken string: Pagination token
    • Action required string
    • Version required string
    • X-Amz-Content-Sha256 string
    • X-Amz-Date string
    • X-Amz-Algorithm string
    • X-Amz-Credential string
    • X-Amz-Security-Token string
    • X-Amz-Signature string
    • X-Amz-SignedHeaders string

Output

StartSigningJob

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 StartSigningJob operation.

  • 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/

amazonaws_signer.StartSigningJob({
  "body": {
    "source": {},
    "destination": {},
    "clientRequestToken": ""
  },
  "Action": "",
  "Version": ""
}, context)

Input

  • input object
    • body required StartSigningJobRequest
    • Action required string
    • Version required string
    • X-Amz-Content-Sha256 string
    • X-Amz-Date string
    • X-Amz-Algorithm string
    • X-Amz-Credential string
    • X-Amz-Security-Token string
    • X-Amz-Signature string
    • X-Amz-SignedHeaders string

Output

DescribeSigningJob

Returns information about a specific code signing job. You specify the job by using the jobId value that is returned by the StartSigningJob operation.

amazonaws_signer.DescribeSigningJob({
  "body": {},
  "jobId": "",
  "Action": "",
  "Version": ""
}, context)

Input

  • input object
    • body required DescribeSigningJobRequest
    • jobId required string
    • Action required string
    • Version required string
    • X-Amz-Content-Sha256 string
    • X-Amz-Date string
    • X-Amz-Algorithm string
    • X-Amz-Credential string
    • X-Amz-Security-Token string
    • X-Amz-Signature string
    • X-Amz-SignedHeaders string

Output

ListSigningPlatforms

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.

amazonaws_signer.ListSigningPlatforms({
  "body": {},
  "Action": "",
  "Version": ""
}, context)

Input

  • input object
    • body required ListSigningPlatformsRequest
    • maxResults string: Pagination limit
    • nextToken string: Pagination token
    • Action required string
    • Version required string
    • X-Amz-Content-Sha256 string
    • X-Amz-Date string
    • X-Amz-Algorithm string
    • X-Amz-Credential string
    • X-Amz-Security-Token string
    • X-Amz-Signature string
    • X-Amz-SignedHeaders string

Output

GetSigningPlatform

Returns information on a specific signing platform.

amazonaws_signer.GetSigningPlatform({
  "body": {},
  "platformId": "",
  "Action": "",
  "Version": ""
}, context)

Input

  • input object
    • body required GetSigningPlatformRequest
    • platformId required string
    • platformId_query string
    • Action required string
    • Version required string
    • X-Amz-Content-Sha256 string
    • X-Amz-Date string
    • X-Amz-Algorithm string
    • X-Amz-Credential string
    • X-Amz-Security-Token string
    • X-Amz-Signature string
    • X-Amz-SignedHeaders string

Output

ListSigningProfiles

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.

amazonaws_signer.ListSigningProfiles({
  "body": {},
  "Action": "",
  "Version": ""
}, context)

Input

  • input object
    • body required ListSigningProfilesRequest
    • maxResults string: Pagination limit
    • nextToken string: Pagination token
    • Action required string
    • Version required string
    • X-Amz-Content-Sha256 string
    • X-Amz-Date string
    • X-Amz-Algorithm string
    • X-Amz-Credential string
    • X-Amz-Security-Token string
    • X-Amz-Signature string
    • X-Amz-SignedHeaders string

Output

CancelSigningProfile

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.

amazonaws_signer.CancelSigningProfile({
  "body": {},
  "profileName": "",
  "Action": "",
  "Version": ""
}, context)

Input

  • input object
    • body required CancelSigningProfileRequest
    • profileName required string
    • Action required string
    • Version required string
    • X-Amz-Content-Sha256 string
    • X-Amz-Date string
    • X-Amz-Algorithm string
    • X-Amz-Credential string
    • X-Amz-Security-Token string
    • X-Amz-Signature string
    • X-Amz-SignedHeaders string

Output

Output schema unknown

GetSigningProfile

Returns information on a specific signing profile.

amazonaws_signer.GetSigningProfile({
  "body": {},
  "profileName": "",
  "Action": "",
  "Version": ""
}, context)

Input

  • input object
    • body required GetSigningProfileRequest
    • profileName required string
    • Action required string
    • Version required string
    • X-Amz-Content-Sha256 string
    • X-Amz-Date string
    • X-Amz-Algorithm string
    • X-Amz-Credential string
    • X-Amz-Security-Token string
    • X-Amz-Signature string
    • X-Amz-SignedHeaders string

Output

PutSigningProfile

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

amazonaws_signer.PutSigningProfile({
  "body": {
    "signingMaterial": {
      "certificateArn": ""
    },
    "platformId": ""
  },
  "profileName": "",
  "Action": "",
  "Version": ""
}, context)

Input

  • input object
    • body required PutSigningProfileRequest
    • profileName required string
    • Action required string
    • Version required string
    • X-Amz-Content-Sha256 string
    • X-Amz-Date string
    • X-Amz-Algorithm string
    • X-Amz-Credential string
    • X-Amz-Security-Token string
    • X-Amz-Signature string
    • X-Amz-SignedHeaders string

Output

Definitions

AccessDeniedException

BucketName

  • BucketName string

CancelSigningProfileRequest

  • CancelSigningProfileRequest object

Category

  • Category string (values: AWSIoT)

CertificateArn

  • CertificateArn string

ClientRequestToken

  • ClientRequestToken string

CompletedAt

  • CompletedAt string

CreatedAt

  • CreatedAt string

DescribeSigningJobRequest

  • DescribeSigningJobRequest object

DescribeSigningJobResponse

Destination

  • Destination object: Points to an S3Destination object that contains information about your S3 bucket.

DisplayName

  • DisplayName string

EncryptionAlgorithm

  • EncryptionAlgorithm string (values: RSA, ECDSA)

EncryptionAlgorithmOptions

  • EncryptionAlgorithmOptions object: The encryption algorithm options that are available to an AWS Signer job.

EncryptionAlgorithms

GetSigningPlatformRequest

  • GetSigningPlatformRequest object

GetSigningPlatformResponse

GetSigningProfileRequest

  • GetSigningProfileRequest object

GetSigningProfileResponse

HashAlgorithm

  • HashAlgorithm string (values: SHA1, SHA256)

HashAlgorithmOptions

  • HashAlgorithmOptions object: The hash algorithms that are available to an AWS Signer job.

HashAlgorithms

ImageFormat

  • ImageFormat string (values: JSON)

ImageFormats

InternalServiceErrorException

JobId

  • JobId string

Key

  • Key string

ListSigningJobsRequest

  • ListSigningJobsRequest object

ListSigningJobsResponse

ListSigningPlatformsRequest

  • ListSigningPlatformsRequest object

ListSigningPlatformsResponse

ListSigningProfilesRequest

  • ListSigningProfilesRequest object

ListSigningProfilesResponse

MaxResults

  • MaxResults integer

MaxSizeInMB

  • MaxSizeInMB integer

NextToken

  • NextToken string

PlatformId

  • PlatformId string

Prefix

  • Prefix string

ProfileName

  • ProfileName string

PutSigningProfileRequest

PutSigningProfileResponse

  • PutSigningProfileResponse object

RequestedBy

  • RequestedBy string

ResourceNotFoundException

S3Destination

  • S3Destination object: The name and prefix of the S3 bucket where AWS Signer saves your signed objects.

S3SignedObject

  • S3SignedObject object: The S3 bucket name and key where AWS Signer saved your signed code image.

S3Source

  • S3Source object: Information about the S3 bucket where you saved your unsigned code.

SignedObject

  • SignedObject object: Points to an S3SignedObject object that contains information about your signed code image.

SigningConfiguration

SigningConfigurationOverrides

  • SigningConfigurationOverrides object: A signing configuration that overrides the default encryption or hash algorithm of a signing job.

SigningImageFormat

  • SigningImageFormat object: The image format of an AWS Signer platform or profile.

SigningJob

SigningJobs

SigningMaterial

  • SigningMaterial object: The ACM certificate that is used to sign your code.

SigningParameterKey

  • SigningParameterKey string

SigningParameterValue

  • SigningParameterValue string

SigningParameters

SigningPlatform

SigningPlatformOverrides

  • SigningPlatformOverrides object: Any overrides that are applied to the signing configuration of an AWS Signer platform.

SigningPlatforms

SigningProfile

SigningProfileStatus

  • SigningProfileStatus string (values: Active, Canceled)

SigningProfiles

SigningStatus

  • SigningStatus string (values: InProgress, Failed, Succeeded)

Source

  • Source object: An S3Source object that contains information about the S3 bucket where you saved your unsigned code.

StartSigningJobRequest

StartSigningJobResponse

  • StartSigningJobResponse object

StatusReason

  • StatusReason string

String

  • String string

ThrottlingException

ValidationException

Version

  • Version string

bool

  • bool boolean

key

  • key string

string

  • string string

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/amazonaws_signer

Weekly Downloads

1

Version

5.0.0

License

MIT

Unpacked Size

72.8 kB

Total Files

4

Last publish

Collaborators

  • datafire