SigningJob class
Creates a Signer Signing Job.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const testSp = new aws.signer.SigningProfile("test_sp", {platformId: "AWSLambda-SHA384-ECDSA"});
const buildSigningJob = new aws.signer.SigningJob("build_signing_job", {
source: {
s3: {
bucket: "s3-bucket-name",
key: "object-to-be-signed.zip",
version: "jADjFYYYEXAMPLETszPjOmCMFDzd9dN1",
},
},
destination: {
s3: {
bucket: "s3-bucket-name",
prefix: "signed/",
},
},
profileName: testSp.name,
ignoreSigningJobFailure: true,
});
import pulumi
import pulumi_aws as aws
test_sp = aws.signer.SigningProfile("test_sp", platform_id="AWSLambda-SHA384-ECDSA")
build_signing_job = aws.signer.SigningJob("build_signing_job",
source={
"s3": {
"bucket": "s3-bucket-name",
"key": "object-to-be-signed.zip",
"version": "jADjFYYYEXAMPLETszPjOmCMFDzd9dN1",
},
},
destination={
"s3": {
"bucket": "s3-bucket-name",
"prefix": "signed/",
},
},
profile_name=test_sp.name,
ignore_signing_job_failure=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var testSp = new Aws.Signer.SigningProfile("test_sp", new()
{
PlatformId = "AWSLambda-SHA384-ECDSA",
});
var buildSigningJob = new Aws.Signer.SigningJob("build_signing_job", new()
{
Source = new Aws.Signer.Inputs.SigningJobSourceArgs
{
S3 = new Aws.Signer.Inputs.SigningJobSourceS3Args
{
Bucket = "s3-bucket-name",
Key = "object-to-be-signed.zip",
Version = "jADjFYYYEXAMPLETszPjOmCMFDzd9dN1",
},
},
Destination = new Aws.Signer.Inputs.SigningJobDestinationArgs
{
S3 = new Aws.Signer.Inputs.SigningJobDestinationS3Args
{
Bucket = "s3-bucket-name",
Prefix = "signed/",
},
},
ProfileName = testSp.Name,
IgnoreSigningJobFailure = true,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/signer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testSp, err := signer.NewSigningProfile(ctx, "test_sp", &signer.SigningProfileArgs{
PlatformId: pulumi.String("AWSLambda-SHA384-ECDSA"),
})
if err != nil {
return err
}
_, err = signer.NewSigningJob(ctx, "build_signing_job", &signer.SigningJobArgs{
Source: &signer.SigningJobSourceArgs{
S3: &signer.SigningJobSourceS3Args{
Bucket: pulumi.String("s3-bucket-name"),
Key: pulumi.String("object-to-be-signed.zip"),
Version: pulumi.String("jADjFYYYEXAMPLETszPjOmCMFDzd9dN1"),
},
},
Destination: &signer.SigningJobDestinationArgs{
S3: &signer.SigningJobDestinationS3Args{
Bucket: pulumi.String("s3-bucket-name"),
Prefix: pulumi.String("signed/"),
},
},
ProfileName: testSp.Name,
IgnoreSigningJobFailure: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_signer_signingprofile" "test_sp" {
platform_id = "AWSLambda-SHA384-ECDSA"
}
resource "aws_signer_signingjob" "build_signing_job" {
source = {
s3 = {
bucket = "s3-bucket-name"
key = "object-to-be-signed.zip"
version = "jADjFYYYEXAMPLETszPjOmCMFDzd9dN1"
}
}
destination = {
s3 = {
bucket = "s3-bucket-name"
prefix = "signed/"
}
}
profile_name = aws_signer_signingprofile.test_sp.name
ignore_signing_job_failure = true
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.signer.SigningProfile;
import com.pulumi.aws.signer.SigningProfileArgs;
import com.pulumi.aws.signer.SigningJob;
import com.pulumi.aws.signer.SigningJobArgs;
import com.pulumi.aws.signer.inputs.SigningJobSourceArgs;
import com.pulumi.aws.signer.inputs.SigningJobSourceS3Args;
import com.pulumi.aws.signer.inputs.SigningJobDestinationArgs;
import com.pulumi.aws.signer.inputs.SigningJobDestinationS3Args;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testSp = new SigningProfile("testSp", SigningProfileArgs.builder()
.platformId("AWSLambda-SHA384-ECDSA")
.build());
var buildSigningJob = new SigningJob("buildSigningJob", SigningJobArgs.builder()
.source(SigningJobSourceArgs.builder()
.s3(SigningJobSourceS3Args.builder()
.bucket("s3-bucket-name")
.key("object-to-be-signed.zip")
.version("jADjFYYYEXAMPLETszPjOmCMFDzd9dN1")
.build())
.build())
.destination(SigningJobDestinationArgs.builder()
.s3(SigningJobDestinationS3Args.builder()
.bucket("s3-bucket-name")
.prefix("signed/")
.build())
.build())
.profileName(testSp.name())
.ignoreSigningJobFailure(true)
.build());
}
}
resources:
testSp:
type: aws:signer:SigningProfile
name: test_sp
properties:
platformId: AWSLambda-SHA384-ECDSA
buildSigningJob:
type: aws:signer:SigningJob
name: build_signing_job
properties:
source:
s3:
bucket: s3-bucket-name
key: object-to-be-signed.zip
version: jADjFYYYEXAMPLETszPjOmCMFDzd9dN1
destination:
s3:
bucket: s3-bucket-name
prefix: signed/
profileName: ${testSp.name}
ignoreSigningJobFailure: true
Import
Using pulumi import, import Signer signing jobs using the jobId. For example:
$ pulumi import aws:signer/signingJob:SigningJob test_signer_signing_job 9ed7e5c3-b8d4-4da0-8459-44e0b068f7ee
Constructors
- SigningJob(String name, {SigningJobArgs? args, CustomResourceOptions? options})
-
Creates a new SigningJob.
nameThe Pulumi resource name.argsArguments used to configure this SigningJob. The set of arguments for SigningJob.optionsResource options controlling this resource's behavior. - SigningJob.reference(String urn)
- Creates a typed reference to an existing SigningJob resource.
Properties
-
childResources
→ Set<
Resource> -
finalinherited
-
completedAt
↔ Output<
String> -
Date and time in RFC3339 format that the signing job was completed.
latefinal
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createdAt
↔ Output<
String> -
Date and time in RFC3339 format that the signing job was created.
latefinal
-
destination
↔ Output<
SigningJobDestination> -
The S3 bucket in which to save your signed object. See Destination below for details.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
-
ignoreSigningJobFailure
↔ Output<
bool?> -
Set this argument to
trueto ignore signing job failures and retrieve failed status and reason. Defaultfalse.latefinal - isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
jobId
↔ Output<
String> -
The ID of the signing job on output.
latefinal
-
jobInvoker
↔ Output<
String> -
The IAM entity that initiated the signing job.
latefinal
-
jobOwner
↔ Output<
String> -
The AWS account ID of the job owner.
latefinal
-
platformDisplayName
↔ Output<
String> -
A human-readable name for the signing platform associated with the signing job.
latefinal
-
platformId
↔ Output<
String> -
The platform to which your signed code image will be distributed.
latefinal
-
profileName
↔ Output<
String> -
The name of the profile to initiate the signing operation.
latefinal
-
profileVersion
↔ Output<
String> -
The version of the signing profile used to initiate the signing job.
latefinal
-
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
requestedBy
↔ Output<
String> -
The IAM principal that requested the signing job.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
-
revocationRecords
↔ Output<
List< SigningJobRevocationRecord> > -
A revocation record if the signature generated by the signing job has been revoked. Contains a timestamp and the ID of the IAM entity that revoked the signature.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signatureExpiresAt
↔ Output<
String> -
The time when the signature of a signing job expires.
latefinal
-
signedObjects
↔ Output<
List< SigningJobSignedObject> > -
Name of the S3 bucket where the signed code image is saved by code signing.
latefinal
-
source
↔ Output<
SigningJobSource> -
The S3 bucket that contains the object to sign. See Source below for details.
latefinal
-
status
↔ Output<
String> -
Status of the signing job.
latefinal
-
statusReason
↔ Output<
String> -
String value that contains the status reason.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {SigningJobState? state, CustomResourceOptions? options}) → SigningJob -
Gets an existing SigningJob resource's state with the given
nameandid.