@port-labs/port
Version:
A Pulumi package for creating and managing Port resources.
89 lines • 5.26 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Blueprint = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class Blueprint extends pulumi.CustomResource {
/**
* Get an existing Blueprint 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 Blueprint(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Blueprint. 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'] === Blueprint.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["calculationProperties"] = state ? state.calculationProperties : undefined;
resourceInputs["createCatalogPage"] = state ? state.createCatalogPage : undefined;
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
resourceInputs["createdBy"] = state ? state.createdBy : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["forceDeleteEntities"] = state ? state.forceDeleteEntities : undefined;
resourceInputs["icon"] = state ? state.icon : undefined;
resourceInputs["identifier"] = state ? state.identifier : undefined;
resourceInputs["kafkaChangelogDestination"] = state ? state.kafkaChangelogDestination : undefined;
resourceInputs["mirrorProperties"] = state ? state.mirrorProperties : undefined;
resourceInputs["ownership"] = state ? state.ownership : undefined;
resourceInputs["properties"] = state ? state.properties : undefined;
resourceInputs["relations"] = state ? state.relations : undefined;
resourceInputs["teamInheritance"] = state ? state.teamInheritance : undefined;
resourceInputs["title"] = state ? state.title : undefined;
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
resourceInputs["updatedBy"] = state ? state.updatedBy : undefined;
resourceInputs["webhookChangelogDestination"] = state ? state.webhookChangelogDestination : undefined;
}
else {
const args = argsOrState;
if ((!args || args.identifier === undefined) && !opts.urn) {
throw new Error("Missing required property 'identifier'");
}
if ((!args || args.title === undefined) && !opts.urn) {
throw new Error("Missing required property 'title'");
}
resourceInputs["calculationProperties"] = args ? args.calculationProperties : undefined;
resourceInputs["createCatalogPage"] = args ? args.createCatalogPage : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["forceDeleteEntities"] = args ? args.forceDeleteEntities : undefined;
resourceInputs["icon"] = args ? args.icon : undefined;
resourceInputs["identifier"] = args ? args.identifier : undefined;
resourceInputs["kafkaChangelogDestination"] = args ? args.kafkaChangelogDestination : undefined;
resourceInputs["mirrorProperties"] = args ? args.mirrorProperties : undefined;
resourceInputs["ownership"] = args ? args.ownership : undefined;
resourceInputs["properties"] = args ? args.properties : undefined;
resourceInputs["relations"] = args ? args.relations : undefined;
resourceInputs["teamInheritance"] = args ? args.teamInheritance : undefined;
resourceInputs["title"] = args ? args.title : undefined;
resourceInputs["webhookChangelogDestination"] = args ? args.webhookChangelogDestination : undefined;
resourceInputs["createdAt"] = undefined /*out*/;
resourceInputs["createdBy"] = undefined /*out*/;
resourceInputs["updatedAt"] = undefined /*out*/;
resourceInputs["updatedBy"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Blueprint.__pulumiType, name, resourceInputs, opts);
}
}
exports.Blueprint = Blueprint;
/** @internal */
Blueprint.__pulumiType = 'port:index/blueprint:Blueprint';
//# sourceMappingURL=blueprint.js.map