import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a Harness AutoStopping rule for Scaling Groups. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = new harness.autostopping.RuleScaleGroup("test", { * name: "test", * cloudConnectorId: "test-connector", * idleTimeMins: 5, * customDomains: ["app.example.com"], * scaleGroup: { * id: "asg-arn", * name: "asg-name", * region: "us-east-1", * desired: 1, * min: 1, * max: 2, * onDemand: 1, * }, * https: [{ * proxyId: "lb-id", * routings: [{ * sourceProtocol: "http", * sourcePort: 80, * action: "forward", * targetProtocol: "http", * targetPort: 80, * }], * healths: [{ * protocol: "http", * port: 80, * path: "/", * timeout: 30, * statusCodeFrom: 200, * statusCodeTo: 299, * }], * }], * }); * ``` */ export declare class RuleScaleGroup extends pulumi.CustomResource { /** * Get an existing RuleScaleGroup 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?: RuleScaleGroupState, opts?: pulumi.CustomResourceOptions): RuleScaleGroup; /** * Returns true if the given object is an instance of RuleScaleGroup. 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 RuleScaleGroup; /** * Id of the cloud connector */ readonly cloudConnectorId: pulumi.Output; /** * Custom URLs used to access the instances */ readonly customDomains: pulumi.Output; /** * Dependent rules */ readonly depends: pulumi.Output; /** * Boolean that indicates whether the AutoStopping rule should be created in DryRun mode */ readonly dryRun: pulumi.Output; /** * Http routing configuration */ readonly https: pulumi.Output; /** * Unique identifier of the resource */ readonly identifier: pulumi.Output; /** * Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances. */ readonly idleTimeMins: pulumi.Output; /** * Name of the rule */ readonly name: pulumi.Output; /** * Scaling Group configuration */ readonly scaleGroup: pulumi.Output; /** * Create a RuleScaleGroup 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: RuleScaleGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RuleScaleGroup resources. */ export interface RuleScaleGroupState { /** * Id of the cloud connector */ cloudConnectorId?: pulumi.Input; /** * Custom URLs used to access the instances */ customDomains?: pulumi.Input[] | undefined>; /** * Dependent rules */ depends?: pulumi.Input[] | undefined>; /** * Boolean that indicates whether the AutoStopping rule should be created in DryRun mode */ dryRun?: pulumi.Input; /** * Http routing configuration */ https?: pulumi.Input[] | undefined>; /** * Unique identifier of the resource */ identifier?: pulumi.Input; /** * Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances. */ idleTimeMins?: pulumi.Input; /** * Name of the rule */ name?: pulumi.Input; /** * Scaling Group configuration */ scaleGroup?: pulumi.Input; } /** * The set of arguments for constructing a RuleScaleGroup resource. */ export interface RuleScaleGroupArgs { /** * Id of the cloud connector */ cloudConnectorId: pulumi.Input; /** * Custom URLs used to access the instances */ customDomains?: pulumi.Input[] | undefined>; /** * Dependent rules */ depends?: pulumi.Input[] | undefined>; /** * Boolean that indicates whether the AutoStopping rule should be created in DryRun mode */ dryRun?: pulumi.Input; /** * Http routing configuration */ https?: pulumi.Input[] | undefined>; /** * Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances. */ idleTimeMins?: pulumi.Input; /** * Name of the rule */ name?: pulumi.Input; /** * Scaling Group configuration */ scaleGroup: pulumi.Input; } //# sourceMappingURL=ruleScaleGroup.d.ts.map