Show / Hide Table of Contents

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

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

Constructors

View Source

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

BalancerId

The id of the balancer.

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

DeploymentId

The id of the deployment.

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

HealthCheck

Declaration
public Output<TargetSetHealthCheck> HealthCheck { get; }
Property Value
Type Description
Output<TargetSetHealthCheck>
View Source

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

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

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

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

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 Source

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