UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

132 lines (131 loc) 3.09 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of vmp rules * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.vmp.getRules({ * kind: "Recording", * workspaceId: "baa02ffb-6f22-43c4-841b-ecf90ded****", * }); * ``` */ export declare function getRules(args: GetRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetRulesResult>; /** * A collection of arguments for invoking getRules. */ export interface GetRulesArgs { /** * The kind of rule. */ kind: string; /** * The name of rule. */ name?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The name of rule file. */ ruleFileNames?: string[]; /** * The name of rule group. */ ruleGroupNames?: string[]; /** * The status of rule. */ status?: string; /** * The id of workspace. */ workspaceId: string; } /** * A collection of values returned by getRules. */ export interface GetRulesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The kind of rule. */ readonly kind: string; /** * The name of rule. */ readonly name?: string; readonly outputFile?: string; readonly ruleFileNames?: string[]; readonly ruleGroupNames?: string[]; /** * The collection of query. */ readonly rules: outputs.vmp.GetRulesRule[]; /** * The status of rule. */ readonly status?: string; /** * The total count of query. */ readonly totalCount: number; readonly workspaceId: string; } /** * Use this data source to query detailed information of vmp rules * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.vmp.getRules({ * kind: "Recording", * workspaceId: "baa02ffb-6f22-43c4-841b-ecf90ded****", * }); * ``` */ export declare function getRulesOutput(args: GetRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRulesResult>; /** * A collection of arguments for invoking getRules. */ export interface GetRulesOutputArgs { /** * The kind of rule. */ kind: pulumi.Input<string>; /** * The name of rule. */ name?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The name of rule file. */ ruleFileNames?: pulumi.Input<pulumi.Input<string>[]>; /** * The name of rule group. */ ruleGroupNames?: pulumi.Input<pulumi.Input<string>[]>; /** * The status of rule. */ status?: pulumi.Input<string>; /** * The id of workspace. */ workspaceId: pulumi.Input<string>; }