Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi
harness.autostopping.getRuleEcs
Explore with Pulumi AI
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.GetRuleEcsArgs;
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.getRuleEcs(GetRuleEcsArgs.builder()
.identifier("identifier")
.build());
}
}
variables:
example:
fn::invoke:
Function: harness:autostopping:getRuleEcs
Arguments:
identifier: identifier
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>
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]
func LookupRuleEcs(ctx *Context, args *LookupRuleEcsArgs, opts ...InvokeOption) (*LookupRuleEcsResult, error)
func LookupRuleEcsOutput(ctx *Context, args *LookupRuleEcsOutputArgs, opts ...InvokeOption) LookupRuleEcsResultOutput
> 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)
}
public static CompletableFuture<GetRuleEcsResult> getRuleEcs(GetRuleEcsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:autostopping/getRuleEcs:getRuleEcs
arguments:
# arguments dictionary
The following arguments are supported:
- Cloud
Connector stringId - Id of the cloud connector
- Name string
- Name of the rule
- Container
Get
Rule Ecs Container - Custom
Domains List<string> - Custom URLs used to access the instances
- Depends
List<Get
Rule Ecs Depend> - Dependent rules
- Https
List<Get
Rule Ecs Http> - Http routing configuration
- Idle
Time intMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Cloud
Connector stringId - Id of the cloud connector
- Name string
- Name of the rule
- Container
Get
Rule Ecs Container - Custom
Domains []string - Custom URLs used to access the instances
- Depends
[]Get
Rule Ecs Depend - Dependent rules
- Https
[]Get
Rule Ecs Http - Http routing configuration
- Idle
Time intMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector StringId - Id of the cloud connector
- name String
- Name of the rule
- container
Get
Rule Ecs Container - custom
Domains List<String> - Custom URLs used to access the instances
- depends
List<Get
Rule Ecs Depend> - Dependent rules
- https
List<Get
Rule Ecs Http> - Http routing configuration
- idle
Time IntegerMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector stringId - Id of the cloud connector
- name string
- Name of the rule
- container
Get
Rule Ecs Container - custom
Domains string[] - Custom URLs used to access the instances
- depends
Get
Rule Ecs Depend[] - Dependent rules
- https
Get
Rule Ecs Http[] - Http routing configuration
- idle
Time numberMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud_
connector_ strid - Id of the cloud connector
- name str
- Name of the rule
- container
Get
Rule Ecs Container - custom_
domains Sequence[str] - Custom URLs used to access the instances
- depends
Sequence[Get
Rule Ecs Depend] - Dependent rules
- https
Sequence[Get
Rule Ecs Http] - Http routing configuration
- idle_
time_ intmins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector StringId - Id of the cloud connector
- name String
- Name of the rule
- container Property Map
- custom
Domains List<String> - Custom URLs used to access the instances
- depends List<Property Map>
- Dependent rules
- https List<Property Map>
- Http routing configuration
- idle
Time NumberMins - 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:
- Cloud
Connector stringId - 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
Get
Rule Ecs Container - Custom
Domains List<string> - Custom URLs used to access the instances
- Depends
List<Get
Rule Ecs Depend> - Dependent rules
- Https
List<Get
Rule Ecs Http> - Http routing configuration
- Idle
Time intMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Cloud
Connector stringId - 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
Get
Rule Ecs Container - Custom
Domains []string - Custom URLs used to access the instances
- Depends
[]Get
Rule Ecs Depend - Dependent rules
- Https
[]Get
Rule Ecs Http - Http routing configuration
- Idle
Time intMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector StringId - 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
Get
Rule Ecs Container - custom
Domains List<String> - Custom URLs used to access the instances
- depends
List<Get
Rule Ecs Depend> - Dependent rules
- https
List<Get
Rule Ecs Http> - Http routing configuration
- idle
Time IntegerMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector stringId - 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
Get
Rule Ecs Container - custom
Domains string[] - Custom URLs used to access the instances
- depends
Get
Rule Ecs Depend[] - Dependent rules
- https
Get
Rule Ecs Http[] - Http routing configuration
- idle
Time numberMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud_
connector_ strid - 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
Get
Rule Ecs Container - custom_
domains Sequence[str] - Custom URLs used to access the instances
- depends
Sequence[Get
Rule Ecs Depend] - Dependent rules
- https
Sequence[Get
Rule Ecs Http] - Http routing configuration
- idle_
time_ intmins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- cloud
Connector StringId - 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
- custom
Domains List<String> - Custom URLs used to access the instances
- depends List<Property Map>
- Dependent rules
- https List<Property Map>
- Http routing configuration
- idle
Time NumberMins - Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
Supporting Types
GetRuleEcsContainer
- cluster str
- Name of cluster in which service belong to
- region str
- Region of cluster
- service str
- Name of service to be onboarded
- task_
count int - Desired number of tasks on warming up a rule
GetRuleEcsDepend
- Rule
Id int - Rule id of the dependent rule
- Delay
In intSec - Number of seconds the rule should wait after warming up the dependent rule
- Rule
Id int - Rule id of the dependent rule
- Delay
In intSec - Number of seconds the rule should wait after warming up the dependent rule
- rule
Id Integer - Rule id of the dependent rule
- delay
In IntegerSec - Number of seconds the rule should wait after warming up the dependent rule
- rule
Id number - Rule id of the dependent rule
- delay
In numberSec - Number of seconds the rule should wait after warming up the dependent rule
- rule_
id int - Rule id of the dependent rule
- delay_
in_ intsec - Number of seconds the rule should wait after warming up the dependent rule
- rule
Id Number - Rule id of the dependent rule
- delay
In NumberSec - Number of seconds the rule should wait after warming up the dependent rule
GetRuleEcsHttp
- Proxy
Id string - Id of the proxy
- Proxy
Id string - Id of the proxy
- proxy
Id String - Id of the proxy
- proxy
Id string - Id of the proxy
- proxy_
id str - Id of the proxy
- proxy
Id 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.