1. Packages
  2. Harness
  3. API Docs
  4. autostopping
  5. getRuleEcs
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

harness.autostopping.getRuleEcs

Explore with Pulumi AI

harness logo
Harness v0.3.2 published on Monday, Sep 16, 2024 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.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:

    CloudConnectorId string
    Id of the cloud connector
    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
    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
    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
    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
    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
    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.

    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 string
    Name of cluster in which service belong to
    Region string
    Region of cluster
    Service string
    Name of service to be onboarded
    TaskCount int
    Desired number of tasks on warming up a rule
    Cluster string
    Name of cluster in which service belong to
    Region string
    Region of cluster
    Service string
    Name of service to be onboarded
    TaskCount int
    Desired number of tasks on warming up a rule
    cluster String
    Name of cluster in which service belong to
    region String
    Region of cluster
    service String
    Name of service to be onboarded
    taskCount Integer
    Desired number of tasks on warming up a rule
    cluster string
    Name of cluster in which service belong to
    region string
    Region of cluster
    service string
    Name of service to be onboarded
    taskCount number
    Desired number of tasks on warming up a rule
    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
    cluster String
    Name of cluster in which service belong to
    region String
    Region of cluster
    service String
    Name of service to be onboarded
    taskCount Number
    Desired number of tasks on warming up a rule

    GetRuleEcsDepend

    RuleId int
    Rule id of the dependent rule
    DelayInSec int
    Number of seconds the rule should wait after warming up the dependent rule
    RuleId int
    Rule id of the dependent rule
    DelayInSec int
    Number of seconds the rule should wait after warming up the dependent rule
    ruleId Integer
    Rule id of the dependent rule
    delayInSec Integer
    Number of seconds the rule should wait after warming up the dependent rule
    ruleId number
    Rule id of the dependent rule
    delayInSec number
    Number of seconds the rule should wait after warming up the dependent rule
    rule_id 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 Number
    Rule id of the dependent rule
    delayInSec Number
    Number of seconds the rule should wait after warming up the dependent rule

    GetRuleEcsHttp

    ProxyId string
    Id of the proxy
    ProxyId string
    Id of the proxy
    proxyId String
    Id of the proxy
    proxyId string
    Id of the proxy
    proxy_id str
    Id of the proxy
    proxyId 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 logo
    Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi