1. Packages
  2. Harness Provider
  3. API Docs
  4. autostopping
  5. getRuleRds
Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi

harness.autostopping.getRuleRds

Explore with Pulumi AI

Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi

Data source for retrieving a Harness Variable.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.autostopping.AutostoppingFunctions;
import com.pulumi.harness.autostopping.inputs.GetRuleRdsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = AutostoppingFunctions.getRuleRds(GetRuleRdsArgs.builder()
            .identifier("identifier")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: harness:autostopping:getRuleRds
      arguments:
        identifier: identifier
Copy

Using getRuleRds

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRuleRds(args: GetRuleRdsArgs, opts?: InvokeOptions): Promise<GetRuleRdsResult>
function getRuleRdsOutput(args: GetRuleRdsOutputArgs, opts?: InvokeOptions): Output<GetRuleRdsResult>
Copy
def get_rule_rds(cloud_connector_id: Optional[str] = None,
                 database: Optional[GetRuleRdsDatabase] = None,
                 depends: Optional[Sequence[GetRuleRdsDepend]] = None,
                 idle_time_mins: Optional[int] = None,
                 name: Optional[str] = None,
                 tcps: Optional[Sequence[GetRuleRdsTcp]] = None,
                 opts: Optional[InvokeOptions] = None) -> GetRuleRdsResult
def get_rule_rds_output(cloud_connector_id: Optional[pulumi.Input[str]] = None,
                 database: Optional[pulumi.Input[GetRuleRdsDatabaseArgs]] = None,
                 depends: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuleRdsDependArgs]]]] = None,
                 idle_time_mins: Optional[pulumi.Input[int]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 tcps: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuleRdsTcpArgs]]]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetRuleRdsResult]
Copy
func LookupRuleRds(ctx *Context, args *LookupRuleRdsArgs, opts ...InvokeOption) (*LookupRuleRdsResult, error)
func LookupRuleRdsOutput(ctx *Context, args *LookupRuleRdsOutputArgs, opts ...InvokeOption) LookupRuleRdsResultOutput
Copy

> Note: This function is named LookupRuleRds in the Go SDK.

public static class GetRuleRds 
{
    public static Task<GetRuleRdsResult> InvokeAsync(GetRuleRdsArgs args, InvokeOptions? opts = null)
    public static Output<GetRuleRdsResult> Invoke(GetRuleRdsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRuleRdsResult> getRuleRds(GetRuleRdsArgs args, InvokeOptions options)
public static Output<GetRuleRdsResult> getRuleRds(GetRuleRdsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:autostopping/getRuleRds:getRuleRds
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CloudConnectorId This property is required. string
Id of the cloud connector
Database This property is required. GetRuleRdsDatabase
Name This property is required. string
Name of the rule
Depends List<GetRuleRdsDepend>
Dependent rules
IdleTimeMins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
Tcps List<GetRuleRdsTcp>
TCP routing configuration
CloudConnectorId This property is required. string
Id of the cloud connector
Database This property is required. GetRuleRdsDatabase
Name This property is required. string
Name of the rule
Depends []GetRuleRdsDepend
Dependent rules
IdleTimeMins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
Tcps []GetRuleRdsTcp
TCP routing configuration
cloudConnectorId This property is required. String
Id of the cloud connector
database This property is required. GetRuleRdsDatabase
name This property is required. String
Name of the rule
depends List<GetRuleRdsDepend>
Dependent rules
idleTimeMins Integer
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
tcps List<GetRuleRdsTcp>
TCP routing configuration
cloudConnectorId This property is required. string
Id of the cloud connector
database This property is required. GetRuleRdsDatabase
name This property is required. string
Name of the rule
depends GetRuleRdsDepend[]
Dependent rules
idleTimeMins number
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
tcps GetRuleRdsTcp[]
TCP routing configuration
cloud_connector_id This property is required. str
Id of the cloud connector
database This property is required. GetRuleRdsDatabase
name This property is required. str
Name of the rule
depends Sequence[GetRuleRdsDepend]
Dependent rules
idle_time_mins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
tcps Sequence[GetRuleRdsTcp]
TCP routing configuration
cloudConnectorId This property is required. String
Id of the cloud connector
database This property is required. Property Map
name This property is required. String
Name of the rule
depends List<Property Map>
Dependent rules
idleTimeMins Number
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
tcps List<Property Map>
TCP routing configuration

getRuleRds Result

The following output properties are available:

CloudConnectorId string
Id of the cloud connector
Database GetRuleRdsDatabase
Id string
The provider-assigned unique ID for this managed resource.
Identifier double
Unique identifier of the resource
Name string
Name of the rule
Depends List<GetRuleRdsDepend>
Dependent rules
IdleTimeMins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
Tcps List<GetRuleRdsTcp>
TCP routing configuration
CloudConnectorId string
Id of the cloud connector
Database GetRuleRdsDatabase
Id string
The provider-assigned unique ID for this managed resource.
Identifier float64
Unique identifier of the resource
Name string
Name of the rule
Depends []GetRuleRdsDepend
Dependent rules
IdleTimeMins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
Tcps []GetRuleRdsTcp
TCP routing configuration
cloudConnectorId String
Id of the cloud connector
database GetRuleRdsDatabase
id String
The provider-assigned unique ID for this managed resource.
identifier Double
Unique identifier of the resource
name String
Name of the rule
depends List<GetRuleRdsDepend>
Dependent rules
idleTimeMins Integer
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
tcps List<GetRuleRdsTcp>
TCP routing configuration
cloudConnectorId string
Id of the cloud connector
database GetRuleRdsDatabase
id string
The provider-assigned unique ID for this managed resource.
identifier number
Unique identifier of the resource
name string
Name of the rule
depends GetRuleRdsDepend[]
Dependent rules
idleTimeMins number
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
tcps GetRuleRdsTcp[]
TCP routing configuration
cloud_connector_id str
Id of the cloud connector
database GetRuleRdsDatabase
id str
The provider-assigned unique ID for this managed resource.
identifier float
Unique identifier of the resource
name str
Name of the rule
depends Sequence[GetRuleRdsDepend]
Dependent rules
idle_time_mins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
tcps Sequence[GetRuleRdsTcp]
TCP routing configuration
cloudConnectorId String
Id of the cloud connector
database Property Map
id String
The provider-assigned unique ID for this managed resource.
identifier Number
Unique identifier of the resource
name String
Name of the rule
depends List<Property Map>
Dependent rules
idleTimeMins Number
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
tcps List<Property Map>
TCP routing configuration

Supporting Types

GetRuleRdsDatabase

Id This property is required. string
ID of the database
Region This property is required. string
Region to which database belong to
Id This property is required. string
ID of the database
Region This property is required. string
Region to which database belong to
id This property is required. String
ID of the database
region This property is required. String
Region to which database belong to
id This property is required. string
ID of the database
region This property is required. string
Region to which database belong to
id This property is required. str
ID of the database
region This property is required. str
Region to which database belong to
id This property is required. String
ID of the database
region This property is required. String
Region to which database belong to

GetRuleRdsDepend

RuleId This property is required. int
Rule id of the dependent rule
DelayInSec int
Number of seconds the rule should wait after warming up the dependent rule
RuleId This property is required. int
Rule id of the dependent rule
DelayInSec int
Number of seconds the rule should wait after warming up the dependent rule
ruleId This property is required. Integer
Rule id of the dependent rule
delayInSec Integer
Number of seconds the rule should wait after warming up the dependent rule
ruleId This property is required. number
Rule id of the dependent rule
delayInSec number
Number of seconds the rule should wait after warming up the dependent rule
rule_id This property is required. int
Rule id of the dependent rule
delay_in_sec int
Number of seconds the rule should wait after warming up the dependent rule
ruleId This property is required. Number
Rule id of the dependent rule
delayInSec Number
Number of seconds the rule should wait after warming up the dependent rule

GetRuleRdsTcp

ProxyId This property is required. string
Id of the Proxy
ForwardRules List<GetRuleRdsTcpForwardRule>
Additional tcp forwarding rules
ProxyId This property is required. string
Id of the Proxy
ForwardRules []GetRuleRdsTcpForwardRule
Additional tcp forwarding rules
proxyId This property is required. String
Id of the Proxy
forwardRules List<GetRuleRdsTcpForwardRule>
Additional tcp forwarding rules
proxyId This property is required. string
Id of the Proxy
forwardRules GetRuleRdsTcpForwardRule[]
Additional tcp forwarding rules
proxy_id This property is required. str
Id of the Proxy
forward_rules Sequence[GetRuleRdsTcpForwardRule]
Additional tcp forwarding rules
proxyId This property is required. String
Id of the Proxy
forwardRules List<Property Map>
Additional tcp forwarding rules

GetRuleRdsTcpForwardRule

Port This property is required. int
Port to listen on the vm
ConnectOn int
Port to listen on the proxy
Port This property is required. int
Port to listen on the vm
ConnectOn int
Port to listen on the proxy
port This property is required. Integer
Port to listen on the vm
connectOn Integer
Port to listen on the proxy
port This property is required. number
Port to listen on the vm
connectOn number
Port to listen on the proxy
port This property is required. int
Port to listen on the vm
connect_on int
Port to listen on the proxy
port This property is required. Number
Port to listen on the vm
connectOn Number
Port to listen on the proxy

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.
Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi