start_signing_job

signer.Client.start_signing_job(**kwargs)

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/

See also: AWS API Documentation

Request Syntax

response = client.start_signing_job(
    source={
        's3': {
            'bucketName': 'string',
            'key': 'string',
            'version': 'string'
        }
    },
    destination={
        's3': {
            'bucketName': 'string',
            'prefix': 'string'
        }
    },
    profileName='string',
    clientRequestToken='string',
    profileOwner='string'
)
Parameters
  • source (dict) --

    [REQUIRED]

    The S3 bucket that contains the object to sign or a BLOB that contains your raw code.

    • s3 (dict) --

      The S3Source object.

      • bucketName (string) -- [REQUIRED]

        Name of the S3 bucket.

      • key (string) -- [REQUIRED]

        Key name of the bucket object that contains your unsigned code.

      • version (string) -- [REQUIRED]

        Version of your source image in your version enabled S3 bucket.

  • destination (dict) --

    [REQUIRED]

    The S3 bucket in which to save your signed object. The destination contains the name of your bucket and an optional prefix.

    • s3 (dict) --

      The S3Destination object.

      • bucketName (string) --

        Name of the S3 bucket.

      • prefix (string) --

        An Amazon S3 prefix that you can use to limit responses to those that begin with the specified prefix.

  • profileName (string) --

    [REQUIRED]

    The name of the signing profile.

  • clientRequestToken (string) --

    [REQUIRED]

    String that identifies the signing request. All calls after the first that use this token return the same response as the first call.

    This field is autopopulated if not provided.

  • profileOwner (string) -- The AWS account ID of the signing profile owner.
Return type

dict

Returns

Response Syntax

{
    'jobId': 'string',
    'jobOwner': 'string'
}

Response Structure

  • (dict) --

    • jobId (string) --

      The ID of your signing job.

    • jobOwner (string) --

      The AWS account ID of the signing job owner.

Exceptions

  • signer.Client.exceptions.ValidationException
  • signer.Client.exceptions.ResourceNotFoundException
  • signer.Client.exceptions.AccessDeniedException
  • signer.Client.exceptions.ThrottlingException
  • signer.Client.exceptions.TooManyRequestsException
  • signer.Client.exceptions.InternalServiceErrorException