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",
},
});
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",
})
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
})
}
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" },
},
});
});
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());
}
}
resources:
stream1:
type: opentelekomcloud:DisStreamV2
properties:
autoScaleMaxPartitionCount: 4
autoScaleMinPartitionCount: 1
compressionFormat: zip
dataType: BLOB
partitionCount: 3
retentionPeriod: 24
streamType: COMMON
tags:
foo: bar
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 string
- The unique name of the resource.
- args DisStreamV2Args
- 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 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 string
- The unique name of the resource.
- args DisStreamV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DisStreamV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
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());
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",
})
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",
},
});
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
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:
- Partition
Count double - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- Auto
Scale doubleMax Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- Auto
Scale doubleMin Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- Compression
Format string - Data compression type. The following types are available:
snappy
,gzip
,zip
. Data is not compressed by default. - Data
Type string - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - Dis
Stream stringV2Id - 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 (-).
- Retention
Period 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
: 72Default
: 24 - Stream
Type string - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- Dictionary<string, string>
- Tags key/value pairs to associate with the instance.
- Timeouts
Dis
Stream V2Timeouts
- Partition
Count float64 - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- Auto
Scale float64Max Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- Auto
Scale float64Min Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- Compression
Format string - Data compression type. The following types are available:
snappy
,gzip
,zip
. Data is not compressed by default. - Data
Type string - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - Dis
Stream stringV2Id - 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 (-).
- Retention
Period 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
: 72Default
: 24 - Stream
Type string - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- map[string]string
- Tags key/value pairs to associate with the instance.
- Timeouts
Dis
Stream V2Timeouts Args
- partition
Count Double - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- auto
Scale DoubleMax Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- auto
Scale DoubleMin Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- compression
Format String - Data compression type. The following types are available:
snappy
,gzip
,zip
. Data is not compressed by default. - data
Type String - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - dis
Stream StringV2Id - 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 (-).
- retention
Period 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
: 72Default
: 24 - stream
Type String - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- Map<String,String>
- Tags key/value pairs to associate with the instance.
- timeouts
Dis
Stream V2Timeouts
- partition
Count number - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- auto
Scale numberMax Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- auto
Scale numberMin Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- compression
Format string - Data compression type. The following types are available:
snappy
,gzip
,zip
. Data is not compressed by default. - data
Type string - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - dis
Stream stringV2Id - 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 (-).
- retention
Period 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
: 72Default
: 24 - stream
Type string - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- {[key: string]: string}
- Tags key/value pairs to associate with the instance.
- timeouts
Dis
Stream V2Timeouts
- partition_
count float - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- auto_
scale_ floatmax_ partition_ count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- auto_
scale_ floatmin_ partition_ count - 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_ strv2_ id - 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
: 72Default
: 24 - stream_
type str - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- Mapping[str, str]
- Tags key/value pairs to associate with the instance.
- timeouts
Dis
Stream V2Timeouts Args
- partition
Count Number - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- auto
Scale NumberMax Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- auto
Scale NumberMin Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- compression
Format String - Data compression type. The following types are available:
snappy
,gzip
,zip
. Data is not compressed by default. - data
Type String - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - dis
Stream StringV2Id - 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 (-).
- retention
Period 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
: 72Default
: 24 - stream
Type String - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- 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<Dis
Stream V2Partition> - Stream partitions details.
- Readable
Partition doubleCount - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- Status string
- Current status of the partition.
- Stream
Id string - Unique identifier of the stream.
- Writable
Partition doubleCount - 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
[]Dis
Stream V2Partition - Stream partitions details.
- Readable
Partition float64Count - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- Status string
- Current status of the partition.
- Stream
Id string - Unique identifier of the stream.
- Writable
Partition float64Count - 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<Dis
Stream V2Partition> - Stream partitions details.
- readable
Partition DoubleCount - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- status String
- Current status of the partition.
- stream
Id String - Unique identifier of the stream.
- writable
Partition DoubleCount - 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
Dis
Stream V2Partition[] - Stream partitions details.
- readable
Partition numberCount - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- status string
- Current status of the partition.
- stream
Id string - Unique identifier of the stream.
- writable
Partition numberCount - 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[Dis
Stream V2Partition] - Stream partitions details.
- readable_
partition_ floatcount - 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_ floatcount - 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.
- readable
Partition NumberCount - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- status String
- Current status of the partition.
- stream
Id String - Unique identifier of the stream.
- writable
Partition NumberCount - 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
- 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.
- Auto
Scale doubleMax Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- Auto
Scale doubleMin Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- Compression
Format 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.
- Data
Type string - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - Dis
Stream stringV2Id - 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 (-).
- Partition
Count double - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- Partitions
List<Dis
Stream V2Partition> - Stream partitions details.
- Readable
Partition doubleCount - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- Retention
Period 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
: 72Default
: 24 - Status string
- Current status of the partition.
- Stream
Id string - Unique identifier of the stream.
- Stream
Type string - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- Dictionary<string, string>
- Tags key/value pairs to associate with the instance.
- Timeouts
Dis
Stream V2Timeouts - Writable
Partition doubleCount - Total number of writable partitions (including partitions in ACTIVE state only).
- Auto
Scale float64Max Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- Auto
Scale float64Min Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- Compression
Format 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.
- Data
Type string - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - Dis
Stream stringV2Id - 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 (-).
- Partition
Count float64 - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- Partitions
[]Dis
Stream V2Partition Args - Stream partitions details.
- Readable
Partition float64Count - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- Retention
Period 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
: 72Default
: 24 - Status string
- Current status of the partition.
- Stream
Id string - Unique identifier of the stream.
- Stream
Type string - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- map[string]string
- Tags key/value pairs to associate with the instance.
- Timeouts
Dis
Stream V2Timeouts Args - Writable
Partition float64Count - Total number of writable partitions (including partitions in ACTIVE state only).
- auto
Scale DoubleMax Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- auto
Scale DoubleMin Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- compression
Format 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.
- data
Type String - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - dis
Stream StringV2Id - 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 (-).
- partition
Count Double - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- partitions
List<Dis
Stream V2Partition> - Stream partitions details.
- readable
Partition DoubleCount - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- retention
Period 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
: 72Default
: 24 - status String
- Current status of the partition.
- stream
Id String - Unique identifier of the stream.
- stream
Type String - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- Map<String,String>
- Tags key/value pairs to associate with the instance.
- timeouts
Dis
Stream V2Timeouts - writable
Partition DoubleCount - Total number of writable partitions (including partitions in ACTIVE state only).
- auto
Scale numberMax Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- auto
Scale numberMin Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- compression
Format 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.
- data
Type string - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - dis
Stream stringV2Id - 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 (-).
- partition
Count number - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- partitions
Dis
Stream V2Partition[] - Stream partitions details.
- readable
Partition numberCount - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- retention
Period 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
: 72Default
: 24 - status string
- Current status of the partition.
- stream
Id string - Unique identifier of the stream.
- stream
Type string - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- {[key: string]: string}
- Tags key/value pairs to associate with the instance.
- timeouts
Dis
Stream V2Timeouts - writable
Partition numberCount - Total number of writable partitions (including partitions in ACTIVE state only).
- auto_
scale_ floatmax_ partition_ count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- auto_
scale_ floatmin_ partition_ count - 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_ strv2_ id - 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[Dis
Stream V2Partition Args] - Stream partitions details.
- readable_
partition_ floatcount - 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
: 72Default
: 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/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- Mapping[str, str]
- Tags key/value pairs to associate with the instance.
- timeouts
Dis
Stream V2Timeouts Args - writable_
partition_ floatcount - Total number of writable partitions (including partitions in ACTIVE state only).
- auto
Scale NumberMax Partition Count - Maximum number of partitions for automatic scale-up when auto-scaling is enabled.
- auto
Scale NumberMin Partition Count - Minimum number of partitions for automatic scale-down when auto-scaling is enabled. Minimum: 1.
- compression
Format 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.
- data
Type String - Source data type.
BLOB
: a collection of binary data stored as a single entity in a database management system. Default value:BLOB
. - dis
Stream StringV2Id - 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 (-).
- partition
Count Number - Number of partitions. Partitions are the base throughput unit of a DIS stream.
- partitions List<Property Map>
- Stream partitions details.
- readable
Partition NumberCount - Total number of readable partitions (including partitions in ACTIVE and DELETED state).
- retention
Period 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
: 72Default
: 24 - status String
- Current status of the partition.
- stream
Id String - Unique identifier of the stream.
- stream
Type String - Stream type.
COMMON
: a common stream with a bandwidth of 1 MB/sADVANCED
: an advanced stream with a bandwidth of 5 MB/s
- Map<String>
- Tags key/value pairs to associate with the instance.
- timeouts Property Map
- writable
Partition NumberCount - Total number of writable partitions (including partitions in ACTIVE state only).
Supporting Types
DisStreamV2Partition, DisStreamV2PartitionArgs
- Hash
Range string - Possible value range of the hash key used by the partition.
- Id string
- Unique identifier of the partition.
- Parent
Partitions string - Parent partition.
- Sequence
Number stringRange - Sequence number range of the partition.
- Status string
- Current status of the partition.
- Hash
Range string - Possible value range of the hash key used by the partition.
- Id string
- Unique identifier of the partition.
- Parent
Partitions string - Parent partition.
- Sequence
Number stringRange - Sequence number range of the partition.
- Status string
- Current status of the partition.
- hash
Range String - Possible value range of the hash key used by the partition.
- id String
- Unique identifier of the partition.
- parent
Partitions String - Parent partition.
- sequence
Number StringRange - Sequence number range of the partition.
- status String
- Current status of the partition.
- hash
Range string - Possible value range of the hash key used by the partition.
- id string
- Unique identifier of the partition.
- parent
Partitions string - Parent partition.
- sequence
Number stringRange - Sequence number range of the partition.
- status string
- Current status of the partition.
- hash_
range str - Possible value range of the hash key used by the partition.
- id str
- Unique identifier of the partition.
- parent_
partitions str - Parent partition.
- sequence_
number_ strrange - Sequence number range of the partition.
- status str
- Current status of the partition.
- hash
Range String - Possible value range of the hash key used by the partition.
- id String
- Unique identifier of the partition.
- parent
Partitions String - Parent partition.
- sequence
Number StringRange - Sequence number range of the partition.
- status 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
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.