@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
110 lines • 5.25 kB
JavaScript
;
// *** 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, Object.assign(Object.assign({}, 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 ? state.arn : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["namePrefix"] = state ? state.namePrefix : undefined;
resourceInputs["platformDisplayName"] = state ? state.platformDisplayName : undefined;
resourceInputs["platformId"] = state ? state.platformId : undefined;
resourceInputs["region"] = state ? state.region : undefined;
resourceInputs["revocationRecords"] = state ? state.revocationRecords : undefined;
resourceInputs["signatureValidityPeriod"] = state ? state.signatureValidityPeriod : undefined;
resourceInputs["signingMaterial"] = state ? state.signingMaterial : undefined;
resourceInputs["status"] = state ? state.status : undefined;
resourceInputs["tags"] = state ? state.tags : undefined;
resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
resourceInputs["version"] = state ? state.version : undefined;
resourceInputs["versionArn"] = state ? state.versionArn : undefined;
}
else {
const args = argsOrState;
if ((!args || args.platformId === undefined) && !opts.urn) {
throw new Error("Missing required property 'platformId'");
}
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["namePrefix"] = args ? args.namePrefix : undefined;
resourceInputs["platformId"] = args ? args.platformId : undefined;
resourceInputs["region"] = args ? args.region : undefined;
resourceInputs["signatureValidityPeriod"] = args ? args.signatureValidityPeriod : undefined;
resourceInputs["signingMaterial"] = args ? args.signingMaterial : undefined;
resourceInputs["tags"] = args ? args.tags : undefined;
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