1. Packages
  2. Harness Provider
  3. API Docs
  4. autostopping
  5. RuleEcs
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

harness.autostopping.RuleEcs

Explore with Pulumi AI

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

    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={
            "cluster": "string",
            "region": "string",
            "service": "string",
            "task_count": 0,
        },
        custom_domains=["string"],
        depends=[{
            "rule_id": 0,
            "delay_in_sec": 0,
        }],
        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,
        }],
        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

    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:

    CloudConnectorId string
    Id of the cloud connector
    Container RuleEcsContainer
    CustomDomains List<string>
    Custom URLs used to access the instances
    Depends List<RuleEcsDepend>
    Dependent rules
    Https List<RuleEcsHttp>
    Http routing configuration
    IdleTimeMins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    Name string
    Name of the rule
    CloudConnectorId string
    Id of the cloud connector
    Container RuleEcsContainerArgs
    CustomDomains []string
    Custom URLs used to access the instances
    Depends []RuleEcsDependArgs
    Dependent rules
    Https []RuleEcsHttpArgs
    Http routing configuration
    IdleTimeMins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    Name string
    Name of the rule
    cloudConnectorId String
    Id of the cloud connector
    container RuleEcsContainer
    customDomains List<String>
    Custom URLs used to access the instances
    depends List<RuleEcsDepend>
    Dependent rules
    https List<RuleEcsHttp>
    Http routing configuration
    idleTimeMins Integer
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    name String
    Name of the rule
    cloudConnectorId string
    Id of the cloud connector
    container RuleEcsContainer
    customDomains string[]
    Custom URLs used to access the instances
    depends RuleEcsDepend[]
    Dependent rules
    https RuleEcsHttp[]
    Http routing configuration
    idleTimeMins number
    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_id str
    Id of the cloud connector
    container RuleEcsContainerArgs
    custom_domains Sequence[str]
    Custom URLs used to access the instances
    depends Sequence[RuleEcsDependArgs]
    Dependent rules
    https Sequence[RuleEcsHttpArgs]
    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.
    name str
    Name of the rule
    cloudConnectorId String
    Id of the cloud connector
    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.
    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.
    The following state arguments are supported:
    CloudConnectorId string
    Id of the cloud connector
    Container RuleEcsContainer
    CustomDomains List<string>
    Custom URLs used to access the instances
    Depends List<RuleEcsDepend>
    Dependent rules
    Https List<RuleEcsHttp>
    Http routing configuration
    Identifier double
    Unique identifier of the resource
    IdleTimeMins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    Name string
    Name of the rule
    CloudConnectorId string
    Id of the cloud connector
    Container RuleEcsContainerArgs
    CustomDomains []string
    Custom URLs used to access the instances
    Depends []RuleEcsDependArgs
    Dependent rules
    Https []RuleEcsHttpArgs
    Http routing configuration
    Identifier float64
    Unique identifier of the resource
    IdleTimeMins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    Name string
    Name of the rule
    cloudConnectorId String
    Id of the cloud connector
    container RuleEcsContainer
    customDomains List<String>
    Custom URLs used to access the instances
    depends List<RuleEcsDepend>
    Dependent rules
    https List<RuleEcsHttp>
    Http routing configuration
    identifier Double
    Unique identifier of the resource
    idleTimeMins Integer
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    name String
    Name of the rule
    cloudConnectorId string
    Id of the cloud connector
    container RuleEcsContainer
    customDomains string[]
    Custom URLs used to access the instances
    depends RuleEcsDepend[]
    Dependent rules
    https RuleEcsHttp[]
    Http routing configuration
    identifier number
    Unique identifier of the resource
    idleTimeMins number
    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_id str
    Id of the cloud connector
    container RuleEcsContainerArgs
    custom_domains Sequence[str]
    Custom URLs used to access the instances
    depends Sequence[RuleEcsDependArgs]
    Dependent rules
    https Sequence[RuleEcsHttpArgs]
    Http routing configuration
    identifier float
    Unique identifier of the resource
    idle_time_mins int
    Idle time in minutes. This is the time that the AutoStopping rule waits before stopping the idle instances.
    name str
    Name of the rule
    cloudConnectorId String
    Id of the cloud connector
    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
    identifier Number
    Unique identifier of the resource
    idleTimeMins Number
    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 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

    RuleEcsDepend, RuleEcsDependArgs

    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

    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 harness Terraform Provider.
    harness logo
    Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi