1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. Shards
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.tls.Shards

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

Use this data source to query detailed information of tls shards

Example Usage

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

const default = volcengine.tls.Shards({
    topicId: "edf051ed-3c46-49ba-9339-bea628fedc15",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

default = volcengine.tls.shards(topic_id="edf051ed-3c46-49ba-9339-bea628fedc15")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tls.Shards(ctx, &tls.ShardsArgs{
			TopicId: "edf051ed-3c46-49ba-9339-bea628fedc15",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var @default = Volcengine.Tls.Shards.Invoke(new()
    {
        TopicId = "edf051ed-3c46-49ba-9339-bea628fedc15",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.TlsFunctions;
import com.pulumi.volcengine.tls.inputs.ShardsArgs;
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) {
        final var default = TlsFunctions.Shards(ShardsArgs.builder()
            .topicId("edf051ed-3c46-49ba-9339-bea628fedc15")
            .build());

    }
}
Copy
variables:
  default:
    fn::invoke:
      Function: volcengine:tls:Shards
      Arguments:
        topicId: edf051ed-3c46-49ba-9339-bea628fedc15
Copy

Using Shards

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function shards(args: ShardsArgs, opts?: InvokeOptions): Promise<ShardsResult>
function shardsOutput(args: ShardsOutputArgs, opts?: InvokeOptions): Output<ShardsResult>
Copy
def shards(output_file: Optional[str] = None,
           topic_id: Optional[str] = None,
           opts: Optional[InvokeOptions] = None) -> ShardsResult
def shards_output(output_file: Optional[pulumi.Input[str]] = None,
           topic_id: Optional[pulumi.Input[str]] = None,
           opts: Optional[InvokeOptions] = None) -> Output[ShardsResult]
Copy
func Shards(ctx *Context, args *ShardsArgs, opts ...InvokeOption) (*ShardsResult, error)
func ShardsOutput(ctx *Context, args *ShardsOutputArgs, opts ...InvokeOption) ShardsResultOutput
Copy
public static class Shards 
{
    public static Task<ShardsResult> InvokeAsync(ShardsArgs args, InvokeOptions? opts = null)
    public static Output<ShardsResult> Invoke(ShardsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ShardsResult> shards(ShardsArgs args, InvokeOptions options)
public static Output<ShardsResult> shards(ShardsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:tls:Shards
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TopicId This property is required. string
The id of topic.
OutputFile string
File name where to save data source results.
TopicId This property is required. string
The id of topic.
OutputFile string
File name where to save data source results.
topicId This property is required. String
The id of topic.
outputFile String
File name where to save data source results.
topicId This property is required. string
The id of topic.
outputFile string
File name where to save data source results.
topic_id This property is required. str
The id of topic.
output_file str
File name where to save data source results.
topicId This property is required. String
The id of topic.
outputFile String
File name where to save data source results.

Shards Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Shards List<ShardsShard>
The collection of query.
TopicId string
The ID of topic.
TotalCount int
The total count of query.
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Shards []ShardsShard
The collection of query.
TopicId string
The ID of topic.
TotalCount int
The total count of query.
OutputFile string
id String
The provider-assigned unique ID for this managed resource.
shards List<ShardsShard>
The collection of query.
topicId String
The ID of topic.
totalCount Integer
The total count of query.
outputFile String
id string
The provider-assigned unique ID for this managed resource.
shards ShardsShard[]
The collection of query.
topicId string
The ID of topic.
totalCount number
The total count of query.
outputFile string
id str
The provider-assigned unique ID for this managed resource.
shards Sequence[ShardsShard]
The collection of query.
topic_id str
The ID of topic.
total_count int
The total count of query.
output_file str
id String
The provider-assigned unique ID for this managed resource.
shards List<Property Map>
The collection of query.
topicId String
The ID of topic.
totalCount Number
The total count of query.
outputFile String

Supporting Types

ShardsShard

ExclusiveEndKey This property is required. string
The end key info.
InclusiveBeginKey This property is required. string
The begin key info.
ModifyTime This property is required. string
The modify time.
ShardId This property is required. int
The id of shard.
Status This property is required. string
The status of shard.
StopWriteTime This property is required. string
The stop write time.
TopicId This property is required. string
The id of topic.
ExclusiveEndKey This property is required. string
The end key info.
InclusiveBeginKey This property is required. string
The begin key info.
ModifyTime This property is required. string
The modify time.
ShardId This property is required. int
The id of shard.
Status This property is required. string
The status of shard.
StopWriteTime This property is required. string
The stop write time.
TopicId This property is required. string
The id of topic.
exclusiveEndKey This property is required. String
The end key info.
inclusiveBeginKey This property is required. String
The begin key info.
modifyTime This property is required. String
The modify time.
shardId This property is required. Integer
The id of shard.
status This property is required. String
The status of shard.
stopWriteTime This property is required. String
The stop write time.
topicId This property is required. String
The id of topic.
exclusiveEndKey This property is required. string
The end key info.
inclusiveBeginKey This property is required. string
The begin key info.
modifyTime This property is required. string
The modify time.
shardId This property is required. number
The id of shard.
status This property is required. string
The status of shard.
stopWriteTime This property is required. string
The stop write time.
topicId This property is required. string
The id of topic.
exclusive_end_key This property is required. str
The end key info.
inclusive_begin_key This property is required. str
The begin key info.
modify_time This property is required. str
The modify time.
shard_id This property is required. int
The id of shard.
status This property is required. str
The status of shard.
stop_write_time This property is required. str
The stop write time.
topic_id This property is required. str
The id of topic.
exclusiveEndKey This property is required. String
The end key info.
inclusiveBeginKey This property is required. String
The begin key info.
modifyTime This property is required. String
The modify time.
shardId This property is required. Number
The id of shard.
status This property is required. String
The status of shard.
stopWriteTime This property is required. String
The stop write time.
topicId This property is required. String
The id of topic.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine