Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.tls.Shards
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.tls.shards(topic_id="edf051ed-3c46-49ba-9339-bea628fedc15")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  default:
    fn::invoke:
      Function: volcengine:tls:Shards
      Arguments:
        topicId: edf051ed-3c46-49ba-9339-bea628fedc15
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>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]func Shards(ctx *Context, args *ShardsArgs, opts ...InvokeOption) (*ShardsResult, error)
func ShardsOutput(ctx *Context, args *ShardsOutputArgs, opts ...InvokeOption) ShardsResultOutputpublic static class Shards 
{
    public static Task<ShardsResult> InvokeAsync(ShardsArgs args, InvokeOptions? opts = null)
    public static Output<ShardsResult> Invoke(ShardsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ShardsResult> shards(ShardsArgs args, InvokeOptions options)
public static Output<ShardsResult> shards(ShardsArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:tls:Shards
  arguments:
    # arguments dictionaryThe following arguments are supported:
- TopicId string
- The id of topic.
- OutputFile string
- File name where to save data source results.
- TopicId string
- The id of topic.
- OutputFile string
- File name where to save data source results.
- topicId String
- The id of topic.
- outputFile String
- File name where to save data source results.
- topicId string
- The id of topic.
- outputFile string
- File name where to save data source results.
- topic_id str
- The id of topic.
- output_file str
- File name where to save data source results.
- topicId 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.
- 
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.
- 
[]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.
- 
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.
- 
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.
- 
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.
- 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 
- ExclusiveEnd stringKey 
- The end key info.
- InclusiveBegin stringKey 
- The begin key info.
- ModifyTime string
- The modify time.
- int
- The id of shard.
- Status string
- The status of shard.
- StopWrite stringTime 
- The stop write time.
- TopicId string
- The id of topic.
- ExclusiveEnd stringKey 
- The end key info.
- InclusiveBegin stringKey 
- The begin key info.
- ModifyTime string
- The modify time.
- int
- The id of shard.
- Status string
- The status of shard.
- StopWrite stringTime 
- The stop write time.
- TopicId string
- The id of topic.
- exclusiveEnd StringKey 
- The end key info.
- inclusiveBegin StringKey 
- The begin key info.
- modifyTime String
- The modify time.
- Integer
- The id of shard.
- status String
- The status of shard.
- stopWrite StringTime 
- The stop write time.
- topicId String
- The id of topic.
- exclusiveEnd stringKey 
- The end key info.
- inclusiveBegin stringKey 
- The begin key info.
- modifyTime string
- The modify time.
- number
- The id of shard.
- status string
- The status of shard.
- stopWrite stringTime 
- The stop write time.
- topicId string
- The id of topic.
- exclusive_end_ strkey 
- The end key info.
- inclusive_begin_ strkey 
- The begin key info.
- modify_time str
- The modify time.
- int
- The id of shard.
- status str
- The status of shard.
- stop_write_ strtime 
- The stop write time.
- topic_id str
- The id of topic.
- exclusiveEnd StringKey 
- The end key info.
- inclusiveBegin StringKey 
- The begin key info.
- modifyTime String
- The modify time.
- Number
- The id of shard.
- status String
- The status of shard.
- stopWrite StringTime 
- The stop write time.
- topicId String
- The id of topic.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.