1. Packages
  2. Databricks
  3. API Docs
  4. GlobalInitScript
Databricks v1.34.0 published on Tuesday, Mar 5, 2024 by Pulumi

databricks.GlobalInitScript

Explore with Pulumi AI

databricks logo
Databricks v1.34.0 published on Tuesday, Mar 5, 2024 by Pulumi

    Import

    The resource global init script can be imported using script ID:

    bash

    $ pulumi import databricks:index/globalInitScript:GlobalInitScript this script_id
    

    Create GlobalInitScript Resource

    new GlobalInitScript(name: string, args?: GlobalInitScriptArgs, opts?: CustomResourceOptions);
    @overload
    def GlobalInitScript(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         content_base64: Optional[str] = None,
                         enabled: Optional[bool] = None,
                         md5: Optional[str] = None,
                         name: Optional[str] = None,
                         position: Optional[int] = None,
                         source: Optional[str] = None)
    @overload
    def GlobalInitScript(resource_name: str,
                         args: Optional[GlobalInitScriptArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    func NewGlobalInitScript(ctx *Context, name string, args *GlobalInitScriptArgs, opts ...ResourceOption) (*GlobalInitScript, error)
    public GlobalInitScript(string name, GlobalInitScriptArgs? args = null, CustomResourceOptions? opts = null)
    public GlobalInitScript(String name, GlobalInitScriptArgs args)
    public GlobalInitScript(String name, GlobalInitScriptArgs args, CustomResourceOptions options)
    
    type: databricks:GlobalInitScript
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args GlobalInitScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GlobalInitScriptArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GlobalInitScriptArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GlobalInitScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GlobalInitScriptArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    GlobalInitScript Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The GlobalInitScript resource accepts the following input properties:

    ContentBase64 string
    Enabled bool
    specifies if the script is enabled for execution, or not
    Md5 string
    Name string
    the name of the script. It should be unique
    Position int
    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.
    Source string
    Path to script's source code on local filesystem. Conflicts with content_base64
    ContentBase64 string
    Enabled bool
    specifies if the script is enabled for execution, or not
    Md5 string
    Name string
    the name of the script. It should be unique
    Position int
    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.
    Source string
    Path to script's source code on local filesystem. Conflicts with content_base64
    contentBase64 String
    enabled Boolean
    specifies if the script is enabled for execution, or not
    md5 String
    name String
    the name of the script. It should be unique
    position Integer
    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.
    source String
    Path to script's source code on local filesystem. Conflicts with content_base64
    contentBase64 string
    enabled boolean
    specifies if the script is enabled for execution, or not
    md5 string
    name string
    the name of the script. It should be unique
    position number
    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.
    source string
    Path to script's source code on local filesystem. Conflicts with content_base64
    content_base64 str
    enabled bool
    specifies if the script is enabled for execution, or not
    md5 str
    name str
    the name of the script. It should be unique
    position int
    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.
    source str
    Path to script's source code on local filesystem. Conflicts with content_base64
    contentBase64 String
    enabled Boolean
    specifies if the script is enabled for execution, or not
    md5 String
    name String
    the name of the script. It should be unique
    position Number
    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.
    source String
    Path to script's source code on local filesystem. Conflicts with content_base64

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GlobalInitScript resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GlobalInitScript Resource

    Get an existing GlobalInitScript resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GlobalInitScriptState, opts?: CustomResourceOptions): GlobalInitScript
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content_base64: Optional[str] = None,
            enabled: Optional[bool] = None,
            md5: Optional[str] = None,
            name: Optional[str] = None,
            position: Optional[int] = None,
            source: Optional[str] = None) -> GlobalInitScript
    func GetGlobalInitScript(ctx *Context, name string, id IDInput, state *GlobalInitScriptState, opts ...ResourceOption) (*GlobalInitScript, error)
    public static GlobalInitScript Get(string name, Input<string> id, GlobalInitScriptState? state, CustomResourceOptions? opts = null)
    public static GlobalInitScript get(String name, Output<String> id, GlobalInitScriptState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ContentBase64 string
    Enabled bool
    specifies if the script is enabled for execution, or not
    Md5 string
    Name string
    the name of the script. It should be unique
    Position int
    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.
    Source string
    Path to script's source code on local filesystem. Conflicts with content_base64
    ContentBase64 string
    Enabled bool
    specifies if the script is enabled for execution, or not
    Md5 string
    Name string
    the name of the script. It should be unique
    Position int
    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.
    Source string
    Path to script's source code on local filesystem. Conflicts with content_base64
    contentBase64 String
    enabled Boolean
    specifies if the script is enabled for execution, or not
    md5 String
    name String
    the name of the script. It should be unique
    position Integer
    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.
    source String
    Path to script's source code on local filesystem. Conflicts with content_base64
    contentBase64 string
    enabled boolean
    specifies if the script is enabled for execution, or not
    md5 string
    name string
    the name of the script. It should be unique
    position number
    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.
    source string
    Path to script's source code on local filesystem. Conflicts with content_base64
    content_base64 str
    enabled bool
    specifies if the script is enabled for execution, or not
    md5 str
    name str
    the name of the script. It should be unique
    position int
    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.
    source str
    Path to script's source code on local filesystem. Conflicts with content_base64
    contentBase64 String
    enabled Boolean
    specifies if the script is enabled for execution, or not
    md5 String
    name String
    the name of the script. It should be unique
    position Number
    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.
    source String
    Path to script's source code on local filesystem. Conflicts with content_base64

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.34.0 published on Tuesday, Mar 5, 2024 by Pulumi