pulumi-infisical
Version:
A Pulumi provider for managing Infisical secrets management platform, dynamically bridged from the Terraform Infisical provider with support for projects, secrets, identity management, integrations, and access controls.
73 lines • 4.3 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.ProjectIdentitySpecificPrivilege = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class ProjectIdentitySpecificPrivilege extends pulumi.CustomResource {
/**
* Get an existing ProjectIdentitySpecificPrivilege 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 ProjectIdentitySpecificPrivilege(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ProjectIdentitySpecificPrivilege. 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'] === ProjectIdentitySpecificPrivilege.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["identityId"] = state ? state.identityId : undefined;
resourceInputs["isTemporary"] = state ? state.isTemporary : undefined;
resourceInputs["permission"] = state ? state.permission : undefined;
resourceInputs["permissionsV2s"] = state ? state.permissionsV2s : undefined;
resourceInputs["projectSlug"] = state ? state.projectSlug : undefined;
resourceInputs["slug"] = state ? state.slug : undefined;
resourceInputs["temporaryAccessEndTime"] = state ? state.temporaryAccessEndTime : undefined;
resourceInputs["temporaryAccessStartTime"] = state ? state.temporaryAccessStartTime : undefined;
resourceInputs["temporaryMode"] = state ? state.temporaryMode : undefined;
resourceInputs["temporaryRange"] = state ? state.temporaryRange : undefined;
}
else {
const args = argsOrState;
if ((!args || args.identityId === undefined) && !opts.urn) {
throw new Error("Missing required property 'identityId'");
}
if ((!args || args.projectSlug === undefined) && !opts.urn) {
throw new Error("Missing required property 'projectSlug'");
}
resourceInputs["identityId"] = args ? args.identityId : undefined;
resourceInputs["isTemporary"] = args ? args.isTemporary : undefined;
resourceInputs["permission"] = args ? args.permission : undefined;
resourceInputs["permissionsV2s"] = args ? args.permissionsV2s : undefined;
resourceInputs["projectSlug"] = args ? args.projectSlug : undefined;
resourceInputs["slug"] = args ? args.slug : undefined;
resourceInputs["temporaryAccessEndTime"] = args ? args.temporaryAccessEndTime : undefined;
resourceInputs["temporaryAccessStartTime"] = args ? args.temporaryAccessStartTime : undefined;
resourceInputs["temporaryMode"] = args ? args.temporaryMode : undefined;
resourceInputs["temporaryRange"] = args ? args.temporaryRange : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ProjectIdentitySpecificPrivilege.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
}
}
exports.ProjectIdentitySpecificPrivilege = ProjectIdentitySpecificPrivilege;
/** @internal */
ProjectIdentitySpecificPrivilege.__pulumiType = 'infisical:index/projectIdentitySpecificPrivilege:ProjectIdentitySpecificPrivilege';
//# sourceMappingURL=projectIdentitySpecificPrivilege.js.map