harness.autostopping.RuleEcs
Explore with Pulumi AI
Resource for creating a Harness Variables.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  test:
    type: harness:autostopping:RuleEcs
    properties:
      name: name
      cloudConnectorId: cloud_connector_id
      idleTimeMins: 10
      dryRun: true
      container:
        cluster: cluster
        service: service
        region: us-east-1
        taskCount: 1
      tcp:
        - proxyId: proxy_id
          forwardRule:
            - port: 2233
      depends:
        - ruleId: 24576
          delayInSec: 5
Create RuleEcs Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RuleEcs(name: string, args: RuleEcsArgs, opts?: CustomResourceOptions);@overload
def RuleEcs(resource_name: str,
            args: RuleEcsArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def RuleEcs(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            cloud_connector_id: Optional[str] = None,
            container: Optional[RuleEcsContainerArgs] = None,
            custom_domains: Optional[Sequence[str]] = None,
            depends: Optional[Sequence[RuleEcsDependArgs]] = None,
            dry_run: Optional[bool] = None,
            https: Optional[Sequence[RuleEcsHttpArgs]] = None,
            idle_time_mins: Optional[int] = None,
            name: Optional[str] = None)func NewRuleEcs(ctx *Context, name string, args RuleEcsArgs, opts ...ResourceOption) (*RuleEcs, error)public RuleEcs(string name, RuleEcsArgs args, CustomResourceOptions? opts = null)
public RuleEcs(String name, RuleEcsArgs args)
public RuleEcs(String name, RuleEcsArgs args, CustomResourceOptions options)
type: harness:autostopping:RuleEcs
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RuleEcsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RuleEcsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RuleEcsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleEcsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleEcsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ruleEcsResource = new Harness.Autostopping.RuleEcs("ruleEcsResource", new()
{
    CloudConnectorId = "string",
    Container = new Harness.Autostopping.Inputs.RuleEcsContainerArgs
    {
        Cluster = "string",
        Region = "string",
        Service = "string",
        TaskCount = 0,
    },
    CustomDomains = new[]
    {
        "string",
    },
    Depends = new[]
    {
        new Harness.Autostopping.Inputs.RuleEcsDependArgs
        {
            RuleId = 0,
            DelayInSec = 0,
        },
    },
    DryRun = false,
    Https = new[]
    {
        new Harness.Autostopping.Inputs.RuleEcsHttpArgs
        {
            ProxyId = "string",
        },
    },
    IdleTimeMins = 0,
    Name = "string",
});
example, err := autostopping.NewRuleEcs(ctx, "ruleEcsResource", &autostopping.RuleEcsArgs{
	CloudConnectorId: pulumi.String("string"),
	Container: &autostopping.RuleEcsContainerArgs{
		Cluster:   pulumi.String("string"),
		Region:    pulumi.String("string"),
		Service:   pulumi.String("string"),
		TaskCount: pulumi.Int(0),
	},
	CustomDomains: pulumi.StringArray{
		pulumi.String("string"),
	},
	Depends: autostopping.RuleEcsDependArray{
		&autostopping.RuleEcsDependArgs{
			RuleId:     pulumi.Int(0),
			DelayInSec: pulumi.Int(0),
		},
	},
	DryRun: pulumi.Bool(false),
	Https: autostopping.RuleEcsHttpArray{
		&autostopping.RuleEcsHttpArgs{
			ProxyId: pulumi.String("string"),
		},
	},
	IdleTimeMins: pulumi.Int(0),
	Name:         pulumi.String("string"),
})
var ruleEcsResource = new RuleEcs("ruleEcsResource", RuleEcsArgs.builder()
    .cloudConnectorId("string")
    .container(RuleEcsContainerArgs.builder()
        .cluster("string")
        .region("string")
        .service("string")
        .taskCount(0)
        .build())
    .customDomains("string")
    .depends(RuleEcsDependArgs.builder()
        .ruleId(0)
        .delayInSec(0)
        .build())
    .dryRun(false)
    .https(RuleEcsHttpArgs.builder()
        .proxyId("string")
        .build())
    .idleTimeMins(0)
    .name("string")
    .build());
rule_ecs_resource = harness.autostopping.RuleEcs("ruleEcsResource",
    cloud_connector_id="string",
    container={
        "cluster": "string",
        "region": "string",
        "service": "string",
        "task_count": 0,
    },
    custom_domains=["string"],
    depends=[{
        "rule_id": 0,
        "delay_in_sec": 0,
    }],
    dry_run=False,
    https=[{
        "proxy_id": "string",
    }],
    idle_time_mins=0,
    name="string")
const ruleEcsResource = new harness.autostopping.RuleEcs("ruleEcsResource", {
    cloudConnectorId: "string",
    container: {
        cluster: "string",
        region: "string",
        service: "string",
        taskCount: 0,
    },
    customDomains: ["string"],
    depends: [{
        ruleId: 0,
        delayInSec: 0,
    }],
    dryRun: false,
    https: [{
        proxyId: "string",
    }],
    idleTimeMins: 0,
    name: "string",
});
type: harness:autostopping:RuleEcs
properties:
    cloudConnectorId: string
    container:
        cluster: string
        region: string
        service: string
        taskCount: 0
    customDomains:
        - string
    depends:
        - delayInSec: 0
          ruleId: 0
    dryRun: false
    https:
        - proxyId: string
    idleTimeMins: 0
    name: string
RuleEcs Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RuleEcs resource accepts the following input properties:
- CloudConnector stringId 
- Id of the cloud connector
- Container
RuleEcs Container 
- CustomDomains List<string>
- Custom URLs used to access the instances
- Depends
List<RuleEcs Depend> 
- Dependent rules
- DryRun bool
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- Https
List<RuleEcs Http> 
- Http routing configuration
- IdleTime intMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Name string
- Name of the rule
- CloudConnector stringId 
- Id of the cloud connector
- Container
RuleEcs Container Args 
- CustomDomains []string
- Custom URLs used to access the instances
- Depends
[]RuleEcs Depend Args 
- Dependent rules
- DryRun bool
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- Https
[]RuleEcs Http Args 
- Http routing configuration
- IdleTime intMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Name string
- Name of the rule
- cloudConnector StringId 
- Id of the cloud connector
- container
RuleEcs Container 
- customDomains List<String>
- Custom URLs used to access the instances
- depends
List<RuleEcs Depend> 
- Dependent rules
- dryRun Boolean
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- https
List<RuleEcs Http> 
- Http routing configuration
- idleTime IntegerMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- name String
- Name of the rule
- cloudConnector stringId 
- Id of the cloud connector
- container
RuleEcs Container 
- customDomains string[]
- Custom URLs used to access the instances
- depends
RuleEcs Depend[] 
- Dependent rules
- dryRun boolean
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- https
RuleEcs Http[] 
- Http routing configuration
- idleTime numberMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- name string
- Name of the rule
- cloud_connector_ strid 
- Id of the cloud connector
- container
RuleEcs Container Args 
- custom_domains Sequence[str]
- Custom URLs used to access the instances
- depends
Sequence[RuleEcs Depend Args] 
- Dependent rules
- dry_run bool
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- https
Sequence[RuleEcs Http Args] 
- Http routing configuration
- idle_time_ intmins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- name str
- Name of the rule
- cloudConnector StringId 
- Id of the cloud connector
- container Property Map
- customDomains List<String>
- Custom URLs used to access the instances
- depends List<Property Map>
- Dependent rules
- dryRun Boolean
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- https List<Property Map>
- Http routing configuration
- idleTime NumberMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- name String
- Name of the rule
Outputs
All input properties are implicitly available as output properties. Additionally, the RuleEcs resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier double
- Unique identifier of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier float64
- Unique identifier of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- identifier Double
- Unique identifier of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- identifier number
- Unique identifier of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- identifier float
- Unique identifier of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- identifier Number
- Unique identifier of the resource
Look up Existing RuleEcs Resource
Get an existing RuleEcs resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RuleEcsState, opts?: CustomResourceOptions): RuleEcs@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloud_connector_id: Optional[str] = None,
        container: Optional[RuleEcsContainerArgs] = None,
        custom_domains: Optional[Sequence[str]] = None,
        depends: Optional[Sequence[RuleEcsDependArgs]] = None,
        dry_run: Optional[bool] = None,
        https: Optional[Sequence[RuleEcsHttpArgs]] = None,
        identifier: Optional[float] = None,
        idle_time_mins: Optional[int] = None,
        name: Optional[str] = None) -> RuleEcsfunc GetRuleEcs(ctx *Context, name string, id IDInput, state *RuleEcsState, opts ...ResourceOption) (*RuleEcs, error)public static RuleEcs Get(string name, Input<string> id, RuleEcsState? state, CustomResourceOptions? opts = null)public static RuleEcs get(String name, Output<String> id, RuleEcsState state, CustomResourceOptions options)resources:  _:    type: harness:autostopping:RuleEcs    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CloudConnector stringId 
- Id of the cloud connector
- Container
RuleEcs Container 
- CustomDomains List<string>
- Custom URLs used to access the instances
- Depends
List<RuleEcs Depend> 
- Dependent rules
- DryRun bool
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- Https
List<RuleEcs Http> 
- Http routing configuration
- Identifier double
- Unique identifier of the resource
- IdleTime intMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Name string
- Name of the rule
- CloudConnector stringId 
- Id of the cloud connector
- Container
RuleEcs Container Args 
- CustomDomains []string
- Custom URLs used to access the instances
- Depends
[]RuleEcs Depend Args 
- Dependent rules
- DryRun bool
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- Https
[]RuleEcs Http Args 
- Http routing configuration
- Identifier float64
- Unique identifier of the resource
- IdleTime intMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- Name string
- Name of the rule
- cloudConnector StringId 
- Id of the cloud connector
- container
RuleEcs Container 
- customDomains List<String>
- Custom URLs used to access the instances
- depends
List<RuleEcs Depend> 
- Dependent rules
- dryRun Boolean
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- https
List<RuleEcs Http> 
- Http routing configuration
- identifier Double
- Unique identifier of the resource
- idleTime IntegerMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- name String
- Name of the rule
- cloudConnector stringId 
- Id of the cloud connector
- container
RuleEcs Container 
- customDomains string[]
- Custom URLs used to access the instances
- depends
RuleEcs Depend[] 
- Dependent rules
- dryRun boolean
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- https
RuleEcs Http[] 
- Http routing configuration
- identifier number
- Unique identifier of the resource
- idleTime numberMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- name string
- Name of the rule
- cloud_connector_ strid 
- Id of the cloud connector
- container
RuleEcs Container Args 
- custom_domains Sequence[str]
- Custom URLs used to access the instances
- depends
Sequence[RuleEcs Depend Args] 
- Dependent rules
- dry_run bool
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- https
Sequence[RuleEcs Http Args] 
- Http routing configuration
- identifier float
- Unique identifier of the resource
- idle_time_ intmins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- name str
- Name of the rule
- cloudConnector StringId 
- Id of the cloud connector
- container Property Map
- customDomains List<String>
- Custom URLs used to access the instances
- depends List<Property Map>
- Dependent rules
- dryRun Boolean
- Boolean that indicates whether the AutoStopping rule should be created in DryRun mode
- https List<Property Map>
- Http routing configuration
- identifier Number
- Unique identifier of the resource
- idleTime NumberMins 
- Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
- name String
- Name of the rule
Supporting Types
RuleEcsContainer, RuleEcsContainerArgs      
- 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
RuleEcsDepend, RuleEcsDependArgs      
- RuleId int
- Rule id of the dependent rule
- DelayIn intSec 
- Number of seconds the rule should wait after warming up the dependent rule
- RuleId int
- Rule id of the dependent rule
- DelayIn intSec 
- Number of seconds the rule should wait after warming up the dependent rule
- ruleId Integer
- Rule id of the dependent rule
- delayIn IntegerSec 
- Number of seconds the rule should wait after warming up the dependent rule
- ruleId number
- Rule id of the dependent rule
- delayIn 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
- ruleId Number
- Rule id of the dependent rule
- delayIn NumberSec 
- Number of seconds the rule should wait after warming up the dependent rule
RuleEcsHttp, RuleEcsHttpArgs      
- 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 harnessTerraform Provider.
