Class Target
Provides a Spotinst Multai Target.
Example Usage
using Pulumi;
using SpotInst = Pulumi.SpotInst;
class MyStack : Stack
{
public MyStack()
{
var myTarget = new SpotInst.Multai.Target("myTarget", new SpotInst.Multai.TargetArgs
{
BalancerId = "b-12345",
Host = "host",
Port = 1338,
Tags =
{
new SpotInst.Multai.Inputs.TargetTagArgs
{
Key = "env",
Value = "prod",
},
},
TargetSetId = "l-98765",
Weight = 1,
});
}
}
Inherited Members
Namespace: Pulumi.SpotInst.Multai
Assembly: Pulumi.SpotInst.dll
Syntax
public class Target : CustomResource
Constructors
View SourceTarget(String, TargetArgs, CustomResourceOptions)
Create a Target resource with the given unique name, arguments, and options.
Declaration
public Target(string name, TargetArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TargetArgs | 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> |
Host
The address (IP or URL) of the targets to register
Declaration
public Output<string> Host { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the Target . 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 the target will register to.
Declaration
public Output<int?> Port { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Tags
A list of key:value paired tags.
Declaration
public Output<ImmutableArray<TargetTag>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<TargetTag>> |
TargetSetId
The ID of the target set.
Declaration
public Output<string> TargetSetId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Weight
Defines how traffic is distributed between targets.
Declaration
public Output<int> Weight { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Methods
View SourceGet(String, Input<String>, TargetState, CustomResourceOptions)
Get an existing Target resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Target Get(string name, Input<string> id, TargetState 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. |
| TargetState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Target |