Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi
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
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,
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,
},
},
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),
},
},
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())
.https(RuleEcsHttpArgs.builder()
.proxyId("string")
.build())
.idleTimeMins(0)
.name("string")
.build());
rule_ecs_resource = harness.autostopping.RuleEcs("ruleEcsResource",
cloud_connector_id="string",
container=harness.autostopping.RuleEcsContainerArgs(
cluster="string",
region="string",
service="string",
task_count=0,
),
custom_domains=["string"],
depends=[harness.autostopping.RuleEcsDependArgs(
rule_id=0,
delay_in_sec=0,
)],
https=[harness.autostopping.RuleEcsHttpArgs(
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,
}],
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
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
The RuleEcs resource accepts the following input properties:
- Cloud
Connector stringId - Id of the cloud connector
- Container
Rule
Ecs Container - Custom
Domains List<string> - Custom URLs used to access the instances
- Depends
List<Rule
Ecs Depend> - Dependent rules
- Https
List<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.
- Name string
- Name of the rule
- Cloud
Connector stringId - Id of the cloud connector
- Container
Rule
Ecs Container Args - Custom
Domains []string - Custom URLs used to access the instances
- Depends
[]Rule
Ecs Depend Args - Dependent rules
- Https
[]Rule
Ecs 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 string
- Name of the rule
- cloud
Connector StringId - Id of the cloud connector
- container
Rule
Ecs Container - custom
Domains List<String> - Custom URLs used to access the instances
- depends
List<Rule
Ecs Depend> - Dependent rules
- https
List<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.
- name String
- Name of the rule
- cloud
Connector stringId - Id of the cloud connector
- container
Rule
Ecs Container - custom
Domains string[] - Custom URLs used to access the instances
- depends
Rule
Ecs Depend[] - Dependent rules
- https
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.
- name string
- Name of the rule
- cloud_
connector_ strid - Id of the cloud connector
- container
Rule
Ecs Container Args - custom_
domains Sequence[str] - Custom URLs used to access the instances
- depends
Sequence[Rule
Ecs Depend Args] - Dependent rules
- https
Sequence[Rule
Ecs 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
- cloud
Connector StringId - Id of the cloud connector
- 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.
- 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,
https: Optional[Sequence[RuleEcsHttpArgs]] = None,
identifier: Optional[float] = None,
idle_time_mins: Optional[int] = None,
name: Optional[str] = None) -> RuleEcs
func 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)
Resource lookup is not supported in YAML
- 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.
- Cloud
Connector stringId - Id of the cloud connector
- Container
Rule
Ecs Container - Custom
Domains List<string> - Custom URLs used to access the instances
- Depends
List<Rule
Ecs Depend> - Dependent rules
- Https
List<Rule
Ecs Http> - Http routing configuration
- Identifier double
- 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 string
- Name of the rule
- Cloud
Connector stringId - Id of the cloud connector
- Container
Rule
Ecs Container Args - Custom
Domains []string - Custom URLs used to access the instances
- Depends
[]Rule
Ecs Depend Args - Dependent rules
- Https
[]Rule
Ecs Http Args - Http routing configuration
- Identifier float64
- 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 string
- Name of the rule
- cloud
Connector StringId - Id of the cloud connector
- container
Rule
Ecs Container - custom
Domains List<String> - Custom URLs used to access the instances
- depends
List<Rule
Ecs Depend> - Dependent rules
- https
List<Rule
Ecs Http> - Http routing configuration
- identifier Double
- Unique identifier of the resource
- idle
Time 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
- cloud
Connector stringId - Id of the cloud connector
- container
Rule
Ecs Container - custom
Domains string[] - Custom URLs used to access the instances
- depends
Rule
Ecs Depend[] - Dependent rules
- https
Rule
Ecs Http[] - Http routing configuration
- identifier number
- Unique identifier of the resource
- idle
Time 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
Rule
Ecs Container Args - custom_
domains Sequence[str] - Custom URLs used to access the instances
- depends
Sequence[Rule
Ecs Depend Args] - Dependent rules
- https
Sequence[Rule
Ecs 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
- cloud
Connector StringId - Id of the cloud connector
- 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
- identifier Number
- Unique identifier of the resource
- idle
Time 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
- 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
RuleEcsHttp, RuleEcsHttpArgs
- 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.