Balancer

Provides a Spotinst Multai Balancer.

Example Usage

using Pulumi;
using SpotInst = Pulumi.SpotInst;

class MyStack : Stack
{
    public MyStack()
    {
        var myBalancer = new SpotInst.Multai.Balancer("myBalancer", new SpotInst.Multai.BalancerArgs
        {
            ConnectionTimeouts = new SpotInst.Multai.Inputs.BalancerConnectionTimeoutsArgs
            {
                Draining = 10,
                Idle = 10,
            },
            Scheme = "internal",
            Tags = 
            {
                new SpotInst.Multai.Inputs.BalancerTagArgs
                {
                    Key = "env",
                    Value = "prod",
                },
            },
        });
    }

}

Coming soon!

import pulumi
import pulumi_spotinst as spotinst

my_balancer = spotinst.multai.Balancer("myBalancer",
    connection_timeouts={
        "draining": 10,
        "idle": 10,
    },
    scheme="internal",
    tags=[{
        "key": "env",
        "value": "prod",
    }])
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";

const myBalancer = new spotinst.multai.Balancer("my_balancer", {
    connectionTimeouts: {
        draining: 10,
        idle: 10,
    },
    scheme: "internal",
    tags: [{
        key: "env",
        value: "prod",
    }],
});

Create a Balancer Resource

def Balancer(resource_name, opts=None, connection_timeouts=None, dns_cname_aliases=None, name=None, scheme=None, tags=None, __props__=None);
func NewBalancer(ctx *Context, name string, args *BalancerArgs, opts ...ResourceOption) (*Balancer, error)
public Balancer(string name, BalancerArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args BalancerArgs
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 BalancerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BalancerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Balancer Resource Properties

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

Inputs

The Balancer resource accepts the following input properties:

ConnectionTimeouts Pulumi.SpotInst.Multai.Inputs.BalancerConnectionTimeoutsArgs
DnsCnameAliases List<string>
Name string

The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

Scheme string
Tags List<Pulumi.SpotInst.Multai.Inputs.BalancerTagArgs>

A list of key:value paired tags.

ConnectionTimeouts BalancerConnectionTimeouts
DnsCnameAliases []string
Name string

The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

Scheme string
Tags []BalancerTag

A list of key:value paired tags.

connectionTimeouts BalancerConnectionTimeouts
dnsCnameAliases string[]
name string

The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

scheme string
tags BalancerTag[]

A list of key:value paired tags.

connection_timeouts Dict[BalancerConnectionTimeouts]
dns_cname_aliases List[str]
name str

The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

scheme str
tags List[BalancerTag]

A list of key:value paired tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the Balancer 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 Balancer Resource

Get an existing Balancer 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?: BalancerState, opts?: CustomResourceOptions): Balancer
static get(resource_name, id, opts=None, connection_timeouts=None, dns_cname_aliases=None, name=None, scheme=None, tags=None, __props__=None);
func GetBalancer(ctx *Context, name string, id IDInput, state *BalancerState, opts ...ResourceOption) (*Balancer, error)
public static Balancer Get(string name, Input<string> id, BalancerState? 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:

ConnectionTimeouts Pulumi.SpotInst.Multai.Inputs.BalancerConnectionTimeoutsArgs
DnsCnameAliases List<string>
Name string

The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

Scheme string
Tags List<Pulumi.SpotInst.Multai.Inputs.BalancerTagArgs>

A list of key:value paired tags.

ConnectionTimeouts BalancerConnectionTimeouts
DnsCnameAliases []string
Name string

The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

Scheme string
Tags []BalancerTag

A list of key:value paired tags.

connectionTimeouts BalancerConnectionTimeouts
dnsCnameAliases string[]
name string

The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

scheme string
tags BalancerTag[]

A list of key:value paired tags.

connection_timeouts Dict[BalancerConnectionTimeouts]
dns_cname_aliases List[str]
name str

The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

scheme str
tags List[BalancerTag]

A list of key:value paired tags.

Supporting Types

BalancerConnectionTimeouts

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.

Draining int

The time for the load balancer to keep connections alive before reporting the target as de-registered, in seconds (range: 1 - 3600).

Idle int

The idle timeout value, in seconds. (range: 1 - 3600).

Draining int

The time for the load balancer to keep connections alive before reporting the target as de-registered, in seconds (range: 1 - 3600).

Idle int

The idle timeout value, in seconds. (range: 1 - 3600).

draining number

The time for the load balancer to keep connections alive before reporting the target as de-registered, in seconds (range: 1 - 3600).

idle number

The idle timeout value, in seconds. (range: 1 - 3600).

draining float

The time for the load balancer to keep connections alive before reporting the target as de-registered, in seconds (range: 1 - 3600).

idle float

The idle timeout value, in seconds. (range: 1 - 3600).

BalancerTag

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.