@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
106 lines • 5.24 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.ScepProfile = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* ScepProfile resource
*/
class ScepProfile extends pulumi.CustomResource {
/**
* Get an existing ScepProfile 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 ScepProfile(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of ScepProfile. 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'] === ScepProfile.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["algorithm"] = state?.algorithm;
resourceInputs["caIdentityName"] = state?.caIdentityName;
resourceInputs["certificateAttributes"] = state?.certificateAttributes;
resourceInputs["device"] = state?.device;
resourceInputs["digest"] = state?.digest;
resourceInputs["encryptedValues"] = state?.encryptedValues;
resourceInputs["fingerprint"] = state?.fingerprint;
resourceInputs["folder"] = state?.folder;
resourceInputs["name"] = state?.name;
resourceInputs["scepCaCert"] = state?.scepCaCert;
resourceInputs["scepChallenge"] = state?.scepChallenge;
resourceInputs["scepClientCert"] = state?.scepClientCert;
resourceInputs["scepUrl"] = state?.scepUrl;
resourceInputs["snippet"] = state?.snippet;
resourceInputs["subject"] = state?.subject;
resourceInputs["tfid"] = state?.tfid;
resourceInputs["useAsDigitalSignature"] = state?.useAsDigitalSignature;
resourceInputs["useForKeyEncipherment"] = state?.useForKeyEncipherment;
}
else {
const args = argsOrState;
if (args?.algorithm === undefined && !opts.urn) {
throw new Error("Missing required property 'algorithm'");
}
if (args?.caIdentityName === undefined && !opts.urn) {
throw new Error("Missing required property 'caIdentityName'");
}
if (args?.digest === undefined && !opts.urn) {
throw new Error("Missing required property 'digest'");
}
if (args?.scepChallenge === undefined && !opts.urn) {
throw new Error("Missing required property 'scepChallenge'");
}
if (args?.scepUrl === undefined && !opts.urn) {
throw new Error("Missing required property 'scepUrl'");
}
if (args?.subject === undefined && !opts.urn) {
throw new Error("Missing required property 'subject'");
}
resourceInputs["algorithm"] = args?.algorithm;
resourceInputs["caIdentityName"] = args?.caIdentityName;
resourceInputs["certificateAttributes"] = args?.certificateAttributes;
resourceInputs["device"] = args?.device;
resourceInputs["digest"] = args?.digest;
resourceInputs["fingerprint"] = args?.fingerprint;
resourceInputs["folder"] = args?.folder;
resourceInputs["name"] = args?.name;
resourceInputs["scepCaCert"] = args?.scepCaCert;
resourceInputs["scepChallenge"] = args?.scepChallenge;
resourceInputs["scepClientCert"] = args?.scepClientCert;
resourceInputs["scepUrl"] = args?.scepUrl;
resourceInputs["snippet"] = args?.snippet;
resourceInputs["subject"] = args?.subject;
resourceInputs["useAsDigitalSignature"] = args?.useAsDigitalSignature;
resourceInputs["useForKeyEncipherment"] = args?.useForKeyEncipherment;
resourceInputs["encryptedValues"] = undefined /*out*/;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["encryptedValues"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(ScepProfile.__pulumiType, name, resourceInputs, opts);
}
}
exports.ScepProfile = ScepProfile;
/** @internal */
ScepProfile.__pulumiType = 'scm:index/scepProfile:ScepProfile';
//# sourceMappingURL=scepProfile.js.map