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.
87 lines • 5.07 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.SecretRotationPostgresCredentials = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class SecretRotationPostgresCredentials extends pulumi.CustomResource {
/**
* Get an existing SecretRotationPostgresCredentials 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 SecretRotationPostgresCredentials(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of SecretRotationPostgresCredentials. 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'] === SecretRotationPostgresCredentials.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["autoRotationEnabled"] = state ? state.autoRotationEnabled : undefined;
resourceInputs["connectionId"] = state ? state.connectionId : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["environment"] = state ? state.environment : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["parameters"] = state ? state.parameters : undefined;
resourceInputs["projectId"] = state ? state.projectId : undefined;
resourceInputs["rotateAtUtc"] = state ? state.rotateAtUtc : undefined;
resourceInputs["rotationInterval"] = state ? state.rotationInterval : undefined;
resourceInputs["secretPath"] = state ? state.secretPath : undefined;
resourceInputs["secretsMapping"] = state ? state.secretsMapping : undefined;
}
else {
const args = argsOrState;
if ((!args || args.connectionId === undefined) && !opts.urn) {
throw new Error("Missing required property 'connectionId'");
}
if ((!args || args.environment === undefined) && !opts.urn) {
throw new Error("Missing required property 'environment'");
}
if ((!args || args.parameters === undefined) && !opts.urn) {
throw new Error("Missing required property 'parameters'");
}
if ((!args || args.projectId === undefined) && !opts.urn) {
throw new Error("Missing required property 'projectId'");
}
if ((!args || args.secretPath === undefined) && !opts.urn) {
throw new Error("Missing required property 'secretPath'");
}
if ((!args || args.secretsMapping === undefined) && !opts.urn) {
throw new Error("Missing required property 'secretsMapping'");
}
resourceInputs["autoRotationEnabled"] = args ? args.autoRotationEnabled : undefined;
resourceInputs["connectionId"] = args ? args.connectionId : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["environment"] = args ? args.environment : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["parameters"] = args ? args.parameters : undefined;
resourceInputs["projectId"] = args ? args.projectId : undefined;
resourceInputs["rotateAtUtc"] = args ? args.rotateAtUtc : undefined;
resourceInputs["rotationInterval"] = args ? args.rotationInterval : undefined;
resourceInputs["secretPath"] = args ? args.secretPath : undefined;
resourceInputs["secretsMapping"] = args ? args.secretsMapping : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SecretRotationPostgresCredentials.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
}
}
exports.SecretRotationPostgresCredentials = SecretRotationPostgresCredentials;
/** @internal */
SecretRotationPostgresCredentials.__pulumiType = 'infisical:index/secretRotationPostgresCredentials:SecretRotationPostgresCredentials';
//# sourceMappingURL=secretRotationPostgresCredentials.js.map