1. Packages
  2. Harness Provider
  3. API Docs
  4. autostopping
  5. getRuleEcs
Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi

harness.autostopping.getRuleEcs

Explore with Pulumi AI

Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi

Data source for retrieving a Harness Variable.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
variables:
  example:
    fn::invoke:
      function: harness:autostopping:getRuleEcs
      arguments:
        identifier: identifier
Copy

Using getRuleEcs

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 getRuleEcs(args: GetRuleEcsArgs, opts?: InvokeOptions): Promise<GetRuleEcsResult>
function getRuleEcsOutput(args: GetRuleEcsOutputArgs, opts?: InvokeOptions): Output<GetRuleEcsResult>
Copy
def get_rule_ecs(cloud_connector_id: Optional[str] = None,
                 container: Optional[GetRuleEcsContainer] = None,
                 custom_domains: Optional[Sequence[str]] = None,
                 depends: Optional[Sequence[GetRuleEcsDepend]] = None,
                 https: Optional[Sequence[GetRuleEcsHttp]] = None,
                 idle_time_mins: Optional[int] = None,
                 name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetRuleEcsResult
def get_rule_ecs_output(cloud_connector_id: Optional[pulumi.Input[str]] = None,
                 container: Optional[pulumi.Input[GetRuleEcsContainerArgs]] = None,
                 custom_domains: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 depends: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuleEcsDependArgs]]]] = None,
                 https: Optional[pulumi.Input[Sequence[pulumi.Input[GetRuleEcsHttpArgs]]]] = None,
                 idle_time_mins: Optional[pulumi.Input[int]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetRuleEcsResult]
Copy
func LookupRuleEcs(ctx *Context, args *LookupRuleEcsArgs, opts ...InvokeOption) (*LookupRuleEcsResult, error)
func LookupRuleEcsOutput(ctx *Context, args *LookupRuleEcsOutputArgs, opts ...InvokeOption) LookupRuleEcsResultOutput
Copy

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

public static class GetRuleEcs 
{
    public static Task<GetRuleEcsResult> InvokeAsync(GetRuleEcsArgs args, InvokeOptions? opts = null)
    public static Output<GetRuleEcsResult> Invoke(GetRuleEcsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRuleEcsResult> getRuleEcs(GetRuleEcsArgs args, InvokeOptions options)
public static Output<GetRuleEcsResult> getRuleEcs(GetRuleEcsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:autostopping/getRuleEcs:getRuleEcs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CloudConnectorId This property is required. string
Id of the cloud connector
Name This property is required. string
Name of the rule
Container GetRuleEcsContainer
CustomDomains List<string>
Custom URLs used to access the instances
Depends List<GetRuleEcsDepend>
Dependent rules
Https List<GetRuleEcsHttp>
Http routing configuration
IdleTimeMins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
CloudConnectorId This property is required. string
Id of the cloud connector
Name This property is required. string
Name of the rule
Container GetRuleEcsContainer
CustomDomains []string
Custom URLs used to access the instances
Depends []GetRuleEcsDepend
Dependent rules
Https []GetRuleEcsHttp
Http routing configuration
IdleTimeMins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
cloudConnectorId This property is required. String
Id of the cloud connector
name This property is required. String
Name of the rule
container GetRuleEcsContainer
customDomains List<String>
Custom URLs used to access the instances
depends List<GetRuleEcsDepend>
Dependent rules
https List<GetRuleEcsHttp>
Http routing configuration
idleTimeMins Integer
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
cloudConnectorId This property is required. string
Id of the cloud connector
name This property is required. string
Name of the rule
container GetRuleEcsContainer
customDomains string[]
Custom URLs used to access the instances
depends GetRuleEcsDepend[]
Dependent rules
https GetRuleEcsHttp[]
Http routing configuration
idleTimeMins number
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
cloud_connector_id This property is required. str
Id of the cloud connector
name This property is required. str
Name of the rule
container GetRuleEcsContainer
custom_domains Sequence[str]
Custom URLs used to access the instances
depends Sequence[GetRuleEcsDepend]
Dependent rules
https Sequence[GetRuleEcsHttp]
Http routing configuration
idle_time_mins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
cloudConnectorId This property is required. String
Id of the cloud connector
name This property is required. String
Name of the rule
container Property Map
customDomains List<String>
Custom URLs used to access the instances
depends List<Property Map>
Dependent rules
https List<Property Map>
Http routing configuration
idleTimeMins Number
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.

getRuleEcs Result

The following output properties are available:

CloudConnectorId string
Id of the cloud connector
Id string
The provider-assigned unique ID for this managed resource.
Identifier double
Unique identifier of the resource
Name string
Name of the rule
Container GetRuleEcsContainer
CustomDomains List<string>
Custom URLs used to access the instances
Depends List<GetRuleEcsDepend>
Dependent rules
Https List<GetRuleEcsHttp>
Http routing configuration
IdleTimeMins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
CloudConnectorId string
Id of the cloud connector
Id string
The provider-assigned unique ID for this managed resource.
Identifier float64
Unique identifier of the resource
Name string
Name of the rule
Container GetRuleEcsContainer
CustomDomains []string
Custom URLs used to access the instances
Depends []GetRuleEcsDepend
Dependent rules
Https []GetRuleEcsHttp
Http routing configuration
IdleTimeMins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
cloudConnectorId String
Id of the cloud connector
id String
The provider-assigned unique ID for this managed resource.
identifier Double
Unique identifier of the resource
name String
Name of the rule
container GetRuleEcsContainer
customDomains List<String>
Custom URLs used to access the instances
depends List<GetRuleEcsDepend>
Dependent rules
https List<GetRuleEcsHttp>
Http routing configuration
idleTimeMins Integer
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
cloudConnectorId string
Id of the cloud connector
id string
The provider-assigned unique ID for this managed resource.
identifier number
Unique identifier of the resource
name string
Name of the rule
container GetRuleEcsContainer
customDomains string[]
Custom URLs used to access the instances
depends GetRuleEcsDepend[]
Dependent rules
https GetRuleEcsHttp[]
Http routing configuration
idleTimeMins number
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
cloud_connector_id str
Id of the cloud connector
id str
The provider-assigned unique ID for this managed resource.
identifier float
Unique identifier of the resource
name str
Name of the rule
container GetRuleEcsContainer
custom_domains Sequence[str]
Custom URLs used to access the instances
depends Sequence[GetRuleEcsDepend]
Dependent rules
https Sequence[GetRuleEcsHttp]
Http routing configuration
idle_time_mins int
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
cloudConnectorId String
Id of the cloud connector
id String
The provider-assigned unique ID for this managed resource.
identifier Number
Unique identifier of the resource
name String
Name of the rule
container Property Map
customDomains List<String>
Custom URLs used to access the instances
depends List<Property Map>
Dependent rules
https List<Property Map>
Http routing configuration
idleTimeMins Number
Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.

Supporting Types

GetRuleEcsContainer

Cluster This property is required. string
Name of cluster in which service belong to
Region This property is required. string
Region of cluster
Service This property is required. string
Name of service to be onboarded
TaskCount int
Desired number of tasks on warming up a rule
Cluster This property is required. string
Name of cluster in which service belong to
Region This property is required. string
Region of cluster
Service This property is required. string
Name of service to be onboarded
TaskCount int
Desired number of tasks on warming up a rule
cluster This property is required. String
Name of cluster in which service belong to
region This property is required. String
Region of cluster
service This property is required. String
Name of service to be onboarded
taskCount Integer
Desired number of tasks on warming up a rule
cluster This property is required. string
Name of cluster in which service belong to
region This property is required. string
Region of cluster
service This property is required. string
Name of service to be onboarded
taskCount number
Desired number of tasks on warming up a rule
cluster This property is required. str
Name of cluster in which service belong to
region This property is required. str
Region of cluster
service This property is required. str
Name of service to be onboarded
task_count int
Desired number of tasks on warming up a rule
cluster This property is required. String
Name of cluster in which service belong to
region This property is required. String
Region of cluster
service This property is required. String
Name of service to be onboarded
taskCount Number
Desired number of tasks on warming up a rule

GetRuleEcsDepend

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

GetRuleEcsHttp

ProxyId This property is required. string
Id of the proxy
ProxyId This property is required. string
Id of the proxy
proxyId This property is required. String
Id of the proxy
proxyId This property is required. string
Id of the proxy
proxy_id This property is required. str
Id of the proxy
proxyId This property is required. String
Id of 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.2 published on Tuesday, Apr 15, 2025 by Pulumi