Show / Hide Table of Contents

Class RoutingRule

Provides a Spotinst Multai Routing Rule.

Example Usage

using Pulumi;
using SpotInst = Pulumi.SpotInst;

class MyStack : Stack
{
public MyStack()
{
    var myRoutingRule = new SpotInst.Multai.RoutingRule("myRoutingRule", new SpotInst.Multai.RoutingRuleArgs
    {
        BalancerId = "b-12345",
        ListenerId = "l-98765",
        Route = "Path(`/bar`)",
        Strategy = "LEASTCONN",
        Tags = 
        {
            new SpotInst.Multai.Inputs.RoutingRuleTagArgs
            {
                Key = "env",
                Value = "prod",
            },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
RoutingRule
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.SpotInst.Multai
Assembly: Pulumi.SpotInst.dll
Syntax
public class RoutingRule : CustomResource

Constructors

View Source

RoutingRule(String, RoutingRuleArgs, CustomResourceOptions)

Create a RoutingRule resource with the given unique name, arguments, and options.

Declaration
public RoutingRule(string name, RoutingRuleArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RoutingRuleArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

BalancerId

The ID of the balancer.

Declaration
public Output<string> BalancerId { get; }
Property Value
Type Description
Output<System.String>
View Source

ListenerId

The ID of the listener.

Declaration
public Output<string> ListenerId { get; }
Property Value
Type Description
Output<System.String>
View Source

MiddlewareIds

Declaration
public Output<ImmutableArray<string>> MiddlewareIds { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Priority

Declaration
public Output<int?> Priority { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Route

Route defines a simple language for matching HTTP requests and route the traffic accordingly. Route provides series of matchers that follow the syntax: Path matcher: — Path("/foo/bar") // trie-based PathRegexp(“/foo/.”) // regexp-based Method matcher: — Method(“GET”) // trie-based MethodRegexp(“POST|PUT”) // regexp based Header matcher: — Header(“Content-Type”, “application/json”) // trie-based HeaderRegexp(“Content-Type”, “application/.”) // regexp based Matchers can be combined using && operator: — Method(“POST”) && Path("/v1")

Declaration
public Output<string> Route { get; }
Property Value
Type Description
Output<System.String>
View Source

Strategy

Balancing strategy. Valid values: ROUNDROBIN, RANDOM, LEASTCONN, IPHASH.

Declaration
public Output<string> Strategy { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A list of key:value paired tags.

Declaration
public Output<ImmutableArray<RoutingRuleTag>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<RoutingRuleTag>>
View Source

TargetSetIds

Declaration
public Output<ImmutableArray<string>> TargetSetIds { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>

Methods

View Source

Get(String, Input<String>, RoutingRuleState, CustomResourceOptions)

Get an existing RoutingRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static RoutingRule Get(string name, Input<string> id, RoutingRuleState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RoutingRuleState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
RoutingRule
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.