import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Machine group in Log Service, used to manage a group of log collection machines. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const tLSHostGroupDemo = new volcenginecc.tls.HostGroup("TLSHostGroupDemo", { * autoUpdate: true, * hostGroupName: "ccapi-test-1", * hostGroupType: "IP", * hostIpLists: [ * "192.168.1.1", * "192.168.1.2", * ], * serviceLogging: false, * updateEndTime: "06:00", * updateStartTime: "00:00", * iamProjectName: "default", * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:tls/hostGroup:HostGroup example "host_group_id" * ``` */ export declare class HostGroup extends pulumi.CustomResource { /** * Get an existing HostGroup 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, state?: HostGroupState, opts?: pulumi.CustomResourceOptions): HostGroup; /** * Returns true if the given object is an instance of HostGroup. 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 HostGroup; /** * Number of abnormal machines. */ readonly abnormalHeartbeatStatusNumber: pulumi.Output; /** * Latest agent version. */ readonly agentLatestVersion: pulumi.Output; /** * Whether LogCollector installed on machine group servers enables automatic upgrade. true: Log Service will check for upgrade conditions during the specified time period each day. If conditions are met, LogCollector upgrades automatically without manual intervention. false: (default) LogCollector does not upgrade automatically. Only LogCollector V1.0.8 and later versions support automatic upgrade. */ readonly autoUpdate: pulumi.Output; /** * Creation time. */ readonly createTime: pulumi.Output; /** * Clean all machines with abnormal heartbeat in the machine group with one click. Machines without heartbeat records cannot be deleted currently */ readonly deleteAbnormalHosts: pulumi.Output; /** * Number of machines. */ readonly hostCount: pulumi.Output; /** * Host group ID */ readonly hostGroupId: pulumi.Output; /** * Host group name */ readonly hostGroupName: pulumi.Output; /** * Type of machine group. Includes: IP: machine IP. Set the machine IP list using the HostIpList parameter. Label: machine identifier. Set the machine identifier using the HostIdentifier parameter. */ readonly hostGroupType: pulumi.Output; /** * Machine identifier. Required when HostGroupType is Label. */ readonly hostIdentifier: pulumi.Output; /** * List of IP addresses for the host group. Required when HostGroupType is IP. */ readonly hostIpLists: pulumi.Output; /** * IAM project name. If this parameter is not specified, Log Service adds the machine group to the IAM project named default. */ readonly iamProjectName: pulumi.Output; /** * Modification time. */ readonly modifyTime: pulumi.Output; /** * Number of healthy machines. */ readonly normalHeartbeatStatusNumber: pulumi.Output; /** * Number of rules */ readonly ruleCount: pulumi.Output; readonly rules: pulumi.Output; /** * Enable Logcollector service log feature. true: enabled. false: (default) disabled. */ readonly serviceLogging: pulumi.Output; /** * Auto upgrade end time in HH:MM format. Required only when AutoUpdate is set to true. It is recommended to schedule auto upgrade during off-peak business hours. LogCollector may restart during the auto upgrade, but logs will not be lost. */ readonly updateEndTime: pulumi.Output; /** * Automatic upgrade start time, in HH:MM format. Only required when AutoUpdate is set to true. It is recommended to schedule automatic upgrades during off-peak hours. LogCollector may restart during the upgrade, but logs will not be lost. */ readonly updateStartTime: pulumi.Output; /** * Create a HostGroup 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: HostGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HostGroup resources. */ export interface HostGroupState { /** * Number of abnormal machines. */ abnormalHeartbeatStatusNumber?: pulumi.Input; /** * Latest agent version. */ agentLatestVersion?: pulumi.Input; /** * Whether LogCollector installed on machine group servers enables automatic upgrade. true: Log Service will check for upgrade conditions during the specified time period each day. If conditions are met, LogCollector upgrades automatically without manual intervention. false: (default) LogCollector does not upgrade automatically. Only LogCollector V1.0.8 and later versions support automatic upgrade. */ autoUpdate?: pulumi.Input; /** * Creation time. */ createTime?: pulumi.Input; /** * Clean all machines with abnormal heartbeat in the machine group with one click. Machines without heartbeat records cannot be deleted currently */ deleteAbnormalHosts?: pulumi.Input; /** * Number of machines. */ hostCount?: pulumi.Input; /** * Host group ID */ hostGroupId?: pulumi.Input; /** * Host group name */ hostGroupName?: pulumi.Input; /** * Type of machine group. Includes: IP: machine IP. Set the machine IP list using the HostIpList parameter. Label: machine identifier. Set the machine identifier using the HostIdentifier parameter. */ hostGroupType?: pulumi.Input; /** * Machine identifier. Required when HostGroupType is Label. */ hostIdentifier?: pulumi.Input; /** * List of IP addresses for the host group. Required when HostGroupType is IP. */ hostIpLists?: pulumi.Input[]>; /** * IAM project name. If this parameter is not specified, Log Service adds the machine group to the IAM project named default. */ iamProjectName?: pulumi.Input; /** * Modification time. */ modifyTime?: pulumi.Input; /** * Number of healthy machines. */ normalHeartbeatStatusNumber?: pulumi.Input; /** * Number of rules */ ruleCount?: pulumi.Input; rules?: pulumi.Input[]>; /** * Enable Logcollector service log feature. true: enabled. false: (default) disabled. */ serviceLogging?: pulumi.Input; /** * Auto upgrade end time in HH:MM format. Required only when AutoUpdate is set to true. It is recommended to schedule auto upgrade during off-peak business hours. LogCollector may restart during the auto upgrade, but logs will not be lost. */ updateEndTime?: pulumi.Input; /** * Automatic upgrade start time, in HH:MM format. Only required when AutoUpdate is set to true. It is recommended to schedule automatic upgrades during off-peak hours. LogCollector may restart during the upgrade, but logs will not be lost. */ updateStartTime?: pulumi.Input; } /** * The set of arguments for constructing a HostGroup resource. */ export interface HostGroupArgs { /** * Whether LogCollector installed on machine group servers enables automatic upgrade. true: Log Service will check for upgrade conditions during the specified time period each day. If conditions are met, LogCollector upgrades automatically without manual intervention. false: (default) LogCollector does not upgrade automatically. Only LogCollector V1.0.8 and later versions support automatic upgrade. */ autoUpdate?: pulumi.Input; /** * Clean all machines with abnormal heartbeat in the machine group with one click. Machines without heartbeat records cannot be deleted currently */ deleteAbnormalHosts?: pulumi.Input; /** * Host group name */ hostGroupName: pulumi.Input; /** * Type of machine group. Includes: IP: machine IP. Set the machine IP list using the HostIpList parameter. Label: machine identifier. Set the machine identifier using the HostIdentifier parameter. */ hostGroupType: pulumi.Input; /** * Machine identifier. Required when HostGroupType is Label. */ hostIdentifier?: pulumi.Input; /** * List of IP addresses for the host group. Required when HostGroupType is IP. */ hostIpLists?: pulumi.Input[]>; /** * IAM project name. If this parameter is not specified, Log Service adds the machine group to the IAM project named default. */ iamProjectName?: pulumi.Input; /** * Enable Logcollector service log feature. true: enabled. false: (default) disabled. */ serviceLogging?: pulumi.Input; /** * Auto upgrade end time in HH:MM format. Required only when AutoUpdate is set to true. It is recommended to schedule auto upgrade during off-peak business hours. LogCollector may restart during the auto upgrade, but logs will not be lost. */ updateEndTime?: pulumi.Input; /** * Automatic upgrade start time, in HH:MM format. Only required when AutoUpdate is set to true. It is recommended to schedule automatic upgrades during off-peak hours. LogCollector may restart during the upgrade, but logs will not be lost. */ updateStartTime?: pulumi.Input; }