UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

98 lines 4.25 kB
"use strict"; // *** 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.FeatureEngineeringFeature = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types) * * ## Import * * As of Pulumi v1.5, resources can be imported through configuration. * * hcl * * import { * * id = "full_name" * * to = databricks_feature_engineering_feature.this * * } * * If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows: * * ```sh * $ pulumi import databricks:index/featureEngineeringFeature:FeatureEngineeringFeature this "full_name" * ``` */ class FeatureEngineeringFeature extends pulumi.CustomResource { /** * Get an existing FeatureEngineeringFeature 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 FeatureEngineeringFeature(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of FeatureEngineeringFeature. 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'] === FeatureEngineeringFeature.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["description"] = state?.description; resourceInputs["filterCondition"] = state?.filterCondition; resourceInputs["fullName"] = state?.fullName; resourceInputs["function"] = state?.function; resourceInputs["inputs"] = state?.inputs; resourceInputs["lineageContext"] = state?.lineageContext; resourceInputs["source"] = state?.source; resourceInputs["timeWindow"] = state?.timeWindow; } else { const args = argsOrState; if (args?.fullName === undefined && !opts.urn) { throw new Error("Missing required property 'fullName'"); } if (args?.function === undefined && !opts.urn) { throw new Error("Missing required property 'function'"); } if (args?.inputs === undefined && !opts.urn) { throw new Error("Missing required property 'inputs'"); } if (args?.source === undefined && !opts.urn) { throw new Error("Missing required property 'source'"); } resourceInputs["description"] = args?.description; resourceInputs["filterCondition"] = args?.filterCondition; resourceInputs["fullName"] = args?.fullName; resourceInputs["function"] = args?.function; resourceInputs["inputs"] = args?.inputs; resourceInputs["lineageContext"] = args?.lineageContext; resourceInputs["source"] = args?.source; resourceInputs["timeWindow"] = args?.timeWindow; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FeatureEngineeringFeature.__pulumiType, name, resourceInputs, opts); } } exports.FeatureEngineeringFeature = FeatureEngineeringFeature; /** @internal */ FeatureEngineeringFeature.__pulumiType = 'databricks:index/featureEngineeringFeature:FeatureEngineeringFeature'; //# sourceMappingURL=featureEngineeringFeature.js.map