@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
103 lines (102 loc) • 2.68 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of tls log cursors
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.tls.getLogCursors({
* from: "begin",
* shardId: 0,
* topicId: "e101b8c8-77e7-4ae3-91c1-2532ee480e7d",
* });
* ```
*/
export declare function getLogCursors(args: GetLogCursorsArgs, opts?: pulumi.InvokeOptions): Promise<GetLogCursorsResult>;
/**
* A collection of arguments for invoking getLogCursors.
*/
export interface GetLogCursorsArgs {
/**
* The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
*/
from: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The ID of the shard.
*/
shardId: number;
/**
* The ID of the topic.
*/
topicId: string;
}
/**
* A collection of values returned by getLogCursors.
*/
export interface GetLogCursorsResult {
/**
* The time point of the cursor.
*/
readonly from: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The list of log cursors.
*/
readonly logCursors: outputs.tls.GetLogCursorsLogCursor[];
readonly outputFile?: string;
/**
* The ID of the shard.
*/
readonly shardId: number;
/**
* The ID of the topic.
*/
readonly topicId: string;
}
/**
* Use this data source to query detailed information of tls log cursors
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.tls.getLogCursors({
* from: "begin",
* shardId: 0,
* topicId: "e101b8c8-77e7-4ae3-91c1-2532ee480e7d",
* });
* ```
*/
export declare function getLogCursorsOutput(args: GetLogCursorsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLogCursorsResult>;
/**
* A collection of arguments for invoking getLogCursors.
*/
export interface GetLogCursorsOutputArgs {
/**
* The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
*/
from: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The ID of the shard.
*/
shardId: pulumi.Input<number>;
/**
* The ID of the topic.
*/
topicId: pulumi.Input<string>;
}