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",
},
},
});
}
}
Inherited Members
Namespace: Pulumi.SpotInst.Multai
Assembly: Pulumi.SpotInst.dll
Syntax
public class RoutingRule : CustomResource
Constructors
View SourceRoutingRule(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 SourceBalancerId
The ID of the balancer.
Declaration
public Output<string> BalancerId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ListenerId
The ID of the listener.
Declaration
public Output<string> ListenerId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MiddlewareIds
Declaration
public Output<ImmutableArray<string>> MiddlewareIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Priority
Declaration
public Output<int?> Priority { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
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> |
Strategy
Balancing strategy. Valid values: ROUNDROBIN, RANDOM, LEASTCONN, IPHASH.
Declaration
public Output<string> Strategy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
TargetSetIds
Declaration
public Output<ImmutableArray<string>> TargetSetIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Methods
View SourceGet(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 |