SigningProfile

class SigningProfile : KotlinCustomResource

Creates a Signer Signing Profile. A signing profile contains information about the code signing configuration parameters that can be used by a given code signing user.

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 prodSp = new aws.signer.SigningProfile("prod_sp", {
platformId: "AWSLambda-SHA384-ECDSA",
namePrefix: "prod_sp_",
signatureValidityPeriod: {
value: 5,
type: "YEARS",
},
tags: {
tag1: "value1",
tag2: "value2",
},
});
import pulumi
import pulumi_aws as aws
test_sp = aws.signer.SigningProfile("test_sp", platform_id="AWSLambda-SHA384-ECDSA")
prod_sp = aws.signer.SigningProfile("prod_sp",
platform_id="AWSLambda-SHA384-ECDSA",
name_prefix="prod_sp_",
signature_validity_period={
"value": 5,
"type": "YEARS",
},
tags={
"tag1": "value1",
"tag2": "value2",
})
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 prodSp = new Aws.Signer.SigningProfile("prod_sp", new()
{
PlatformId = "AWSLambda-SHA384-ECDSA",
NamePrefix = "prod_sp_",
SignatureValidityPeriod = new Aws.Signer.Inputs.SigningProfileSignatureValidityPeriodArgs
{
Value = 5,
Type = "YEARS",
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/signer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := signer.NewSigningProfile(ctx, "test_sp", &signer.SigningProfileArgs{
PlatformId: pulumi.String("AWSLambda-SHA384-ECDSA"),
})
if err != nil {
return err
}
_, err = signer.NewSigningProfile(ctx, "prod_sp", &signer.SigningProfileArgs{
PlatformId: pulumi.String("AWSLambda-SHA384-ECDSA"),
NamePrefix: pulumi.String("prod_sp_"),
SignatureValidityPeriod: &signer.SigningProfileSignatureValidityPeriodArgs{
Value: pulumi.Int(5),
Type: pulumi.String("YEARS"),
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
})
if err != nil {
return err
}
return nil
})
}
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.inputs.SigningProfileSignatureValidityPeriodArgs;
import java.util.List;
import java.util.ArrayList;
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 prodSp = new SigningProfile("prodSp", SigningProfileArgs.builder()
.platformId("AWSLambda-SHA384-ECDSA")
.namePrefix("prod_sp_")
.signatureValidityPeriod(SigningProfileSignatureValidityPeriodArgs.builder()
.value(5)
.type("YEARS")
.build())
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}
resources:
testSp:
type: aws:signer:SigningProfile
name: test_sp
properties:
platformId: AWSLambda-SHA384-ECDSA
prodSp:
type: aws:signer:SigningProfile
name: prod_sp
properties:
platformId: AWSLambda-SHA384-ECDSA
namePrefix: prod_sp_
signatureValidityPeriod:
value: 5
type: YEARS
tags:
tag1: value1
tag2: value2

Import

Using pulumi import, import Signer signing profiles using the name. For example:

$ pulumi import aws:signer/signingProfile:SigningProfile test_signer_signing_profile test_sp_DdW3Mk1foYL88fajut4mTVFGpuwfd4ACO6ANL0D1uIj7lrn8adK

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) for the signing profile.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>
Link copied to clipboard
val namePrefix: Output<String>
Link copied to clipboard

A human-readable name for the signing platform associated with the signing profile.

Link copied to clipboard
val platformId: Output<String>

The ID of the platform that is used by the target signing profile.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Revocation information for a signing profile. See revocation_record Block below for details.

Link copied to clipboard

The validity period for a signing job. See signature_validity_period Block below for details.

Link copied to clipboard

The AWS Certificate Manager certificate that will be used to sign code with the new signing profile. See signing_material Block below for details.

Link copied to clipboard
val status: Output<String>

The status of the target signing profile.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A list of tags associated with the signing profile. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

The current version of the signing profile.

Link copied to clipboard
val versionArn: Output<String>

The signing profile ARN, including the profile version.