1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. DliGlobalVariable
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.DliGlobalVariable

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a DLI global variable resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const test = new flexibleengine.DliGlobalVariable("test", {value: "abc"});
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    test = flexibleengine.DliGlobalVariable("test", value="abc")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewDliGlobalVariable(ctx, "test", &flexibleengine.DliGlobalVariableArgs{
    			Value: pulumi.String("abc"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Flexibleengine.DliGlobalVariable("test", new()
        {
            Value = "abc",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.DliGlobalVariable;
    import com.pulumi.flexibleengine.DliGlobalVariableArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var test = new DliGlobalVariable("test", DliGlobalVariableArgs.builder()
                .value("abc")
                .build());
    
        }
    }
    
    resources:
      test:
        type: flexibleengine:DliGlobalVariable
        properties:
          value: abc
    

    Create DliGlobalVariable Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DliGlobalVariable(name: string, args: DliGlobalVariableArgs, opts?: CustomResourceOptions);
    @overload
    def DliGlobalVariable(resource_name: str,
                          args: DliGlobalVariableArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def DliGlobalVariable(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          value: Optional[str] = None,
                          dli_global_variable_id: Optional[str] = None,
                          is_sensitive: Optional[bool] = None,
                          name: Optional[str] = None,
                          region: Optional[str] = None)
    func NewDliGlobalVariable(ctx *Context, name string, args DliGlobalVariableArgs, opts ...ResourceOption) (*DliGlobalVariable, error)
    public DliGlobalVariable(string name, DliGlobalVariableArgs args, CustomResourceOptions? opts = null)
    public DliGlobalVariable(String name, DliGlobalVariableArgs args)
    public DliGlobalVariable(String name, DliGlobalVariableArgs args, CustomResourceOptions options)
    
    type: flexibleengine:DliGlobalVariable
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DliGlobalVariableArgs
    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 DliGlobalVariableArgs
    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 DliGlobalVariableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DliGlobalVariableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DliGlobalVariableArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dliGlobalVariableResource = new Flexibleengine.DliGlobalVariable("dliGlobalVariableResource", new()
    {
        Value = "string",
        DliGlobalVariableId = "string",
        IsSensitive = false,
        Name = "string",
        Region = "string",
    });
    
    example, err := flexibleengine.NewDliGlobalVariable(ctx, "dliGlobalVariableResource", &flexibleengine.DliGlobalVariableArgs{
    	Value:               pulumi.String("string"),
    	DliGlobalVariableId: pulumi.String("string"),
    	IsSensitive:         pulumi.Bool(false),
    	Name:                pulumi.String("string"),
    	Region:              pulumi.String("string"),
    })
    
    var dliGlobalVariableResource = new DliGlobalVariable("dliGlobalVariableResource", DliGlobalVariableArgs.builder()
        .value("string")
        .dliGlobalVariableId("string")
        .isSensitive(false)
        .name("string")
        .region("string")
        .build());
    
    dli_global_variable_resource = flexibleengine.DliGlobalVariable("dliGlobalVariableResource",
        value="string",
        dli_global_variable_id="string",
        is_sensitive=False,
        name="string",
        region="string")
    
    const dliGlobalVariableResource = new flexibleengine.DliGlobalVariable("dliGlobalVariableResource", {
        value: "string",
        dliGlobalVariableId: "string",
        isSensitive: false,
        name: "string",
        region: "string",
    });
    
    type: flexibleengine:DliGlobalVariable
    properties:
        dliGlobalVariableId: string
        isSensitive: false
        name: string
        region: string
        value: string
    

    DliGlobalVariable Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DliGlobalVariable resource accepts the following input properties:

    Value string
    The value of global variable.
    DliGlobalVariableId string
    The resource ID which equals the name.
    IsSensitive bool
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    Name string

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    Value string
    The value of global variable.
    DliGlobalVariableId string
    The resource ID which equals the name.
    IsSensitive bool
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    Name string

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    value String
    The value of global variable.
    dliGlobalVariableId String
    The resource ID which equals the name.
    isSensitive Boolean
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    name String

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    value string
    The value of global variable.
    dliGlobalVariableId string
    The resource ID which equals the name.
    isSensitive boolean
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    name string

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    value str
    The value of global variable.
    dli_global_variable_id str
    The resource ID which equals the name.
    is_sensitive bool
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    name str

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    region str
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    value String
    The value of global variable.
    dliGlobalVariableId String
    The resource ID which equals the name.
    isSensitive Boolean
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    name String

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DliGlobalVariable 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 DliGlobalVariable Resource

    Get an existing DliGlobalVariable 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?: DliGlobalVariableState, opts?: CustomResourceOptions): DliGlobalVariable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dli_global_variable_id: Optional[str] = None,
            is_sensitive: Optional[bool] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            value: Optional[str] = None) -> DliGlobalVariable
    func GetDliGlobalVariable(ctx *Context, name string, id IDInput, state *DliGlobalVariableState, opts ...ResourceOption) (*DliGlobalVariable, error)
    public static DliGlobalVariable Get(string name, Input<string> id, DliGlobalVariableState? state, CustomResourceOptions? opts = null)
    public static DliGlobalVariable get(String name, Output<String> id, DliGlobalVariableState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:DliGlobalVariable    get:      id: ${id}
    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:
    DliGlobalVariableId string
    The resource ID which equals the name.
    IsSensitive bool
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    Name string

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    Value string
    The value of global variable.
    DliGlobalVariableId string
    The resource ID which equals the name.
    IsSensitive bool
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    Name string

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    Value string
    The value of global variable.
    dliGlobalVariableId String
    The resource ID which equals the name.
    isSensitive Boolean
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    name String

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    value String
    The value of global variable.
    dliGlobalVariableId string
    The resource ID which equals the name.
    isSensitive boolean
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    name string

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    value string
    The value of global variable.
    dli_global_variable_id str
    The resource ID which equals the name.
    is_sensitive bool
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    name str

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    region str
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    value str
    The value of global variable.
    dliGlobalVariableId String
    The resource ID which equals the name.
    isSensitive Boolean
    Whether to set a variable as a sensitive variable. The default value is false. Changing this parameter will create a new resource.
    name String

    The name of a global variable. This parameter can contain a maximum of 128 characters, which may consist of digits, letters, and underscores (_), but cannot start with an underscore (_) or contain only digits.

    Changing this parameter will create a new resource.

    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    value String
    The value of global variable.

    Import

    The global variable can be imported using the id which equals the name, e.g.

    $ pulumi import flexibleengine:index/dliGlobalVariable:DliGlobalVariable test demo_name
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud