UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

139 lines (138 loc) 3.12 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of tls alarms * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.tls.getAlarms({ * projectId: "cc44f8b6-0328-4622-b043-023fca735cd4", * }); * ``` */ export declare function getAlarms(args: GetAlarmsArgs, opts?: pulumi.InvokeOptions): Promise<GetAlarmsResult>; /** * A collection of arguments for invoking getAlarms. */ export interface GetAlarmsArgs { /** * The alarm id. */ alarmId?: string; /** * The alarm name. */ alarmName?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The project id. */ projectId: string; /** * The status. */ status?: boolean; /** * The topic id. */ topicId?: string; /** * The topic name. */ topicName?: string; } /** * A collection of values returned by getAlarms. */ export interface GetAlarmsResult { /** * The alarm id. */ readonly alarmId?: string; /** * The name of the alarm. */ readonly alarmName?: string; /** * The list of alarms. */ readonly alarms: outputs.tls.GetAlarmsAlarm[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly outputFile?: string; /** * The project id. */ readonly projectId: string; /** * Whether to enable the alert policy. The default value is true, that is, on. */ readonly status?: boolean; /** * The id of the topic. */ readonly topicId?: string; /** * The name of the topic. */ readonly topicName?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of tls alarms * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const default = volcengine.tls.getAlarms({ * projectId: "cc44f8b6-0328-4622-b043-023fca735cd4", * }); * ``` */ export declare function getAlarmsOutput(args: GetAlarmsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAlarmsResult>; /** * A collection of arguments for invoking getAlarms. */ export interface GetAlarmsOutputArgs { /** * The alarm id. */ alarmId?: pulumi.Input<string>; /** * The alarm name. */ alarmName?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The project id. */ projectId: pulumi.Input<string>; /** * The status. */ status?: pulumi.Input<boolean>; /** * The topic id. */ topicId?: pulumi.Input<string>; /** * The topic name. */ topicName?: pulumi.Input<string>; }