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
new Balancer(name: string, args?: BalancerArgs, opts?: CustomResourceOptions);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:
- Connection
Timeouts Pulumi.Spot Inst. Multai. Inputs. Balancer Connection Timeouts Args - Dns
Cname List<string>Aliases - Name string
The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
- Scheme string
-
List<Pulumi.
Spot Inst. Multai. Inputs. Balancer Tag Args> A list of key:value paired tags.
- Connection
Timeouts BalancerConnection Timeouts - Dns
Cname []stringAliases - Name string
The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
- Scheme string
-
[]Balancer
Tag A list of key:value paired tags.
- connection
Timeouts BalancerConnection Timeouts - dns
Cname string[]Aliases - name string
The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
- scheme string
-
Balancer
Tag[] A list of key:value paired tags.
- connection_
timeouts Dict[BalancerConnection Timeouts] - dns_
cname_ List[str]aliases - name str
The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
- scheme str
-
List[Balancer
Tag] 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:
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): Balancerstatic 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:
- Connection
Timeouts Pulumi.Spot Inst. Multai. Inputs. Balancer Connection Timeouts Args - Dns
Cname List<string>Aliases - Name string
The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
- Scheme string
-
List<Pulumi.
Spot Inst. Multai. Inputs. Balancer Tag Args> A list of key:value paired tags.
- Connection
Timeouts BalancerConnection Timeouts - Dns
Cname []stringAliases - Name string
The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
- Scheme string
-
[]Balancer
Tag A list of key:value paired tags.
- connection
Timeouts BalancerConnection Timeouts - dns
Cname string[]Aliases - name string
The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
- scheme string
-
Balancer
Tag[] A list of key:value paired tags.
- connection_
timeouts Dict[BalancerConnection Timeouts] - dns_
cname_ List[str]aliases - name str
The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
- scheme str
-
List[Balancer
Tag] A list of key:value paired tags.
Supporting Types
BalancerConnectionTimeouts
BalancerTag
Package Details
- Repository
- https://github.com/pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinstTerraform Provider.