UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

128 lines 5.35 kB
"use strict"; // *** 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.getPipelinesOutput = exports.getPipelines = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **Note** If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add dependsOn attribute in order to prevent _authentication is not configured for provider_ errors. * * Retrieves a list of all databricks.Pipeline ([Delta Live Tables](https://docs.databricks.com/data-engineering/delta-live-tables/index.html)) ids deployed in a workspace, or those matching the provided search term. Maximum 100 results. * * ## Example Usage * * Get all Delta Live Tables pipelines: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getPipelines({}); * export const allPipelines = all.then(all => all.ids); * ``` * * Filter Delta Live Tables pipelines by name (exact match): * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getPipelines({ * pipelineName: "my_pipeline", * }); * export const myPipeline = _this.then(_this => _this.ids); * ``` * * Filter Delta Live Tables pipelines by name (wildcard search): * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getPipelines({ * pipelineName: "%pipeline%", * }); * export const wildcardPipelines = _this.then(_this => _this.ids); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * End to end workspace management guide. * * databricks.Pipeline to deploy [Delta Live Tables](https://docs.databricks.com/data-engineering/delta-live-tables/index.html). * * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html). * * databricks.Job to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code in a databricks_cluster. * * databricks.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html). */ function getPipelines(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getPipelines:getPipelines", { "ids": args.ids, "pipelineName": args.pipelineName, }, opts); } exports.getPipelines = getPipelines; /** * > **Note** If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add dependsOn attribute in order to prevent _authentication is not configured for provider_ errors. * * Retrieves a list of all databricks.Pipeline ([Delta Live Tables](https://docs.databricks.com/data-engineering/delta-live-tables/index.html)) ids deployed in a workspace, or those matching the provided search term. Maximum 100 results. * * ## Example Usage * * Get all Delta Live Tables pipelines: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getPipelines({}); * export const allPipelines = all.then(all => all.ids); * ``` * * Filter Delta Live Tables pipelines by name (exact match): * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getPipelines({ * pipelineName: "my_pipeline", * }); * export const myPipeline = _this.then(_this => _this.ids); * ``` * * Filter Delta Live Tables pipelines by name (wildcard search): * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getPipelines({ * pipelineName: "%pipeline%", * }); * export const wildcardPipelines = _this.then(_this => _this.ids); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * End to end workspace management guide. * * databricks.Pipeline to deploy [Delta Live Tables](https://docs.databricks.com/data-engineering/delta-live-tables/index.html). * * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html). * * databricks.Job to manage [Databricks Jobs](https://docs.databricks.com/jobs.html) to run non-interactive code in a databricks_cluster. * * databricks.Notebook to manage [Databricks Notebooks](https://docs.databricks.com/notebooks/index.html). */ function getPipelinesOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getPipelines:getPipelines", { "ids": args.ids, "pipelineName": args.pipelineName, }, opts); } exports.getPipelinesOutput = getPipelinesOutput; //# sourceMappingURL=getPipelines.js.map