@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
113 lines (112 loc) • 4.97 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* This resource allows you to manage [global init scripts](https://docs.databricks.com/clusters/init-scripts.html#global-init-scripts), which are run on all databricks.Cluster and databricks_job.
*
* ## Import
*
* The resource global init script can be imported using script ID:
*
* bash
*
* ```sh
* $ pulumi import databricks:index/globalInitScript:GlobalInitScript this script_id
* ```
*/
export declare class GlobalInitScript extends pulumi.CustomResource {
/**
* Get an existing GlobalInitScript 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: string, id: pulumi.Input<pulumi.ID>, state?: GlobalInitScriptState, opts?: pulumi.CustomResourceOptions): GlobalInitScript;
/**
* Returns true if the given object is an instance of GlobalInitScript. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is GlobalInitScript;
/**
* The base64-encoded source code global init script. Conflicts with `source`. Use of `contentBase64` is discouraged, as it's increasing memory footprint of Pulumi state and should only be used in exceptional circumstances
*/
readonly contentBase64: pulumi.Output<string | undefined>;
/**
* specifies if the script is enabled for execution, or not
*/
readonly enabled: pulumi.Output<boolean | undefined>;
readonly md5: pulumi.Output<string | undefined>;
/**
* the name of the script. It should be unique
*/
readonly name: pulumi.Output<string>;
/**
* the position of a global init script, where `0` represents the first global init script to run, `1` is the second global init script to run, and so on. When omitted, the script gets the last position.
*/
readonly position: pulumi.Output<number>;
/**
* Path to script's source code on local filesystem. Conflicts with `contentBase64`
*/
readonly source: pulumi.Output<string | undefined>;
/**
* Create a GlobalInitScript resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: GlobalInitScriptArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering GlobalInitScript resources.
*/
export interface GlobalInitScriptState {
/**
* The base64-encoded source code global init script. Conflicts with `source`. Use of `contentBase64` is discouraged, as it's increasing memory footprint of Pulumi state and should only be used in exceptional circumstances
*/
contentBase64?: pulumi.Input<string>;
/**
* specifies if the script is enabled for execution, or not
*/
enabled?: pulumi.Input<boolean>;
md5?: pulumi.Input<string>;
/**
* the name of the script. It should be unique
*/
name?: pulumi.Input<string>;
/**
* the position of a global init script, where `0` represents the first global init script to run, `1` is the second global init script to run, and so on. When omitted, the script gets the last position.
*/
position?: pulumi.Input<number>;
/**
* Path to script's source code on local filesystem. Conflicts with `contentBase64`
*/
source?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a GlobalInitScript resource.
*/
export interface GlobalInitScriptArgs {
/**
* The base64-encoded source code global init script. Conflicts with `source`. Use of `contentBase64` is discouraged, as it's increasing memory footprint of Pulumi state and should only be used in exceptional circumstances
*/
contentBase64?: pulumi.Input<string>;
/**
* specifies if the script is enabled for execution, or not
*/
enabled?: pulumi.Input<boolean>;
md5?: pulumi.Input<string>;
/**
* the name of the script. It should be unique
*/
name?: pulumi.Input<string>;
/**
* the position of a global init script, where `0` represents the first global init script to run, `1` is the second global init script to run, and so on. When omitted, the script gets the last position.
*/
position?: pulumi.Input<number>;
/**
* Path to script's source code on local filesystem. Conflicts with `contentBase64`
*/
source?: pulumi.Input<string>;
}