Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.tls.Shards
Explore with Pulumi AI
Use this data source to query detailed information of tls shards
Example Usage
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 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
})
}
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());
}
}
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.tls.shards(topic_id="edf051ed-3c46-49ba-9339-bea628fedc15")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.tls.Shards({
topicId: "edf051ed-3c46-49ba-9339-bea628fedc15",
});
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) ShardsResultOutput
public 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:tls:Shards
arguments:
# arguments dictionary
The following arguments are supported:
- Topic
Id string - The id of topic.
- Output
File string - File name where to save data source results.
- Topic
Id string - The id of topic.
- Output
File string - File name where to save data source results.
- topic
Id String - The id of topic.
- output
File String - File name where to save data source results.
- topic
Id string - The id of topic.
- output
File 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.
- topic
Id String - The id of topic.
- output
File 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<Shards
Shard> - The collection of query.
- Topic
Id string - The ID of topic.
- Total
Count int - The total count of query.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- []Shards
Shard - The collection of query.
- Topic
Id string - The ID of topic.
- Total
Count int - The total count of query.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- List<Shards
Shard> - The collection of query.
- topic
Id String - The ID of topic.
- total
Count Integer - The total count of query.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- Shards
Shard[] - The collection of query.
- topic
Id string - The ID of topic.
- total
Count number - The total count of query.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- Sequence[Shards
Shard] - 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.
- topic
Id String - The ID of topic.
- total
Count Number - The total count of query.
- output
File String
Supporting Types
ShardsShard
- Exclusive
End stringKey - The end key info.
- Inclusive
Begin stringKey - The begin key info.
- Modify
Time string - The modify time.
- int
- The id of shard.
- Status string
- The status of shard.
- Stop
Write stringTime - The stop write time.
- Topic
Id string - The id of topic.
- Exclusive
End stringKey - The end key info.
- Inclusive
Begin stringKey - The begin key info.
- Modify
Time string - The modify time.
- int
- The id of shard.
- Status string
- The status of shard.
- Stop
Write stringTime - The stop write time.
- Topic
Id string - The id of topic.
- exclusive
End StringKey - The end key info.
- inclusive
Begin StringKey - The begin key info.
- modify
Time String - The modify time.
- Integer
- The id of shard.
- status String
- The status of shard.
- stop
Write StringTime - The stop write time.
- topic
Id String - The id of topic.
- exclusive
End stringKey - The end key info.
- inclusive
Begin stringKey - The begin key info.
- modify
Time string - The modify time.
- number
- The id of shard.
- status string
- The status of shard.
- stop
Write stringTime - The stop write time.
- topic
Id 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.
- exclusive
End StringKey - The end key info.
- inclusive
Begin StringKey - The begin key info.
- modify
Time String - The modify time.
- Number
- The id of shard.
- status String
- The status of shard.
- stop
Write StringTime - The stop write time.
- topic
Id 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.