UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

120 lines 6.29 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.App = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > This feature is in [Public Preview](https://docs.databricks.com/release-notes/release-types.html). * * [Databricks Apps](https://docs.databricks.com/en/dev-tools/databricks-apps/index.html) run directly on a customer’s Databricks instance, integrate with their data, use and extend Databricks services, and enable users to interact through single sign-on. This resource creates the application but does not handle app deployment, which should be handled separately as part of your CI/CD pipeline. * * ## Import * * This resource can be imported by name: * * hcl * * import { * * to = databricks_app.this * * id = "<app_name>" * * } * * or using the `terraform` CLI: * * bash * * ```sh * $ pulumi import databricks:index/app:App this <app_name> * ``` */ class App extends pulumi.CustomResource { /** * Get an existing App 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 App(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of App. 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'] === App.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["activeDeployment"] = state ? state.activeDeployment : undefined; resourceInputs["appStatus"] = state ? state.appStatus : undefined; resourceInputs["budgetPolicyId"] = state ? state.budgetPolicyId : undefined; resourceInputs["computeStatus"] = state ? state.computeStatus : undefined; resourceInputs["createTime"] = state ? state.createTime : undefined; resourceInputs["creator"] = state ? state.creator : undefined; resourceInputs["defaultSourceCodePath"] = state ? state.defaultSourceCodePath : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["effectiveBudgetPolicyId"] = state ? state.effectiveBudgetPolicyId : undefined; resourceInputs["effectiveUserApiScopes"] = state ? state.effectiveUserApiScopes : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["noCompute"] = state ? state.noCompute : undefined; resourceInputs["oauth2AppClientId"] = state ? state.oauth2AppClientId : undefined; resourceInputs["oauth2AppIntegrationId"] = state ? state.oauth2AppIntegrationId : undefined; resourceInputs["pendingDeployment"] = state ? state.pendingDeployment : undefined; resourceInputs["resources"] = state ? state.resources : undefined; resourceInputs["servicePrincipalClientId"] = state ? state.servicePrincipalClientId : undefined; resourceInputs["servicePrincipalId"] = state ? state.servicePrincipalId : undefined; resourceInputs["servicePrincipalName"] = state ? state.servicePrincipalName : undefined; resourceInputs["updateTime"] = state ? state.updateTime : undefined; resourceInputs["updater"] = state ? state.updater : undefined; resourceInputs["url"] = state ? state.url : undefined; resourceInputs["userApiScopes"] = state ? state.userApiScopes : undefined; } else { const args = argsOrState; resourceInputs["budgetPolicyId"] = args ? args.budgetPolicyId : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["noCompute"] = args ? args.noCompute : undefined; resourceInputs["resources"] = args ? args.resources : undefined; resourceInputs["userApiScopes"] = args ? args.userApiScopes : undefined; resourceInputs["activeDeployment"] = undefined /*out*/; resourceInputs["appStatus"] = undefined /*out*/; resourceInputs["computeStatus"] = undefined /*out*/; resourceInputs["createTime"] = undefined /*out*/; resourceInputs["creator"] = undefined /*out*/; resourceInputs["defaultSourceCodePath"] = undefined /*out*/; resourceInputs["effectiveBudgetPolicyId"] = undefined /*out*/; resourceInputs["effectiveUserApiScopes"] = undefined /*out*/; resourceInputs["oauth2AppClientId"] = undefined /*out*/; resourceInputs["oauth2AppIntegrationId"] = undefined /*out*/; resourceInputs["pendingDeployment"] = undefined /*out*/; resourceInputs["servicePrincipalClientId"] = undefined /*out*/; resourceInputs["servicePrincipalId"] = undefined /*out*/; resourceInputs["servicePrincipalName"] = undefined /*out*/; resourceInputs["updateTime"] = undefined /*out*/; resourceInputs["updater"] = undefined /*out*/; resourceInputs["url"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(App.__pulumiType, name, resourceInputs, opts); } } exports.App = App; /** @internal */ App.__pulumiType = 'databricks:index/app:App'; //# sourceMappingURL=app.js.map