@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
123 lines (122 loc) • 4.09 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a resource to manage tls trace instance
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* // Example: Create a TLS trace instance
* const foo = new volcengine.tls.TraceInstance("foo", {
* projectId: "bdb87e4d-7dad-4b96-ac43-e1b09e9dc8ac",
* traceInstanceName: "tf-trace-instance",
* description: "This is an example trace instance",
* backendConfig: {
* ttl: 60,
* enableHotTtl: true,
* hotTtl: 30,
* coldTtl: 30,
* archiveTtl: 0,
* autoSplit: true,
* maxSplitPartitions: 10,
* },
* });
* export const tlsTraceInstanceId = foo.id;
* export const tlsTraceInstanceName = foo.traceInstanceName;
* export const tlsTraceInstanceDescription = foo.description;
* ```
*
* ## Import
*
* tls trace instance can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:tls/traceInstance:TraceInstance default instance-1234567890
* ```
*/
export declare class TraceInstance extends pulumi.CustomResource {
/**
* Get an existing TraceInstance 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?: TraceInstanceState, opts?: pulumi.CustomResourceOptions): TraceInstance;
/**
* Returns true if the given object is an instance of TraceInstance. 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 TraceInstance;
/**
* The backend config of the trace instance.
*/
readonly backendConfig: pulumi.Output<outputs.tls.TraceInstanceBackendConfig | undefined>;
/**
* The description of the trace instance.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The ID of the project.
*/
readonly projectId: pulumi.Output<string>;
/**
* The name of the trace instance.
*/
readonly traceInstanceName: pulumi.Output<string>;
/**
* Create a TraceInstance 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: TraceInstanceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering TraceInstance resources.
*/
export interface TraceInstanceState {
/**
* The backend config of the trace instance.
*/
backendConfig?: pulumi.Input<inputs.tls.TraceInstanceBackendConfig>;
/**
* The description of the trace instance.
*/
description?: pulumi.Input<string>;
/**
* The ID of the project.
*/
projectId?: pulumi.Input<string>;
/**
* The name of the trace instance.
*/
traceInstanceName?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a TraceInstance resource.
*/
export interface TraceInstanceArgs {
/**
* The backend config of the trace instance.
*/
backendConfig?: pulumi.Input<inputs.tls.TraceInstanceBackendConfig>;
/**
* The description of the trace instance.
*/
description?: pulumi.Input<string>;
/**
* The ID of the project.
*/
projectId: pulumi.Input<string>;
/**
* The name of the trace instance.
*/
traceInstanceName: pulumi.Input<string>;
}