opentelekomcloud.DisCheckpointV2
Explore with Pulumi AI
Up-to-date reference of API arguments for DIS checkpoint you can get at documentation portal
Manages a DIS Checkpoints 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", {
partitionCount: 3,
streamType: "COMMON",
retentionPeriod: 24,
autoScaleMinPartitionCount: 1,
autoScaleMaxPartitionCount: 4,
compressionFormat: "zip",
dataType: "BLOB",
tags: {
foo: "bar",
},
});
const app1 = new opentelekomcloud.DisAppV2("app1", {});
const checkpoint1 = new opentelekomcloud.DisCheckpointV2("checkpoint1", {
appName: app1.name,
streamName: stream1.name,
partitionId: "0",
sequenceNumber: "0",
metadata: "my_first_checkpoint",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
stream1 = opentelekomcloud.DisStreamV2("stream1",
partition_count=3,
stream_type="COMMON",
retention_period=24,
auto_scale_min_partition_count=1,
auto_scale_max_partition_count=4,
compression_format="zip",
data_type="BLOB",
tags={
"foo": "bar",
})
app1 = opentelekomcloud.DisAppV2("app1")
checkpoint1 = opentelekomcloud.DisCheckpointV2("checkpoint1",
app_name=app1.name,
stream_name=stream1.name,
partition_id="0",
sequence_number="0",
metadata="my_first_checkpoint")
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 {
stream1, err := opentelekomcloud.NewDisStreamV2(ctx, "stream1", &opentelekomcloud.DisStreamV2Args{
PartitionCount: pulumi.Float64(3),
StreamType: pulumi.String("COMMON"),
RetentionPeriod: pulumi.Float64(24),
AutoScaleMinPartitionCount: pulumi.Float64(1),
AutoScaleMaxPartitionCount: pulumi.Float64(4),
CompressionFormat: pulumi.String("zip"),
DataType: pulumi.String("BLOB"),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
app1, err := opentelekomcloud.NewDisAppV2(ctx, "app1", nil)
if err != nil {
return err
}
_, err = opentelekomcloud.NewDisCheckpointV2(ctx, "checkpoint1", &opentelekomcloud.DisCheckpointV2Args{
AppName: app1.Name,
StreamName: stream1.Name,
PartitionId: pulumi.String("0"),
SequenceNumber: pulumi.String("0"),
Metadata: pulumi.String("my_first_checkpoint"),
})
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()
{
PartitionCount = 3,
StreamType = "COMMON",
RetentionPeriod = 24,
AutoScaleMinPartitionCount = 1,
AutoScaleMaxPartitionCount = 4,
CompressionFormat = "zip",
DataType = "BLOB",
Tags =
{
{ "foo", "bar" },
},
});
var app1 = new Opentelekomcloud.DisAppV2("app1");
var checkpoint1 = new Opentelekomcloud.DisCheckpointV2("checkpoint1", new()
{
AppName = app1.Name,
StreamName = stream1.Name,
PartitionId = "0",
SequenceNumber = "0",
Metadata = "my_first_checkpoint",
});
});
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 com.pulumi.opentelekomcloud.DisAppV2;
import com.pulumi.opentelekomcloud.DisCheckpointV2;
import com.pulumi.opentelekomcloud.DisCheckpointV2Args;
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()
.partitionCount(3)
.streamType("COMMON")
.retentionPeriod(24)
.autoScaleMinPartitionCount(1)
.autoScaleMaxPartitionCount(4)
.compressionFormat("zip")
.dataType("BLOB")
.tags(Map.of("foo", "bar"))
.build());
var app1 = new DisAppV2("app1");
var checkpoint1 = new DisCheckpointV2("checkpoint1", DisCheckpointV2Args.builder()
.appName(app1.name())
.streamName(stream1.name())
.partitionId("0")
.sequenceNumber("0")
.metadata("my_first_checkpoint")
.build());
}
}
resources:
stream1:
type: opentelekomcloud:DisStreamV2
properties:
partitionCount: 3
streamType: COMMON
retentionPeriod: 24
autoScaleMinPartitionCount: 1
autoScaleMaxPartitionCount: 4
compressionFormat: zip
dataType: BLOB
tags:
foo: bar
app1:
type: opentelekomcloud:DisAppV2
checkpoint1:
type: opentelekomcloud:DisCheckpointV2
properties:
appName: ${app1.name}
streamName: ${stream1.name}
partitionId: '0'
sequenceNumber: '0'
metadata: my_first_checkpoint
Create DisCheckpointV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DisCheckpointV2(name: string, args: DisCheckpointV2Args, opts?: CustomResourceOptions);
@overload
def DisCheckpointV2(resource_name: str,
args: DisCheckpointV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DisCheckpointV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_name: Optional[str] = None,
partition_id: Optional[str] = None,
sequence_number: Optional[str] = None,
stream_name: Optional[str] = None,
checkpoint_type: Optional[str] = None,
dis_checkpoint_v2_id: Optional[str] = None,
metadata: Optional[str] = None,
timeouts: Optional[DisCheckpointV2TimeoutsArgs] = None)
func NewDisCheckpointV2(ctx *Context, name string, args DisCheckpointV2Args, opts ...ResourceOption) (*DisCheckpointV2, error)
public DisCheckpointV2(string name, DisCheckpointV2Args args, CustomResourceOptions? opts = null)
public DisCheckpointV2(String name, DisCheckpointV2Args args)
public DisCheckpointV2(String name, DisCheckpointV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DisCheckpointV2
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 DisCheckpointV2Args
- 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 DisCheckpointV2Args
- 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 DisCheckpointV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DisCheckpointV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DisCheckpointV2Args
- 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 disCheckpointV2Resource = new Opentelekomcloud.DisCheckpointV2("disCheckpointV2Resource", new()
{
AppName = "string",
PartitionId = "string",
SequenceNumber = "string",
StreamName = "string",
CheckpointType = "string",
DisCheckpointV2Id = "string",
Metadata = "string",
Timeouts = new Opentelekomcloud.Inputs.DisCheckpointV2TimeoutsArgs
{
Update = "string",
},
});
example, err := opentelekomcloud.NewDisCheckpointV2(ctx, "disCheckpointV2Resource", &opentelekomcloud.DisCheckpointV2Args{
AppName: pulumi.String("string"),
PartitionId: pulumi.String("string"),
SequenceNumber: pulumi.String("string"),
StreamName: pulumi.String("string"),
CheckpointType: pulumi.String("string"),
DisCheckpointV2Id: pulumi.String("string"),
Metadata: pulumi.String("string"),
Timeouts: &opentelekomcloud.DisCheckpointV2TimeoutsArgs{
Update: pulumi.String("string"),
},
})
var disCheckpointV2Resource = new DisCheckpointV2("disCheckpointV2Resource", DisCheckpointV2Args.builder()
.appName("string")
.partitionId("string")
.sequenceNumber("string")
.streamName("string")
.checkpointType("string")
.disCheckpointV2Id("string")
.metadata("string")
.timeouts(DisCheckpointV2TimeoutsArgs.builder()
.update("string")
.build())
.build());
dis_checkpoint_v2_resource = opentelekomcloud.DisCheckpointV2("disCheckpointV2Resource",
app_name="string",
partition_id="string",
sequence_number="string",
stream_name="string",
checkpoint_type="string",
dis_checkpoint_v2_id="string",
metadata="string",
timeouts={
"update": "string",
})
const disCheckpointV2Resource = new opentelekomcloud.DisCheckpointV2("disCheckpointV2Resource", {
appName: "string",
partitionId: "string",
sequenceNumber: "string",
streamName: "string",
checkpointType: "string",
disCheckpointV2Id: "string",
metadata: "string",
timeouts: {
update: "string",
},
});
type: opentelekomcloud:DisCheckpointV2
properties:
appName: string
checkpointType: string
disCheckpointV2Id: string
metadata: string
partitionId: string
sequenceNumber: string
streamName: string
timeouts:
update: string
DisCheckpointV2 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 DisCheckpointV2 resource accepts the following input properties:
- App
Name string - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- Partition
Id string - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- Sequence
Number string - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- Stream
Name string - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- Checkpoint
Type string - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- Dis
Checkpoint stringV2Id - Metadata string
- Metadata information of the consumer application. Maximum length: 1000
- Timeouts
Dis
Checkpoint V2Timeouts
- App
Name string - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- Partition
Id string - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- Sequence
Number string - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- Stream
Name string - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- Checkpoint
Type string - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- Dis
Checkpoint stringV2Id - Metadata string
- Metadata information of the consumer application. Maximum length: 1000
- Timeouts
Dis
Checkpoint V2Timeouts Args
- app
Name String - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- partition
Id String - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- sequence
Number String - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- stream
Name String - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- checkpoint
Type String - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- dis
Checkpoint StringV2Id - metadata String
- Metadata information of the consumer application. Maximum length: 1000
- timeouts
Dis
Checkpoint V2Timeouts
- app
Name string - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- partition
Id string - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- sequence
Number string - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- stream
Name string - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- checkpoint
Type string - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- dis
Checkpoint stringV2Id - metadata string
- Metadata information of the consumer application. Maximum length: 1000
- timeouts
Dis
Checkpoint V2Timeouts
- app_
name str - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- partition_
id str - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- sequence_
number str - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- stream_
name str - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- checkpoint_
type str - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- dis_
checkpoint_ strv2_ id - metadata str
- Metadata information of the consumer application. Maximum length: 1000
- timeouts
Dis
Checkpoint V2Timeouts Args
- app
Name String - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- partition
Id String - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- sequence
Number String - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- stream
Name String - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- checkpoint
Type String - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- dis
Checkpoint StringV2Id - metadata String
- Metadata information of the consumer application. Maximum length: 1000
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DisCheckpointV2 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DisCheckpointV2 Resource
Get an existing DisCheckpointV2 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?: DisCheckpointV2State, opts?: CustomResourceOptions): DisCheckpointV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_name: Optional[str] = None,
checkpoint_type: Optional[str] = None,
dis_checkpoint_v2_id: Optional[str] = None,
metadata: Optional[str] = None,
partition_id: Optional[str] = None,
sequence_number: Optional[str] = None,
stream_name: Optional[str] = None,
timeouts: Optional[DisCheckpointV2TimeoutsArgs] = None) -> DisCheckpointV2
func GetDisCheckpointV2(ctx *Context, name string, id IDInput, state *DisCheckpointV2State, opts ...ResourceOption) (*DisCheckpointV2, error)
public static DisCheckpointV2 Get(string name, Input<string> id, DisCheckpointV2State? state, CustomResourceOptions? opts = null)
public static DisCheckpointV2 get(String name, Output<String> id, DisCheckpointV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DisCheckpointV2 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.
- App
Name string - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- Checkpoint
Type string - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- Dis
Checkpoint stringV2Id - Metadata string
- Metadata information of the consumer application. Maximum length: 1000
- Partition
Id string - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- Sequence
Number string - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- Stream
Name string - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- Timeouts
Dis
Checkpoint V2Timeouts
- App
Name string - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- Checkpoint
Type string - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- Dis
Checkpoint stringV2Id - Metadata string
- Metadata information of the consumer application. Maximum length: 1000
- Partition
Id string - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- Sequence
Number string - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- Stream
Name string - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- Timeouts
Dis
Checkpoint V2Timeouts Args
- app
Name String - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- checkpoint
Type String - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- dis
Checkpoint StringV2Id - metadata String
- Metadata information of the consumer application. Maximum length: 1000
- partition
Id String - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- sequence
Number String - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- stream
Name String - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- timeouts
Dis
Checkpoint V2Timeouts
- app
Name string - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- checkpoint
Type string - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- dis
Checkpoint stringV2Id - metadata string
- Metadata information of the consumer application. Maximum length: 1000
- partition
Id string - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- sequence
Number string - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- stream
Name string - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- timeouts
Dis
Checkpoint V2Timeouts
- app_
name str - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- checkpoint_
type str - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- dis_
checkpoint_ strv2_ id - metadata str
- Metadata information of the consumer application. Maximum length: 1000
- partition_
id str - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- sequence_
number str - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- stream_
name str - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- timeouts
Dis
Checkpoint V2Timeouts Args
- app
Name String - Name of the consumer application to be created The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- checkpoint
Type String - Type of the checkpoint.
LAST_READ
: Only sequence numbers are recorded in databases. Default value:LAST_READ
- dis
Checkpoint StringV2Id - metadata String
- Metadata information of the consumer application. Maximum length: 1000
- partition
Id String - Partition ID of the stream The value can be in either of the following formats:
shardId-0000000000
- sequence
Number String - Sequence number to be submitted, which is used to record the consumption checkpoint of the stream. Ensure that the sequence number is within the valid range.
- stream
Name String - Name of the stream. The stream name can contain 1 to 64 characters, including letters, digits, underscores (_), and hyphens (-).
- timeouts Property Map
Supporting Types
DisCheckpointV2Timeouts, DisCheckpointV2TimeoutsArgs
- Update string
- Update string
- update String
- update string
- update str
- update String
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.