UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

112 lines 4.97 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.SigningProfile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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 * * ```typescript * 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 * * Using `pulumi import`, import Signer signing profiles using the `name`. For example: * * ```sh * $ pulumi import aws:signer/signingProfile:SigningProfile test_signer_signing_profile test_sp_DdW3Mk1foYL88fajut4mTVFGpuwfd4ACO6ANL0D1uIj7lrn8adK * ``` */ class SigningProfile extends pulumi.CustomResource { /** * Get an existing SigningProfile resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new SigningProfile(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of SigningProfile. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === SigningProfile.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arn"] = state?.arn; resourceInputs["name"] = state?.name; resourceInputs["namePrefix"] = state?.namePrefix; resourceInputs["platformDisplayName"] = state?.platformDisplayName; resourceInputs["platformId"] = state?.platformId; resourceInputs["region"] = state?.region; resourceInputs["revocationRecords"] = state?.revocationRecords; resourceInputs["signatureValidityPeriod"] = state?.signatureValidityPeriod; resourceInputs["signingMaterial"] = state?.signingMaterial; resourceInputs["signingParameters"] = state?.signingParameters; resourceInputs["status"] = state?.status; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; resourceInputs["version"] = state?.version; resourceInputs["versionArn"] = state?.versionArn; } else { const args = argsOrState; if (args?.platformId === undefined && !opts.urn) { throw new Error("Missing required property 'platformId'"); } resourceInputs["name"] = args?.name; resourceInputs["namePrefix"] = args?.namePrefix; resourceInputs["platformId"] = args?.platformId; resourceInputs["region"] = args?.region; resourceInputs["signatureValidityPeriod"] = args?.signatureValidityPeriod; resourceInputs["signingMaterial"] = args?.signingMaterial; resourceInputs["signingParameters"] = args?.signingParameters; resourceInputs["tags"] = args?.tags; resourceInputs["arn"] = undefined /*out*/; resourceInputs["platformDisplayName"] = undefined /*out*/; resourceInputs["revocationRecords"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; resourceInputs["versionArn"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SigningProfile.__pulumiType, name, resourceInputs, opts); } } exports.SigningProfile = SigningProfile; /** @internal */ SigningProfile.__pulumiType = 'aws:signer/signingProfile:SigningProfile'; //# sourceMappingURL=signingProfile.js.map