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-spotinst repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-spotinst repo.

Resources

Others

Resources

Resource Balancer

class Balancer extends CustomResource

Provides 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.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A 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): Balancer

Get 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 | undefined

method isInstance

public static isInstance(obj: any): obj is Balancer

Returns 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 CustomResource

Provides 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.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A 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): Deployment

Get 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 | undefined

method isInstance

public static isInstance(obj: any): obj is Deployment

Returns 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 CustomResource

Provides 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.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A 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): Listener

Get 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 | undefined

method isInstance

public static isInstance(obj: any): obj is Listener

Returns 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 CustomResource

Provides 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.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A 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): RoutingRule

Get 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 | undefined

method isInstance

public static isInstance(obj: any): obj is RoutingRule

Returns 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 CustomResource

Provides 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.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A 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): Target

Get 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 | undefined

method isInstance

public static isInstance(obj: any): obj is Target

Returns 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 CustomResource

Provides 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.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A 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): TargetSet

Get 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 | undefined

method isInstance

public static isInstance(obj: any): obj is TargetSet

Returns 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 BalancerArgs

The 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 BalancerState

Input 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 DeploymentArgs

The set of arguments for constructing a Deployment resource.

property name

name?: pulumi.Input<string>;

The deployment name.

interface DeploymentState

interface DeploymentState

Input properties used for looking up and filtering Deployment resources.

property name

name?: pulumi.Input<string>;

The deployment name.

interface ListenerArgs

interface ListenerArgs

The 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 ListenerState

Input 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 RoutingRuleArgs

The 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 RoutingRuleState

Input 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 TargetArgs

The 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 TargetSetArgs

The 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 TargetSetState

Input 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 TargetState

Input 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.