flexibleengine.DliQueue
Explore with Pulumi AI
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:
- Cu
Count double - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- Dli
Queue stringId - 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.
- Queue
Type 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
.- Resource
Mode 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.
- Dictionary<string, string>
- Label of a queue. Changing this parameter will create a new resource.
- Timeouts
Dli
Queue Timeouts
- Cu
Count float64 - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- Dli
Queue stringId - 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.
- Queue
Type 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
.- Resource
Mode 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.
- map[string]string
- Label of a queue. Changing this parameter will create a new resource.
- Timeouts
Dli
Queue Timeouts Args
- cu
Count Double - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- dli
Queue StringId - 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.
- queue
Type 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
.- resource
Mode 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.
- Map<String,String>
- Label of a queue. Changing this parameter will create a new resource.
- timeouts
Dli
Queue Timeouts
- cu
Count number - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- dli
Queue stringId - 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.
- queue
Type 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
.- resource
Mode 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.
- {[key: string]: string}
- Label of a queue. Changing this parameter will create a new resource.
- timeouts
Dli
Queue Timeouts
- cu_
count float - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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_ strid - 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.
- Mapping[str, str]
- Label of a queue. Changing this parameter will create a new resource.
- timeouts
Dli
Queue Timeouts Args
- cu
Count Number - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- dli
Queue StringId - 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.
- queue
Type 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
.- resource
Mode 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.
- 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:
- Create
Time double - Time when a queue is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time float64 - Time when a queue is created.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time Double - Time when a queue is created.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time 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.
- create
Time 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.
- Create
Time double - Time when a queue is created.
- Cu
Count double - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- Dli
Queue stringId - 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.
- Queue
Type 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
.- Resource
Mode 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.
- Dictionary<string, string>
- Label of a queue. Changing this parameter will create a new resource.
- Timeouts
Dli
Queue Timeouts
- Create
Time float64 - Time when a queue is created.
- Cu
Count float64 - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- Dli
Queue stringId - 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.
- Queue
Type 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
.- Resource
Mode 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.
- map[string]string
- Label of a queue. Changing this parameter will create a new resource.
- Timeouts
Dli
Queue Timeouts Args
- create
Time Double - Time when a queue is created.
- cu
Count Double - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- dli
Queue StringId - 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.
- queue
Type 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
.- resource
Mode 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.
- Map<String,String>
- Label of a queue. Changing this parameter will create a new resource.
- timeouts
Dli
Queue Timeouts
- create
Time number - Time when a queue is created.
- cu
Count number - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- dli
Queue stringId - 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.
- queue
Type 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
.- resource
Mode 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.
- {[key: string]: string}
- Label of a queue. Changing this parameter will create a new resource.
- timeouts
Dli
Queue Timeouts
- 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
, or256
. 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_ strid - 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.
- Mapping[str, str]
- Label of a queue. Changing this parameter will create a new resource.
- timeouts
Dli
Queue Timeouts Args
- create
Time Number - Time when a queue is created.
- cu
Count Number - Minimum number of CUs that are bound to a queue. Initial value can be
16
,64
, or256
. 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.
- dli
Queue StringId - 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.
- queue
Type 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
.- resource
Mode 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.
- 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 str
- 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.