UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

149 lines (148 loc) 4.88 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a Harness Variables. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const test = new harness.autostopping.RuleRds("test", { * name: "name", * cloudConnectorId: "cloud_connector_id", * idleTimeMins: 10, * dryRun: true, * database: { * id: "database_id", * region: "region", * }, * tcps: [{ * proxyId: "proxy_id", * forwardRules: [{ * port: 2233, * }], * }], * }); * ``` */ export declare class RuleRds extends pulumi.CustomResource { /** * Get an existing RuleRds 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<pulumi.ID>, state?: RuleRdsState, opts?: pulumi.CustomResourceOptions): RuleRds; /** * Returns true if the given object is an instance of RuleRds. 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 RuleRds; /** * Id of the cloud connector */ readonly cloudConnectorId: pulumi.Output<string>; readonly database: pulumi.Output<outputs.autostopping.RuleRdsDatabase>; /** * Dependent rules */ readonly depends: pulumi.Output<outputs.autostopping.RuleRdsDepend[] | undefined>; /** * Boolean that indicates whether the AutoStopping rule should be created in DryRun mode */ readonly dryRun: pulumi.Output<boolean | undefined>; /** * Unique identifier of the resource */ readonly identifier: pulumi.Output<number>; /** * Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances. */ readonly idleTimeMins: pulumi.Output<number | undefined>; /** * Name of the rule */ readonly name: pulumi.Output<string>; /** * TCP routing configuration */ readonly tcps: pulumi.Output<outputs.autostopping.RuleRdsTcp[] | undefined>; /** * Create a RuleRds 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: RuleRdsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RuleRds resources. */ export interface RuleRdsState { /** * Id of the cloud connector */ cloudConnectorId?: pulumi.Input<string>; database?: pulumi.Input<inputs.autostopping.RuleRdsDatabase>; /** * Dependent rules */ depends?: pulumi.Input<pulumi.Input<inputs.autostopping.RuleRdsDepend>[]>; /** * Boolean that indicates whether the AutoStopping rule should be created in DryRun mode */ dryRun?: pulumi.Input<boolean>; /** * Unique identifier of the resource */ identifier?: pulumi.Input<number>; /** * Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances. */ idleTimeMins?: pulumi.Input<number>; /** * Name of the rule */ name?: pulumi.Input<string>; /** * TCP routing configuration */ tcps?: pulumi.Input<pulumi.Input<inputs.autostopping.RuleRdsTcp>[]>; } /** * The set of arguments for constructing a RuleRds resource. */ export interface RuleRdsArgs { /** * Id of the cloud connector */ cloudConnectorId: pulumi.Input<string>; database: pulumi.Input<inputs.autostopping.RuleRdsDatabase>; /** * Dependent rules */ depends?: pulumi.Input<pulumi.Input<inputs.autostopping.RuleRdsDepend>[]>; /** * Boolean that indicates whether the AutoStopping rule should be created in DryRun mode */ dryRun?: pulumi.Input<boolean>; /** * Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances. */ idleTimeMins?: pulumi.Input<number>; /** * Name of the rule */ name?: pulumi.Input<string>; /** * TCP routing configuration */ tcps?: pulumi.Input<pulumi.Input<inputs.autostopping.RuleRdsTcp>[]>; }