Module multai
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the
pulumi/pulumi-spotinstrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-spotinstrepo.
Resources
Others
- BalancerArgs
- BalancerState
- DeploymentArgs
- DeploymentState
- ListenerArgs
- ListenerState
- RoutingRuleArgs
- RoutingRuleState
- TargetArgs
- TargetSetArgs
- TargetSetState
- TargetState
Resources
Resource Balancer
class Balancer extends CustomResourceProvides a Spotinst Multai Balancer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const myBalancer = new spotinst.multai.Balancer("myBalancer", {
connectionTimeouts: {
draining: 10,
idle: 10,
},
scheme: "internal",
tags: [{
key: "env",
value: "prod",
}],
});constructor
new Balancer(name: string, args?: BalancerArgs, opts?: pulumi.CustomResourceOptions)Create a Balancer resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BalancerState, opts?: pulumi.CustomResourceOptions): BalancerGet an existing Balancer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is BalancerReturns true if the given object is an instance of Balancer. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property connectionTimeouts
public connectionTimeouts: pulumi.Output<BalancerConnectionTimeouts | undefined>;property dnsCnameAliases
public dnsCnameAliases: pulumi.Output<string[] | undefined>;property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
property scheme
public scheme: pulumi.Output<string | undefined>;property tags
public tags: pulumi.Output<BalancerTag[] | undefined>;A list of key:value paired tags.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource Deployment
class Deployment extends CustomResourceProvides a Spotinst Multai Deployment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const myDeployment = new spotinst.multai.Deployment("myDeployment", {});constructor
new Deployment(name: string, args?: DeploymentArgs, opts?: pulumi.CustomResourceOptions)Create a Deployment resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DeploymentState, opts?: pulumi.CustomResourceOptions): DeploymentGet an existing Deployment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DeploymentReturns true if the given object is an instance of Deployment. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The deployment name.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource Listener
class Listener extends CustomResourceProvides a Spotinst Multai Listener.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const myListener = new spotinst.multai.Listener("myListener", {
balancerId: "b-12345",
name: "foo",
port: 1337,
protocol: "http",
tags: [{
key: "env",
value: "prod",
}],
tlsConfig: {
certificateIds: ["ce-12345"],
cipherSuites: [""],
maxVersion: "TLS12",
minVersion: "TLS10",
preferServerCipherSuites: true,
sessionTicketsDisabled: false,
},
});constructor
new Listener(name: string, args: ListenerArgs, opts?: pulumi.CustomResourceOptions)Create a Listener resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ListenerState, opts?: pulumi.CustomResourceOptions): ListenerGet an existing Listener resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ListenerReturns true if the given object is an instance of Listener. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property balancerId
public balancerId: pulumi.Output<string>;The ID of the balancer.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property port
public port: pulumi.Output<number>;The port on which the load balancer is listening.
property protocol
public protocol: pulumi.Output<string>;The protocol to allow connections to the load balancer.
property tags
public tags: pulumi.Output<ListenerTag[] | undefined>;A list of key:value paired tags.
property tlsConfig
public tlsConfig: pulumi.Output<ListenerTlsConfig | undefined>;Describes the TLSConfig configuration.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource RoutingRule
class RoutingRule extends CustomResourceProvides a Spotinst Multai Routing Rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const myRoutingRule = new spotinst.multai.RoutingRule("myRoutingRule", {
balancerId: "b-12345",
listenerId: "l-98765",
route: "Path(`/bar`)",
strategy: "LEASTCONN",
tags: [{
key: "env",
value: "prod",
}],
});constructor
new RoutingRule(name: string, args: RoutingRuleArgs, opts?: pulumi.CustomResourceOptions)Create a RoutingRule resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RoutingRuleState, opts?: pulumi.CustomResourceOptions): RoutingRuleGet an existing RoutingRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is RoutingRuleReturns true if the given object is an instance of RoutingRule. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property balancerId
public balancerId: pulumi.Output<string>;The ID of the balancer.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property listenerId
public listenerId: pulumi.Output<string>;The ID of the listener.
property middlewareIds
public middlewareIds: pulumi.Output<string[] | undefined>;property priority
public priority: pulumi.Output<number | undefined>;property route
public route: pulumi.Output<string>;Route defines a simple language for matching HTTP requests and route the traffic accordingly. Route provides series of matchers that follow the syntax: Path matcher: — Path(“/foo/bar”) // trie-based PathRegexp(“/foo/.*”) // regexp-based Method matcher: — Method(“GET”) // trie-based MethodRegexp(“POST|PUT”) // regexp based Header matcher: — Header(“Content-Type”, “application/json”) // trie-based HeaderRegexp(“Content-Type”, “application/.*”) // regexp based Matchers can be combined using && operator: — Method(“POST”) && Path(“/v1”)
property strategy
public strategy: pulumi.Output<string | undefined>;Balancing strategy. Valid values: ROUNDROBIN, RANDOM, LEASTCONN, IPHASH.
property tags
public tags: pulumi.Output<RoutingRuleTag[] | undefined>;A list of key:value paired tags.
property targetSetIds
public targetSetIds: pulumi.Output<string[]>;property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource Target
class Target extends CustomResourceProvides a Spotinst Multai Target.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const myTarget = new spotinst.multai.Target("myTarget", {
balancerId: "b-12345",
host: "host",
port: 1338,
tags: [{
key: "env",
value: "prod",
}],
targetSetId: "l-98765",
weight: 1,
});constructor
new Target(name: string, args: TargetArgs, opts?: pulumi.CustomResourceOptions)Create a Target resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TargetState, opts?: pulumi.CustomResourceOptions): TargetGet an existing Target resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is TargetReturns true if the given object is an instance of Target. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property balancerId
public balancerId: pulumi.Output<string>;The ID of the balancer.
property host
public host: pulumi.Output<string>;The address (IP or URL) of the targets to register
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
property port
public port: pulumi.Output<number | undefined>;The port the target will register to.
property tags
public tags: pulumi.Output<TargetTag[] | undefined>;A list of key:value paired tags.
property targetSetId
public targetSetId: pulumi.Output<string>;The ID of the target set.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
property weight
public weight: pulumi.Output<number>;Defines how traffic is distributed between targets.
Resource TargetSet
class TargetSet extends CustomResourceProvides a Spotinst Multai Target Set.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const myTargetSet = new spotinst.multai.TargetSet("myTargetSet", {
balancerId: "b-12345",
deploymentId: "dp-12345",
healthCheck: {
healthyThreshold: 3,
interval: 20,
path: "/",
port: 3001,
protocol: "http",
timeout: 5,
unhealthyThreshold: 3,
},
port: 1338,
protocol: "http",
tags: [{
key: "env",
value: "prod",
}],
weight: 2,
});constructor
new TargetSet(name: string, args: TargetSetArgs, opts?: pulumi.CustomResourceOptions)Create a TargetSet resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TargetSetState, opts?: pulumi.CustomResourceOptions): TargetSetGet an existing TargetSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is TargetSetReturns true if the given object is an instance of TargetSet. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property balancerId
public balancerId: pulumi.Output<string>;The id of the balancer.
property deploymentId
public deploymentId: pulumi.Output<string>;The id of the deployment.
property healthCheck
public healthCheck: pulumi.Output<TargetSetHealthCheck>;property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name of the Target Set. Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
property port
public port: pulumi.Output<number | undefined>;The port on which the load balancer is listening.
property protocol
public protocol: pulumi.Output<string>;The protocol to allow connections to the target for the health check.
property tags
public tags: pulumi.Output<TargetSetTag[] | undefined>;A list of key:value paired tags.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
property weight
public weight: pulumi.Output<number>;Defines how traffic is distributed between the Target Set.
Others
interface BalancerArgs
interface BalancerArgsThe set of arguments for constructing a Balancer resource.
property connectionTimeouts
connectionTimeouts?: pulumi.Input<BalancerConnectionTimeouts>;property dnsCnameAliases
dnsCnameAliases?: pulumi.Input<pulumi.Input<string>[]>;property name
name?: pulumi.Input<string>;The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
property scheme
scheme?: pulumi.Input<string>;property tags
tags?: pulumi.Input<pulumi.Input<BalancerTag>[]>;A list of key:value paired tags.
interface BalancerState
interface BalancerStateInput properties used for looking up and filtering Balancer resources.
property connectionTimeouts
connectionTimeouts?: pulumi.Input<BalancerConnectionTimeouts>;property dnsCnameAliases
dnsCnameAliases?: pulumi.Input<pulumi.Input<string>[]>;property name
name?: pulumi.Input<string>;The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
property scheme
scheme?: pulumi.Input<string>;property tags
tags?: pulumi.Input<pulumi.Input<BalancerTag>[]>;A list of key:value paired tags.
interface DeploymentArgs
interface DeploymentArgsThe set of arguments for constructing a Deployment resource.
property name
name?: pulumi.Input<string>;The deployment name.
interface DeploymentState
interface DeploymentStateInput properties used for looking up and filtering Deployment resources.
property name
name?: pulumi.Input<string>;The deployment name.
interface ListenerArgs
interface ListenerArgsThe set of arguments for constructing a Listener resource.
property balancerId
balancerId: pulumi.Input<string>;The ID of the balancer.
property port
port: pulumi.Input<number>;The port on which the load balancer is listening.
property protocol
protocol: pulumi.Input<string>;The protocol to allow connections to the load balancer.
property tags
tags?: pulumi.Input<pulumi.Input<ListenerTag>[]>;A list of key:value paired tags.
property tlsConfig
tlsConfig?: pulumi.Input<ListenerTlsConfig>;Describes the TLSConfig configuration.
interface ListenerState
interface ListenerStateInput properties used for looking up and filtering Listener resources.
property balancerId
balancerId?: pulumi.Input<string>;The ID of the balancer.
property port
port?: pulumi.Input<number>;The port on which the load balancer is listening.
property protocol
protocol?: pulumi.Input<string>;The protocol to allow connections to the load balancer.
property tags
tags?: pulumi.Input<pulumi.Input<ListenerTag>[]>;A list of key:value paired tags.
property tlsConfig
tlsConfig?: pulumi.Input<ListenerTlsConfig>;Describes the TLSConfig configuration.
interface RoutingRuleArgs
interface RoutingRuleArgsThe set of arguments for constructing a RoutingRule resource.
property balancerId
balancerId: pulumi.Input<string>;The ID of the balancer.
property listenerId
listenerId: pulumi.Input<string>;The ID of the listener.
property middlewareIds
middlewareIds?: pulumi.Input<pulumi.Input<string>[]>;property priority
priority?: pulumi.Input<number>;property route
route: pulumi.Input<string>;Route defines a simple language for matching HTTP requests and route the traffic accordingly. Route provides series of matchers that follow the syntax: Path matcher: — Path(“/foo/bar”) // trie-based PathRegexp(“/foo/.*”) // regexp-based Method matcher: — Method(“GET”) // trie-based MethodRegexp(“POST|PUT”) // regexp based Header matcher: — Header(“Content-Type”, “application/json”) // trie-based HeaderRegexp(“Content-Type”, “application/.*”) // regexp based Matchers can be combined using && operator: — Method(“POST”) && Path(“/v1”)
property strategy
strategy?: pulumi.Input<string>;Balancing strategy. Valid values: ROUNDROBIN, RANDOM, LEASTCONN, IPHASH.
property tags
tags?: pulumi.Input<pulumi.Input<RoutingRuleTag>[]>;A list of key:value paired tags.
property targetSetIds
targetSetIds: pulumi.Input<pulumi.Input<string>[]>;interface RoutingRuleState
interface RoutingRuleStateInput properties used for looking up and filtering RoutingRule resources.
property balancerId
balancerId?: pulumi.Input<string>;The ID of the balancer.
property listenerId
listenerId?: pulumi.Input<string>;The ID of the listener.
property middlewareIds
middlewareIds?: pulumi.Input<pulumi.Input<string>[]>;property priority
priority?: pulumi.Input<number>;property route
route?: pulumi.Input<string>;Route defines a simple language for matching HTTP requests and route the traffic accordingly. Route provides series of matchers that follow the syntax: Path matcher: — Path(“/foo/bar”) // trie-based PathRegexp(“/foo/.*”) // regexp-based Method matcher: — Method(“GET”) // trie-based MethodRegexp(“POST|PUT”) // regexp based Header matcher: — Header(“Content-Type”, “application/json”) // trie-based HeaderRegexp(“Content-Type”, “application/.*”) // regexp based Matchers can be combined using && operator: — Method(“POST”) && Path(“/v1”)
property strategy
strategy?: pulumi.Input<string>;Balancing strategy. Valid values: ROUNDROBIN, RANDOM, LEASTCONN, IPHASH.
property tags
tags?: pulumi.Input<pulumi.Input<RoutingRuleTag>[]>;A list of key:value paired tags.
property targetSetIds
targetSetIds?: pulumi.Input<pulumi.Input<string>[]>;interface TargetArgs
interface TargetArgsThe set of arguments for constructing a Target resource.
property balancerId
balancerId: pulumi.Input<string>;The ID of the balancer.
property host
host: pulumi.Input<string>;The address (IP or URL) of the targets to register
property name
name?: pulumi.Input<string>;The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
property port
port?: pulumi.Input<number>;The port the target will register to.
property tags
tags?: pulumi.Input<pulumi.Input<TargetTag>[]>;A list of key:value paired tags.
property targetSetId
targetSetId: pulumi.Input<string>;The ID of the target set.
property weight
weight: pulumi.Input<number>;Defines how traffic is distributed between targets.
interface TargetSetArgs
interface TargetSetArgsThe set of arguments for constructing a TargetSet resource.
property balancerId
balancerId: pulumi.Input<string>;The id of the balancer.
property deploymentId
deploymentId: pulumi.Input<string>;The id of the deployment.
property healthCheck
healthCheck: pulumi.Input<TargetSetHealthCheck>;property name
name?: pulumi.Input<string>;The name of the Target Set. Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
property port
port?: pulumi.Input<number>;The port on which the load balancer is listening.
property protocol
protocol: pulumi.Input<string>;The protocol to allow connections to the target for the health check.
property tags
tags?: pulumi.Input<pulumi.Input<TargetSetTag>[]>;A list of key:value paired tags.
property weight
weight: pulumi.Input<number>;Defines how traffic is distributed between the Target Set.
interface TargetSetState
interface TargetSetStateInput properties used for looking up and filtering TargetSet resources.
property balancerId
balancerId?: pulumi.Input<string>;The id of the balancer.
property deploymentId
deploymentId?: pulumi.Input<string>;The id of the deployment.
property healthCheck
healthCheck?: pulumi.Input<TargetSetHealthCheck>;property name
name?: pulumi.Input<string>;The name of the Target Set. Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
property port
port?: pulumi.Input<number>;The port on which the load balancer is listening.
property protocol
protocol?: pulumi.Input<string>;The protocol to allow connections to the target for the health check.
property tags
tags?: pulumi.Input<pulumi.Input<TargetSetTag>[]>;A list of key:value paired tags.
property weight
weight?: pulumi.Input<number>;Defines how traffic is distributed between the Target Set.
interface TargetState
interface TargetStateInput properties used for looking up and filtering Target resources.
property balancerId
balancerId?: pulumi.Input<string>;The ID of the balancer.
property host
host?: pulumi.Input<string>;The address (IP or URL) of the targets to register
property name
name?: pulumi.Input<string>;The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
property port
port?: pulumi.Input<number>;The port the target will register to.
property tags
tags?: pulumi.Input<pulumi.Input<TargetTag>[]>;A list of key:value paired tags.
property targetSetId
targetSetId?: pulumi.Input<string>;The ID of the target set.
property weight
weight?: pulumi.Input<number>;Defines how traffic is distributed between targets.