Show / Hide Table of Contents

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

}
Inheritance
System.Object
Resource
CustomResource
Target
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 Target : CustomResource

Constructors

View Source

Target(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 Source

BalancerId

The ID of the balancer.

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

Host

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

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

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>
View Source

Port

The port the target will register to.

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

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>>
View Source

TargetSetId

The ID of the target set.

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

Weight

Defines how traffic is distributed between targets.

Declaration
public Output<int> Weight { get; }
Property Value
Type Description
Output<System.Int32>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.