UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

120 lines 5.02 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.RfaAccessRequestDestinations = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * [![Public Preview](https://img.shields.io/badge/Release_Stage-Public_Preview-yellowgreen)](https://docs.databricks.com/aws/en/release-notes/release-types) * * Request for Access (RFA) access request destinations allow you to configure where notifications are sent when users request access to securable objects in Unity Catalog. This resource enables you to manage access request destinations for specific securable objects, such as tables, catalogs, or schemas. * * When a user requests access to a securable object, notifications can be sent to various destinations including email addresses, Slack channels, or Microsoft Teams channels. This resource allows you to configure these destinations to ensure that the appropriate stakeholders are notified of access requests. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const customerDataTable = new databricks.RfaAccessRequestDestinations("customer_data_table", { * destinations: [ * { * destinationId: "john.doe@databricks.com", * destinationType: "EMAIL", * }, * { * destinationId: "https://www.databricks.com/", * destinationType: "URL", * }, * { * destinationId: "456e7890-e89b-12d3-a456-426614174001", * destinationType: "SLACK", * }, * { * destinationId: "789e0123-e89b-12d3-a456-426614174002", * destinationType: "MICROSOFT_TEAMS", * }, * { * destinationId: "012e3456-e89b-12d3-a456-426614174003", * destinationType: "GENERIC_WEBHOOK", * }, * ], * securable: { * type: "SCHEMA", * fullName: "main.customer_data", * }, * areAnyDestinationsHidden: false, * }); * ``` * * ## Import * * As of Pulumi v1.5, resources can be imported through configuration. * * hcl * * import { * * id = "" * * to = databricks_rfa_access_request_destinations.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/rfaAccessRequestDestinations:RfaAccessRequestDestinations this "" * ``` */ class RfaAccessRequestDestinations extends pulumi.CustomResource { /** * Get an existing RfaAccessRequestDestinations 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 RfaAccessRequestDestinations(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of RfaAccessRequestDestinations. 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'] === RfaAccessRequestDestinations.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["areAnyDestinationsHidden"] = state?.areAnyDestinationsHidden; resourceInputs["destinations"] = state?.destinations; resourceInputs["securable"] = state?.securable; } else { const args = argsOrState; if (args?.securable === undefined && !opts.urn) { throw new Error("Missing required property 'securable'"); } resourceInputs["destinations"] = args?.destinations; resourceInputs["securable"] = args?.securable; resourceInputs["areAnyDestinationsHidden"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(RfaAccessRequestDestinations.__pulumiType, name, resourceInputs, opts); } } exports.RfaAccessRequestDestinations = RfaAccessRequestDestinations; /** @internal */ RfaAccessRequestDestinations.__pulumiType = 'databricks:index/rfaAccessRequestDestinations:RfaAccessRequestDestinations'; //# sourceMappingURL=rfaAccessRequestDestinations.js.map