UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

102 lines (101 loc) 3.2 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage tls shard * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.tls.Shard("foo", { * number: 2, * shardId: 4, * topicId: "0b08389e-1617-4f64-b59d-81da2730e446", * }); * ``` * * ## Import * * The TlsShard is not support import. */ export declare class Shard extends pulumi.CustomResource { /** * Get an existing Shard resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ShardState, opts?: pulumi.CustomResourceOptions): Shard; /** * Returns true if the given object is an instance of Shard. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Shard; /** * The number of splits. Must be a non-zero even number, such as 2, 4, 8, or 16. */ readonly number: pulumi.Output<number>; /** * The ID of the shard to split. */ readonly shardId: pulumi.Output<number>; /** * The collection of shards after split. */ readonly shards: pulumi.Output<outputs.tls.ShardShard[]>; /** * The ID of the topic. */ readonly topicId: pulumi.Output<string>; /** * Create a Shard resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ShardArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Shard resources. */ export interface ShardState { /** * The number of splits. Must be a non-zero even number, such as 2, 4, 8, or 16. */ number?: pulumi.Input<number>; /** * The ID of the shard to split. */ shardId?: pulumi.Input<number>; /** * The collection of shards after split. */ shards?: pulumi.Input<pulumi.Input<inputs.tls.ShardShard>[]>; /** * The ID of the topic. */ topicId?: pulumi.Input<string>; } /** * The set of arguments for constructing a Shard resource. */ export interface ShardArgs { /** * The number of splits. Must be a non-zero even number, such as 2, 4, 8, or 16. */ number: pulumi.Input<number>; /** * The ID of the shard to split. */ shardId: pulumi.Input<number>; /** * The ID of the topic. */ topicId: pulumi.Input<string>; }