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,
        });
    }

}

Coming soon!

import pulumi
import pulumi_spotinst as spotinst

my_target = spotinst.multai.Target("myTarget",
    balancer_id="b-12345",
    host="host",
    port=1338,
    tags=[{
        "key": "env",
        "value": "prod",
    }],
    target_set_id="l-98765",
    weight=1)
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";

const myTarget = new spotinst.multai.Target("my_target", {
    balancerId: "b-12345",
    host: "host",
    port: 1338,
    tags: [{
        key: "env",
        value: "prod",
    }],
    targetSetId: "l-98765",
    weight: 1,
});

Create a Target Resource

new Target(name: string, args: TargetArgs, opts?: CustomResourceOptions);
def Target(resource_name, opts=None, balancer_id=None, host=None, name=None, port=None, tags=None, target_set_id=None, weight=None, __props__=None);
func NewTarget(ctx *Context, name string, args TargetArgs, opts ...ResourceOption) (*Target, error)
public Target(string name, TargetArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args TargetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args TargetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TargetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Target Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Target resource accepts the following input properties:

BalancerId string

The ID of the balancer.

Host string

The address (IP or URL) of the targets to register

TargetSetId string

The ID of the target set.

Weight int

Defines how traffic is distributed between targets.

Name string

The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

Port int

The port the target will register to.

Tags List<Pulumi.SpotInst.Multai.Inputs.TargetTagArgs>

A list of key:value paired tags.

BalancerId string

The ID of the balancer.

Host string

The address (IP or URL) of the targets to register

TargetSetId string

The ID of the target set.

Weight int

Defines how traffic is distributed between targets.

Name string

The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

Port int

The port the target will register to.

Tags []TargetTag

A list of key:value paired tags.

balancerId string

The ID of the balancer.

host string

The address (IP or URL) of the targets to register

targetSetId string

The ID of the target set.

weight number

Defines how traffic is distributed between targets.

name string

The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

port number

The port the target will register to.

tags TargetTag[]

A list of key:value paired tags.

balancer_id str

The ID of the balancer.

host str

The address (IP or URL) of the targets to register

target_set_id str

The ID of the target set.

weight float

Defines how traffic is distributed between targets.

name str

The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

port float

The port the target will register to.

tags List[TargetTag]

A list of key:value paired tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the Target resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Target Resource

Get an existing Target 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?: TargetState, opts?: CustomResourceOptions): Target
static get(resource_name, id, opts=None, balancer_id=None, host=None, name=None, port=None, tags=None, target_set_id=None, weight=None, __props__=None);
func GetTarget(ctx *Context, name string, id IDInput, state *TargetState, opts ...ResourceOption) (*Target, error)
public static Target Get(string name, Input<string> id, TargetState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

BalancerId string

The ID of the balancer.

Host string

The address (IP or URL) of the targets to register

Name string

The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

Port int

The port the target will register to.

Tags List<Pulumi.SpotInst.Multai.Inputs.TargetTagArgs>

A list of key:value paired tags.

TargetSetId string

The ID of the target set.

Weight int

Defines how traffic is distributed between targets.

BalancerId string

The ID of the balancer.

Host string

The address (IP or URL) of the targets to register

Name string

The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

Port int

The port the target will register to.

Tags []TargetTag

A list of key:value paired tags.

TargetSetId string

The ID of the target set.

Weight int

Defines how traffic is distributed between targets.

balancerId string

The ID of the balancer.

host string

The address (IP or URL) of the targets to register

name string

The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

port number

The port the target will register to.

tags TargetTag[]

A list of key:value paired tags.

targetSetId string

The ID of the target set.

weight number

Defines how traffic is distributed between targets.

balancer_id str

The ID of the balancer.

host str

The address (IP or URL) of the targets to register

name str

The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

port float

The port the target will register to.

tags List[TargetTag]

A list of key:value paired tags.

target_set_id str

The ID of the target set.

weight float

Defines how traffic is distributed between targets.

Supporting Types

TargetTag

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Key string

The tag’s key.

Value string

The tag’s value.

Key string

The tag’s key.

Value string

The tag’s value.

key string

The tag’s key.

value string

The tag’s value.

key str

The tag’s key.

value str

The tag’s value.

Package Details

Repository
https://github.com/pulumi/pulumi-spotinst
License
Apache-2.0
Notes
This Pulumi package is based on the spotinst Terraform Provider.