1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. DisStreamV2
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.DisStreamV2

Explore with Pulumi AI

Up-to-date reference of API arguments for DIS stream you can get at documentation portal

Manages a DIS Stream in the OpenTelekomCloud DIS Service.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const stream1 = new opentelekomcloud.DisStreamV2("stream1", {
    autoScaleMaxPartitionCount: 4,
    autoScaleMinPartitionCount: 1,
    compressionFormat: "zip",
    dataType: "BLOB",
    partitionCount: 3,
    retentionPeriod: 24,
    streamType: "COMMON",
    tags: {
        foo: "bar",
    },
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

stream1 = opentelekomcloud.DisStreamV2("stream1",
    auto_scale_max_partition_count=4,
    auto_scale_min_partition_count=1,
    compression_format="zip",
    data_type="BLOB",
    partition_count=3,
    retention_period=24,
    stream_type="COMMON",
    tags={
        "foo": "bar",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewDisStreamV2(ctx, "stream1", &opentelekomcloud.DisStreamV2Args{
			AutoScaleMaxPartitionCount: pulumi.Float64(4),
			AutoScaleMinPartitionCount: pulumi.Float64(1),
			CompressionFormat:          pulumi.String("zip"),
			DataType:                   pulumi.String("BLOB"),
			PartitionCount:             pulumi.Float64(3),
			RetentionPeriod:            pulumi.Float64(24),
			StreamType:                 pulumi.String("COMMON"),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var stream1 = new Opentelekomcloud.DisStreamV2("stream1", new()
    {
        AutoScaleMaxPartitionCount = 4,
        AutoScaleMinPartitionCount = 1,
        CompressionFormat = "zip",
        DataType = "BLOB",
        PartitionCount = 3,
        RetentionPeriod = 24,
        StreamType = "COMMON",
        Tags = 
        {
            { "foo", "bar" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DisStreamV2;
import com.pulumi.opentelekomcloud.DisStreamV2Args;
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 stream1 = new DisStreamV2("stream1", DisStreamV2Args.builder()
            .autoScaleMaxPartitionCount(4)
            .autoScaleMinPartitionCount(1)
            .compressionFormat("zip")
            .dataType("BLOB")
            .partitionCount(3)
            .retentionPeriod(24)
            .streamType("COMMON")
            .tags(Map.of("foo", "bar"))
            .build());

    }
}
Copy
resources:
  stream1:
    type: opentelekomcloud:DisStreamV2
    properties:
      autoScaleMaxPartitionCount: 4
      autoScaleMinPartitionCount: 1
      compressionFormat: zip
      dataType: BLOB
      partitionCount: 3
      retentionPeriod: 24
      streamType: COMMON
      tags:
        foo: bar
Copy

Create DisStreamV2 Resource

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

Constructor syntax

new DisStreamV2(name: string, args: DisStreamV2Args, opts?: CustomResourceOptions);
@overload
def DisStreamV2(resource_name: str,
                args: DisStreamV2Args,
                opts: Optional[ResourceOptions] = None)

@overload
def DisStreamV2(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                partition_count: Optional[float] = None,
                auto_scale_max_partition_count: Optional[float] = None,
                auto_scale_min_partition_count: Optional[float] = None,
                compression_format: Optional[str] = None,
                data_type: Optional[str] = None,
                dis_stream_v2_id: Optional[str] = None,
                name: Optional[str] = None,
                retention_period: Optional[float] = None,
                stream_type: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                timeouts: Optional[DisStreamV2TimeoutsArgs] = None)
func NewDisStreamV2(ctx *Context, name string, args DisStreamV2Args, opts ...ResourceOption) (*DisStreamV2, error)
public DisStreamV2(string name, DisStreamV2Args args, CustomResourceOptions? opts = null)
public DisStreamV2(String name, DisStreamV2Args args)
public DisStreamV2(String name, DisStreamV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DisStreamV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DisStreamV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DisStreamV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DisStreamV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DisStreamV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DisStreamV2Args
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 disStreamV2Resource = new Opentelekomcloud.DisStreamV2("disStreamV2Resource", new()
{
    PartitionCount = 0,
    AutoScaleMaxPartitionCount = 0,
    AutoScaleMinPartitionCount = 0,
    CompressionFormat = "string",
    DataType = "string",
    DisStreamV2Id = "string",
    Name = "string",
    RetentionPeriod = 0,
    StreamType = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Timeouts = new Opentelekomcloud.Inputs.DisStreamV2TimeoutsArgs
    {
        Update = "string",
    },
});
Copy
example, err := opentelekomcloud.NewDisStreamV2(ctx, "disStreamV2Resource", &opentelekomcloud.DisStreamV2Args{
	PartitionCount:             pulumi.Float64(0),
	AutoScaleMaxPartitionCount: pulumi.Float64(0),
	AutoScaleMinPartitionCount: pulumi.Float64(0),
	CompressionFormat:          pulumi.String("string"),
	DataType:                   pulumi.String("string"),
	DisStreamV2Id:              pulumi.String("string"),
	Name:                       pulumi.String("string"),
	RetentionPeriod:            pulumi.Float64(0),
	StreamType:                 pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Timeouts: &opentelekomcloud.DisStreamV2TimeoutsArgs{
		Update: pulumi.String("string"),
	},
})
Copy
var disStreamV2Resource = new DisStreamV2("disStreamV2Resource", DisStreamV2Args.builder()
    .partitionCount(0)
    .autoScaleMaxPartitionCount(0)
    .autoScaleMinPartitionCount(0)
    .compressionFormat("string")
    .dataType("string")
    .disStreamV2Id("string")
    .name("string")
    .retentionPeriod(0)
    .streamType("string")
    .tags(Map.of("string", "string"))
    .timeouts(DisStreamV2TimeoutsArgs.builder()
        .update("string")
        .build())
    .build());
Copy
dis_stream_v2_resource = opentelekomcloud.DisStreamV2("disStreamV2Resource",
    partition_count=0,
    auto_scale_max_partition_count=0,
    auto_scale_min_partition_count=0,
    compression_format="string",
    data_type="string",
    dis_stream_v2_id="string",
    name="string",
    retention_period=0,
    stream_type="string",
    tags={
        "string": "string",
    },
    timeouts={
        "update": "string",
    })
Copy
const disStreamV2Resource = new opentelekomcloud.DisStreamV2("disStreamV2Resource", {
    partitionCount: 0,
    autoScaleMaxPartitionCount: 0,
    autoScaleMinPartitionCount: 0,
    compressionFormat: "string",
    dataType: "string",
    disStreamV2Id: "string",
    name: "string",
    retentionPeriod: 0,
    streamType: "string",
    tags: {
        string: "string",
    },
    timeouts: {
        update: "string",
    },
});
Copy
type: opentelekomcloud:DisStreamV2
properties:
    autoScaleMaxPartitionCount: 0
    autoScaleMinPartitionCount: 0
    compressionFormat: string
    dataType: string
    disStreamV2Id: string
    name: string
    partitionCount: 0
    retentionPeriod: 0
    streamType: string
    tags:
        string: string
    timeouts:
        update: string
Copy

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

PartitionCount This property is required. double
Number of partitions. Partitions are the base throughput unit of a DIS stream.
AutoScaleMaxPartitionCount double
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
AutoScaleMinPartitionCount double
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
CompressionFormat string
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
DataType string
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
DisStreamV2Id string
Unique identifier of the partition.
Name string
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
RetentionPeriod double
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
StreamType string
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
Tags Dictionary<string, string>
Tags key/value pairs to associate with the instance.
Timeouts DisStreamV2Timeouts
PartitionCount This property is required. float64
Number of partitions. Partitions are the base throughput unit of a DIS stream.
AutoScaleMaxPartitionCount float64
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
AutoScaleMinPartitionCount float64
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
CompressionFormat string
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
DataType string
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
DisStreamV2Id string
Unique identifier of the partition.
Name string
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
RetentionPeriod float64
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
StreamType string
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
Tags map[string]string
Tags key/value pairs to associate with the instance.
Timeouts DisStreamV2TimeoutsArgs
partitionCount This property is required. Double
Number of partitions. Partitions are the base throughput unit of a DIS stream.
autoScaleMaxPartitionCount Double
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
autoScaleMinPartitionCount Double
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
compressionFormat String
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
dataType String
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
disStreamV2Id String
Unique identifier of the partition.
name String
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
retentionPeriod Double
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
streamType String
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
tags Map<String,String>
Tags key/value pairs to associate with the instance.
timeouts DisStreamV2Timeouts
partitionCount This property is required. number
Number of partitions. Partitions are the base throughput unit of a DIS stream.
autoScaleMaxPartitionCount number
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
autoScaleMinPartitionCount number
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
compressionFormat string
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
dataType string
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
disStreamV2Id string
Unique identifier of the partition.
name string
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
retentionPeriod number
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
streamType string
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
tags {[key: string]: string}
Tags key/value pairs to associate with the instance.
timeouts DisStreamV2Timeouts
partition_count This property is required. float
Number of partitions. Partitions are the base throughput unit of a DIS stream.
auto_scale_max_partition_count float
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
auto_scale_min_partition_count float
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
compression_format str
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
data_type str
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
dis_stream_v2_id str
Unique identifier of the partition.
name str
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
retention_period float
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
stream_type str
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
tags Mapping[str, str]
Tags key/value pairs to associate with the instance.
timeouts DisStreamV2TimeoutsArgs
partitionCount This property is required. Number
Number of partitions. Partitions are the base throughput unit of a DIS stream.
autoScaleMaxPartitionCount Number
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
autoScaleMinPartitionCount Number
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
compressionFormat String
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
dataType String
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
disStreamV2Id String
Unique identifier of the partition.
name String
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
retentionPeriod Number
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
streamType String
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
tags Map<String>
Tags key/value pairs to associate with the instance.
timeouts Property Map

Outputs

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

Created double
Time when the stream is created. The value is a timestamp.
Id string
The provider-assigned unique ID for this managed resource.
Partitions List<DisStreamV2Partition>
Stream partitions details.
ReadablePartitionCount double
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
Status string
Current status of the partition.
StreamId string
Unique identifier of the stream.
WritablePartitionCount double
Total number of writable partitions (including partitions in ACTIVE state only).
Created float64
Time when the stream is created. The value is a timestamp.
Id string
The provider-assigned unique ID for this managed resource.
Partitions []DisStreamV2Partition
Stream partitions details.
ReadablePartitionCount float64
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
Status string
Current status of the partition.
StreamId string
Unique identifier of the stream.
WritablePartitionCount float64
Total number of writable partitions (including partitions in ACTIVE state only).
created Double
Time when the stream is created. The value is a timestamp.
id String
The provider-assigned unique ID for this managed resource.
partitions List<DisStreamV2Partition>
Stream partitions details.
readablePartitionCount Double
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
status String
Current status of the partition.
streamId String
Unique identifier of the stream.
writablePartitionCount Double
Total number of writable partitions (including partitions in ACTIVE state only).
created number
Time when the stream is created. The value is a timestamp.
id string
The provider-assigned unique ID for this managed resource.
partitions DisStreamV2Partition[]
Stream partitions details.
readablePartitionCount number
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
status string
Current status of the partition.
streamId string
Unique identifier of the stream.
writablePartitionCount number
Total number of writable partitions (including partitions in ACTIVE state only).
created float
Time when the stream is created. The value is a timestamp.
id str
The provider-assigned unique ID for this managed resource.
partitions Sequence[DisStreamV2Partition]
Stream partitions details.
readable_partition_count float
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
status str
Current status of the partition.
stream_id str
Unique identifier of the stream.
writable_partition_count float
Total number of writable partitions (including partitions in ACTIVE state only).
created Number
Time when the stream is created. The value is a timestamp.
id String
The provider-assigned unique ID for this managed resource.
partitions List<Property Map>
Stream partitions details.
readablePartitionCount Number
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
status String
Current status of the partition.
streamId String
Unique identifier of the stream.
writablePartitionCount Number
Total number of writable partitions (including partitions in ACTIVE state only).

Look up Existing DisStreamV2 Resource

Get an existing DisStreamV2 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?: DisStreamV2State, opts?: CustomResourceOptions): DisStreamV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_scale_max_partition_count: Optional[float] = None,
        auto_scale_min_partition_count: Optional[float] = None,
        compression_format: Optional[str] = None,
        created: Optional[float] = None,
        data_type: Optional[str] = None,
        dis_stream_v2_id: Optional[str] = None,
        name: Optional[str] = None,
        partition_count: Optional[float] = None,
        partitions: Optional[Sequence[DisStreamV2PartitionArgs]] = None,
        readable_partition_count: Optional[float] = None,
        retention_period: Optional[float] = None,
        status: Optional[str] = None,
        stream_id: Optional[str] = None,
        stream_type: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        timeouts: Optional[DisStreamV2TimeoutsArgs] = None,
        writable_partition_count: Optional[float] = None) -> DisStreamV2
func GetDisStreamV2(ctx *Context, name string, id IDInput, state *DisStreamV2State, opts ...ResourceOption) (*DisStreamV2, error)
public static DisStreamV2 Get(string name, Input<string> id, DisStreamV2State? state, CustomResourceOptions? opts = null)
public static DisStreamV2 get(String name, Output<String> id, DisStreamV2State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:DisStreamV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AutoScaleMaxPartitionCount double
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
AutoScaleMinPartitionCount double
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
CompressionFormat string
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
Created double
Time when the stream is created. The value is a timestamp.
DataType string
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
DisStreamV2Id string
Unique identifier of the partition.
Name string
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
PartitionCount double
Number of partitions. Partitions are the base throughput unit of a DIS stream.
Partitions List<DisStreamV2Partition>
Stream partitions details.
ReadablePartitionCount double
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
RetentionPeriod double
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
Status string
Current status of the partition.
StreamId string
Unique identifier of the stream.
StreamType string
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
Tags Dictionary<string, string>
Tags key/value pairs to associate with the instance.
Timeouts DisStreamV2Timeouts
WritablePartitionCount double
Total number of writable partitions (including partitions in ACTIVE state only).
AutoScaleMaxPartitionCount float64
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
AutoScaleMinPartitionCount float64
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
CompressionFormat string
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
Created float64
Time when the stream is created. The value is a timestamp.
DataType string
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
DisStreamV2Id string
Unique identifier of the partition.
Name string
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
PartitionCount float64
Number of partitions. Partitions are the base throughput unit of a DIS stream.
Partitions []DisStreamV2PartitionArgs
Stream partitions details.
ReadablePartitionCount float64
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
RetentionPeriod float64
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
Status string
Current status of the partition.
StreamId string
Unique identifier of the stream.
StreamType string
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
Tags map[string]string
Tags key/value pairs to associate with the instance.
Timeouts DisStreamV2TimeoutsArgs
WritablePartitionCount float64
Total number of writable partitions (including partitions in ACTIVE state only).
autoScaleMaxPartitionCount Double
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
autoScaleMinPartitionCount Double
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
compressionFormat String
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
created Double
Time when the stream is created. The value is a timestamp.
dataType String
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
disStreamV2Id String
Unique identifier of the partition.
name String
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
partitionCount Double
Number of partitions. Partitions are the base throughput unit of a DIS stream.
partitions List<DisStreamV2Partition>
Stream partitions details.
readablePartitionCount Double
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
retentionPeriod Double
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
status String
Current status of the partition.
streamId String
Unique identifier of the stream.
streamType String
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
tags Map<String,String>
Tags key/value pairs to associate with the instance.
timeouts DisStreamV2Timeouts
writablePartitionCount Double
Total number of writable partitions (including partitions in ACTIVE state only).
autoScaleMaxPartitionCount number
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
autoScaleMinPartitionCount number
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
compressionFormat string
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
created number
Time when the stream is created. The value is a timestamp.
dataType string
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
disStreamV2Id string
Unique identifier of the partition.
name string
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
partitionCount number
Number of partitions. Partitions are the base throughput unit of a DIS stream.
partitions DisStreamV2Partition[]
Stream partitions details.
readablePartitionCount number
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
retentionPeriod number
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
status string
Current status of the partition.
streamId string
Unique identifier of the stream.
streamType string
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
tags {[key: string]: string}
Tags key/value pairs to associate with the instance.
timeouts DisStreamV2Timeouts
writablePartitionCount number
Total number of writable partitions (including partitions in ACTIVE state only).
auto_scale_max_partition_count float
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
auto_scale_min_partition_count float
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
compression_format str
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
created float
Time when the stream is created. The value is a timestamp.
data_type str
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
dis_stream_v2_id str
Unique identifier of the partition.
name str
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
partition_count float
Number of partitions. Partitions are the base throughput unit of a DIS stream.
partitions Sequence[DisStreamV2PartitionArgs]
Stream partitions details.
readable_partition_count float
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
retention_period float
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
status str
Current status of the partition.
stream_id str
Unique identifier of the stream.
stream_type str
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
tags Mapping[str, str]
Tags key/value pairs to associate with the instance.
timeouts DisStreamV2TimeoutsArgs
writable_partition_count float
Total number of writable partitions (including partitions in ACTIVE state only).
autoScaleMaxPartitionCount Number
Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
autoScaleMinPartitionCount Number
Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
compressionFormat String
Data compression type. The following types are available: snappy, gzip, zip. Data is not compressed by default.
created Number
Time when the stream is created. The value is a timestamp.
dataType String
Source data type. BLOB: a collection of binary data stored as a single entity in a database management system. Default value: BLOB.
disStreamV2Id String
Unique identifier of the partition.
name String
Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
partitionCount Number
Number of partitions. Partitions are the base throughput unit of a DIS stream.
partitions List<Property Map>
Stream partitions details.
readablePartitionCount Number
Total number of readable partitions (including partitions in ACTIVE and DELETED state).
retentionPeriod Number
Period of time for which data is retained in the stream. Value range: 24-72 Unit: hour. If this parameter is left blank, the default value is used. Maximum: 72 Default: 24
status String
Current status of the partition.
streamId String
Unique identifier of the stream.
streamType String
Stream type.

  • COMMON: a common stream with a bandwidth of 1 MB/s
  • ADVANCED: an advanced stream with a bandwidth of 5 MB/s
tags Map<String>
Tags key/value pairs to associate with the instance.
timeouts Property Map
writablePartitionCount Number
Total number of writable partitions (including partitions in ACTIVE state only).

Supporting Types

DisStreamV2Partition
, DisStreamV2PartitionArgs

HashRange This property is required. string
Possible value range of the hash key used by the partition.
Id This property is required. string
Unique identifier of the partition.
ParentPartitions This property is required. string
Parent partition.
SequenceNumberRange This property is required. string
Sequence number range of the partition.
Status This property is required. string
Current status of the partition.
HashRange This property is required. string
Possible value range of the hash key used by the partition.
Id This property is required. string
Unique identifier of the partition.
ParentPartitions This property is required. string
Parent partition.
SequenceNumberRange This property is required. string
Sequence number range of the partition.
Status This property is required. string
Current status of the partition.
hashRange This property is required. String
Possible value range of the hash key used by the partition.
id This property is required. String
Unique identifier of the partition.
parentPartitions This property is required. String
Parent partition.
sequenceNumberRange This property is required. String
Sequence number range of the partition.
status This property is required. String
Current status of the partition.
hashRange This property is required. string
Possible value range of the hash key used by the partition.
id This property is required. string
Unique identifier of the partition.
parentPartitions This property is required. string
Parent partition.
sequenceNumberRange This property is required. string
Sequence number range of the partition.
status This property is required. string
Current status of the partition.
hash_range This property is required. str
Possible value range of the hash key used by the partition.
id This property is required. str
Unique identifier of the partition.
parent_partitions This property is required. str
Parent partition.
sequence_number_range This property is required. str
Sequence number range of the partition.
status This property is required. str
Current status of the partition.
hashRange This property is required. String
Possible value range of the hash key used by the partition.
id This property is required. String
Unique identifier of the partition.
parentPartitions This property is required. String
Parent partition.
sequenceNumberRange This property is required. String
Sequence number range of the partition.
status This property is required. String
Current status of the partition.

DisStreamV2Timeouts
, DisStreamV2TimeoutsArgs

Update string
Update string
update String
update string
update str
update String

Import

Stream can be imported using the stream name, e.g.

$ pulumi import opentelekomcloud:index/disStreamV2:DisStreamV2 stream_1 my_stream
Copy

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

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.