pulumi-logtail
Version:
A Pulumi provider for managing Logtail log management and analytics resources, dynamically bridged from the Terraform Logtail provider with support for sources, metrics, and log aggregation.
82 lines • 3.97 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.Connection = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class Connection extends pulumi.CustomResource {
/**
* Get an existing Connection 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 Connection(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Connection. 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'] === Connection.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["clientType"] = state?.clientType;
resourceInputs["createdAt"] = state?.createdAt;
resourceInputs["createdBy"] = state?.createdBy;
resourceInputs["dataRegion"] = state?.dataRegion;
resourceInputs["dataSources"] = state?.dataSources;
resourceInputs["host"] = state?.host;
resourceInputs["ipAllowlists"] = state?.ipAllowlists;
resourceInputs["note"] = state?.note;
resourceInputs["password"] = state?.password;
resourceInputs["port"] = state?.port;
resourceInputs["sampleQuery"] = state?.sampleQuery;
resourceInputs["teamIds"] = state?.teamIds;
resourceInputs["teamNames"] = state?.teamNames;
resourceInputs["username"] = state?.username;
resourceInputs["validUntil"] = state?.validUntil;
}
else {
const args = argsOrState;
if (args?.clientType === undefined && !opts.urn) {
throw new Error("Missing required property 'clientType'");
}
resourceInputs["clientType"] = args?.clientType;
resourceInputs["dataRegion"] = args?.dataRegion;
resourceInputs["ipAllowlists"] = args?.ipAllowlists;
resourceInputs["note"] = args?.note;
resourceInputs["teamIds"] = args?.teamIds;
resourceInputs["teamNames"] = args?.teamNames;
resourceInputs["validUntil"] = args?.validUntil;
resourceInputs["createdAt"] = undefined /*out*/;
resourceInputs["createdBy"] = undefined /*out*/;
resourceInputs["dataSources"] = undefined /*out*/;
resourceInputs["host"] = undefined /*out*/;
resourceInputs["password"] = undefined /*out*/;
resourceInputs["port"] = undefined /*out*/;
resourceInputs["sampleQuery"] = undefined /*out*/;
resourceInputs["username"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["password"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Connection.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
}
}
exports.Connection = Connection;
/** @internal */
Connection.__pulumiType = 'logtail:index/connection:Connection';
//# sourceMappingURL=connection.js.map