import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a AutoStopping rule for ECS services. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = new harness.autostopping.RuleEcs("test", { * name: "name", * cloudConnectorId: "cloud_connector_id", * idleTimeMins: 10, * dryRun: true, * container: { * cluster: "cluster", * service: "service", * region: "us-east-1", * taskCount: 1, * }, * depends: [{ * ruleId: 24576, * delayInSec: 5, * }], * }); * ``` */ export declare class RuleEcs extends pulumi.CustomResource { /** * Get an existing RuleEcs 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?: RuleEcsState, opts?: pulumi.CustomResourceOptions): RuleEcs; /** * Returns true if the given object is an instance of RuleEcs. 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 RuleEcs; /** * Id of the cloud connector */ readonly cloudConnectorId: pulumi.Output; readonly container: 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; /** * Create a RuleEcs 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: RuleEcsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RuleEcs resources. */ export interface RuleEcsState { /** * Id of the cloud connector */ cloudConnectorId?: pulumi.Input; container?: 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; } /** * The set of arguments for constructing a RuleEcs resource. */ export interface RuleEcsArgs { /** * Id of the cloud connector */ cloudConnectorId: pulumi.Input; container?: 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; } //# sourceMappingURL=ruleEcs.d.ts.map