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

flexibleengine.DliQueue

Explore with Pulumi AI

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

    DLI Queue management Allows you to create a queue. The queue will be bound to specified compute resources.

    Example Usage

    create a queue

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const queue = new flexibleengine.DliQueue("queue", {
        cuCount: 16,
        tags: {
            foo: "bar",
            key: "value",
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    queue = flexibleengine.DliQueue("queue",
        cu_count=16,
        tags={
            "foo": "bar",
            "key": "value",
        })
    
    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.NewDliQueue(ctx, "queue", &flexibleengine.DliQueueArgs{
    			CuCount: pulumi.Float64(16),
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    				"key": pulumi.String("value"),
    			},
    		})
    		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 queue = new Flexibleengine.DliQueue("queue", new()
        {
            CuCount = 16,
            Tags = 
            {
                { "foo", "bar" },
                { "key", "value" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.DliQueue;
    import com.pulumi.flexibleengine.DliQueueArgs;
    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 queue = new DliQueue("queue", DliQueueArgs.builder()
                .cuCount(16)
                .tags(Map.ofEntries(
                    Map.entry("foo", "bar"),
                    Map.entry("key", "value")
                ))
                .build());
    
        }
    }
    
    resources:
      queue:
        type: flexibleengine:DliQueue
        properties:
          cuCount: 16
          tags:
            foo: bar
            key: value
    

    Create DliQueue Resource

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

    Constructor syntax

    new DliQueue(name: string, args: DliQueueArgs, opts?: CustomResourceOptions);
    @overload
    def DliQueue(resource_name: str,
                 args: DliQueueArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def DliQueue(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 cu_count: Optional[float] = None,
                 description: Optional[str] = None,
                 dli_queue_id: Optional[str] = None,
                 name: Optional[str] = None,
                 queue_type: Optional[str] = None,
                 resource_mode: Optional[float] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 timeouts: Optional[DliQueueTimeoutsArgs] = None)
    func NewDliQueue(ctx *Context, name string, args DliQueueArgs, opts ...ResourceOption) (*DliQueue, error)
    public DliQueue(string name, DliQueueArgs args, CustomResourceOptions? opts = null)
    public DliQueue(String name, DliQueueArgs args)
    public DliQueue(String name, DliQueueArgs args, CustomResourceOptions options)
    
    type: flexibleengine:DliQueue
    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 DliQueueArgs
    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 DliQueueArgs
    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 DliQueueArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DliQueueArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DliQueueArgs
    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 dliQueueResource = new Flexibleengine.DliQueue("dliQueueResource", new()
    {
        CuCount = 0,
        Description = "string",
        DliQueueId = "string",
        Name = "string",
        QueueType = "string",
        ResourceMode = 0,
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Flexibleengine.Inputs.DliQueueTimeoutsArgs
        {
            Default = "string",
        },
    });
    
    example, err := flexibleengine.NewDliQueue(ctx, "dliQueueResource", &flexibleengine.DliQueueArgs{
    	CuCount:      pulumi.Float64(0),
    	Description:  pulumi.String("string"),
    	DliQueueId:   pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	QueueType:    pulumi.String("string"),
    	ResourceMode: pulumi.Float64(0),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &flexibleengine.DliQueueTimeoutsArgs{
    		Default: pulumi.String("string"),
    	},
    })
    
    var dliQueueResource = new DliQueue("dliQueueResource", DliQueueArgs.builder()
        .cuCount(0)
        .description("string")
        .dliQueueId("string")
        .name("string")
        .queueType("string")
        .resourceMode(0)
        .tags(Map.of("string", "string"))
        .timeouts(DliQueueTimeoutsArgs.builder()
            .default_("string")
            .build())
        .build());
    
    dli_queue_resource = flexibleengine.DliQueue("dliQueueResource",
        cu_count=0,
        description="string",
        dli_queue_id="string",
        name="string",
        queue_type="string",
        resource_mode=0,
        tags={
            "string": "string",
        },
        timeouts={
            "default": "string",
        })
    
    const dliQueueResource = new flexibleengine.DliQueue("dliQueueResource", {
        cuCount: 0,
        description: "string",
        dliQueueId: "string",
        name: "string",
        queueType: "string",
        resourceMode: 0,
        tags: {
            string: "string",
        },
        timeouts: {
            "default": "string",
        },
    });
    
    type: flexibleengine:DliQueue
    properties:
        cuCount: 0
        description: string
        dliQueueId: string
        name: string
        queueType: string
        resourceMode: 0
        tags:
            string: string
        timeouts:
            default: string
    

    DliQueue 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 DliQueue resource accepts the following input properties:

    CuCount double
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    Description string
    Description of a queue. Changing this parameter will create a new resource.
    DliQueueId string
    Specifies a resource ID in UUID format.
    Name string
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    QueueType string

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    ResourceMode double
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    Tags Dictionary<string, string>
    Label of a queue. Changing this parameter will create a new resource.
    Timeouts DliQueueTimeouts
    CuCount float64
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    Description string
    Description of a queue. Changing this parameter will create a new resource.
    DliQueueId string
    Specifies a resource ID in UUID format.
    Name string
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    QueueType string

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    ResourceMode float64
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    Tags map[string]string
    Label of a queue. Changing this parameter will create a new resource.
    Timeouts DliQueueTimeoutsArgs
    cuCount Double
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    description String
    Description of a queue. Changing this parameter will create a new resource.
    dliQueueId String
    Specifies a resource ID in UUID format.
    name String
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    queueType String

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    resourceMode Double
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    tags Map<String,String>
    Label of a queue. Changing this parameter will create a new resource.
    timeouts DliQueueTimeouts
    cuCount number
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    description string
    Description of a queue. Changing this parameter will create a new resource.
    dliQueueId string
    Specifies a resource ID in UUID format.
    name string
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    queueType string

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    resourceMode number
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    tags {[key: string]: string}
    Label of a queue. Changing this parameter will create a new resource.
    timeouts DliQueueTimeouts
    cu_count float
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    description str
    Description of a queue. Changing this parameter will create a new resource.
    dli_queue_id str
    Specifies a resource ID in UUID format.
    name str
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    queue_type str

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    resource_mode float
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    tags Mapping[str, str]
    Label of a queue. Changing this parameter will create a new resource.
    timeouts DliQueueTimeoutsArgs
    cuCount Number
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    description String
    Description of a queue. Changing this parameter will create a new resource.
    dliQueueId String
    Specifies a resource ID in UUID format.
    name String
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    queueType String

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    resourceMode Number
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    tags Map<String>
    Label of a queue. Changing this parameter will create a new resource.
    timeouts Property Map

    Outputs

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

    CreateTime double
    Time when a queue is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime float64
    Time when a queue is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime Double
    Time when a queue is created.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime number
    Time when a queue is created.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time float
    Time when a queue is created.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime Number
    Time when a queue is created.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DliQueue Resource

    Get an existing DliQueue 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?: DliQueueState, opts?: CustomResourceOptions): DliQueue
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[float] = None,
            cu_count: Optional[float] = None,
            description: Optional[str] = None,
            dli_queue_id: Optional[str] = None,
            name: Optional[str] = None,
            queue_type: Optional[str] = None,
            resource_mode: Optional[float] = None,
            tags: Optional[Mapping[str, str]] = None,
            timeouts: Optional[DliQueueTimeoutsArgs] = None) -> DliQueue
    func GetDliQueue(ctx *Context, name string, id IDInput, state *DliQueueState, opts ...ResourceOption) (*DliQueue, error)
    public static DliQueue Get(string name, Input<string> id, DliQueueState? state, CustomResourceOptions? opts = null)
    public static DliQueue get(String name, Output<String> id, DliQueueState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:DliQueue    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:
    CreateTime double
    Time when a queue is created.
    CuCount double
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    Description string
    Description of a queue. Changing this parameter will create a new resource.
    DliQueueId string
    Specifies a resource ID in UUID format.
    Name string
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    QueueType string

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    ResourceMode double
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    Tags Dictionary<string, string>
    Label of a queue. Changing this parameter will create a new resource.
    Timeouts DliQueueTimeouts
    CreateTime float64
    Time when a queue is created.
    CuCount float64
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    Description string
    Description of a queue. Changing this parameter will create a new resource.
    DliQueueId string
    Specifies a resource ID in UUID format.
    Name string
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    QueueType string

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    ResourceMode float64
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    Tags map[string]string
    Label of a queue. Changing this parameter will create a new resource.
    Timeouts DliQueueTimeoutsArgs
    createTime Double
    Time when a queue is created.
    cuCount Double
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    description String
    Description of a queue. Changing this parameter will create a new resource.
    dliQueueId String
    Specifies a resource ID in UUID format.
    name String
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    queueType String

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    resourceMode Double
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    tags Map<String,String>
    Label of a queue. Changing this parameter will create a new resource.
    timeouts DliQueueTimeouts
    createTime number
    Time when a queue is created.
    cuCount number
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    description string
    Description of a queue. Changing this parameter will create a new resource.
    dliQueueId string
    Specifies a resource ID in UUID format.
    name string
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    queueType string

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    resourceMode number
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    tags {[key: string]: string}
    Label of a queue. Changing this parameter will create a new resource.
    timeouts DliQueueTimeouts
    create_time float
    Time when a queue is created.
    cu_count float
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    description str
    Description of a queue. Changing this parameter will create a new resource.
    dli_queue_id str
    Specifies a resource ID in UUID format.
    name str
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    queue_type str

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    resource_mode float
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    tags Mapping[str, str]
    Label of a queue. Changing this parameter will create a new resource.
    timeouts DliQueueTimeoutsArgs
    createTime Number
    Time when a queue is created.
    cuCount Number
    Minimum number of CUs that are bound to a queue. Initial value can be 16, 64, or 256. When scale_out or scale_in, the number must be a multiple of 16
    description String
    Description of a queue. Changing this parameter will create a new resource.
    dliQueueId String
    Specifies a resource ID in UUID format.
    name String
    Name of a queue. Name of a newly created resource queue. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). Length range: 1 to 128 characters. Changing this parameter will create a new resource.
    queueType String

    Indicates the queue type. Changing this parameter will create a new resource. The options are as follows:

    • sql,
    • general

    The default value is sql.

    resourceMode Number
    Queue resource mode. Changing this parameter will create a new resource. The options are as follows:

    • 0: indicates the shared resource mode.
    • 1: indicates the exclusive resource mode.
    tags Map<String>
    Label of a queue. Changing this parameter will create a new resource.
    timeouts Property Map

    Supporting Types

    DliQueueTimeouts, DliQueueTimeoutsArgs

    Default string
    Default string
    default_ String
    default string
    default String

    Import

    DLI queue can be imported by id. For example,

    $ pulumi import flexibleengine:index/dliQueue:DliQueue example abc123
    

    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