Class TargetSet
Provides a Spotinst Multai Target Set.
Example Usage
using Pulumi;
using SpotInst = Pulumi.SpotInst;
class MyStack : Stack
{
public MyStack()
{
var myTargetSet = new SpotInst.Multai.TargetSet("myTargetSet", new SpotInst.Multai.TargetSetArgs
{
BalancerId = "b-12345",
DeploymentId = "dp-12345",
HealthCheck = new SpotInst.Multai.Inputs.TargetSetHealthCheckArgs
{
HealthyThreshold = 3,
Interval = 20,
Path = "/",
Port = 3001,
Protocol = "http",
Timeout = 5,
UnhealthyThreshold = 3,
},
Port = 1338,
Protocol = "http",
Tags =
{
new SpotInst.Multai.Inputs.TargetSetTagArgs
{
Key = "env",
Value = "prod",
},
},
Weight = 2,
});
}
}
Inherited Members
Namespace: Pulumi.SpotInst.Multai
Assembly: Pulumi.SpotInst.dll
Syntax
public class TargetSet : CustomResource
Constructors
View SourceTargetSet(String, TargetSetArgs, CustomResourceOptions)
Create a TargetSet resource with the given unique name, arguments, and options.
Declaration
public TargetSet(string name, TargetSetArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TargetSetArgs | 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> |
DeploymentId
The id of the deployment.
Declaration
public Output<string> DeploymentId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
HealthCheck
Declaration
public Output<TargetSetHealthCheck> HealthCheck { get; }
Property Value
| Type | Description |
|---|---|
| Output<TargetSetHealthCheck> |
Name
The name of the Target Set. Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Port
The port on which the load balancer is listening.
Declaration
public Output<int?> Port { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Protocol
The protocol to allow connections to the target for the health check.
Declaration
public Output<string> Protocol { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A list of key:value paired tags.
Declaration
public Output<ImmutableArray<TargetSetTag>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<TargetSetTag>> |
Weight
Defines how traffic is distributed between the Target Set.
Declaration
public Output<int> Weight { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Methods
View SourceGet(String, Input<String>, TargetSetState, CustomResourceOptions)
Get an existing TargetSet resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static TargetSet Get(string name, Input<string> id, TargetSetState 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. |
| TargetSetState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| TargetSet |