This page documents the language specification for the spotinst package. If you're looking for help working with the inputs, outputs, or functions of spotinst resources in a Pulumi program, please see the resource documentation for examples and API reference.

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.

class pulumi_spotinst.multai.Balancer(resource_name, opts=None, connection_timeouts=None, dns_cname_aliases=None, name=None, scheme=None, tags=None, __props__=None, __name__=None, __opts__=None)

Provides a Spotinst Multai Balancer.

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",
    }])
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

The connection_timeouts object supports the following:

  • draining (pulumi.Input[float]) - The time for the load balancer to keep connections alive before reporting the target as de-registered, in seconds (range: 1 - 3600).

  • idle (pulumi.Input[float]) - The idle timeout value, in seconds. (range: 1 - 3600).

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

name: pulumi.Output[str] = None

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

tags: pulumi.Output[list] = None

A list of key:value paired tags.

  • key (str) - The tag’s key.

  • value (str) - The tag’s value.

static get(resource_name, id, opts=None, connection_timeouts=None, dns_cname_aliases=None, name=None, scheme=None, tags=None)

Get an existing Balancer resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The balancer name. May contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

The connection_timeouts object supports the following:

  • draining (pulumi.Input[float]) - The time for the load balancer to keep connections alive before reporting the target as de-registered, in seconds (range: 1 - 3600).

  • idle (pulumi.Input[float]) - The idle timeout value, in seconds. (range: 1 - 3600).

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_spotinst.multai.Deployment(resource_name, opts=None, name=None, __props__=None, __name__=None, __opts__=None)

Provides a Spotinst Multai Deployment.

import pulumi
import pulumi_spotinst as spotinst

my_deployment = spotinst.multai.Deployment("myDeployment")
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The deployment name.

name: pulumi.Output[str] = None

The deployment name.

static get(resource_name, id, opts=None, name=None)

Get an existing Deployment resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • name (pulumi.Input[str]) – The deployment name.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_spotinst.multai.Listener(resource_name, opts=None, balancer_id=None, port=None, protocol=None, tags=None, tls_config=None, __props__=None, __name__=None, __opts__=None)

Provides a Spotinst Multai Listener.

import pulumi
import pulumi_spotinst as spotinst

my_listener = spotinst.multai.Listener("myListener",
    balancer_id="b-12345",
    name="foo",
    port=1337,
    protocol="http",
    tags=[{
        "key": "env",
        "value": "prod",
    }],
    tls_config={
        "certificateIds": ["ce-12345"],
        "cipherSuites": [""],
        "maxVersion": "TLS12",
        "minVersion": "TLS10",
        "preferServerCipherSuites": True,
        "sessionTicketsDisabled": False,
    })
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • balancer_id (pulumi.Input[str]) – The ID of the balancer.

  • port (pulumi.Input[float]) – The port on which the load balancer is listening.

  • protocol (pulumi.Input[str]) – The protocol to allow connections to the load balancer.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

  • tls_config (pulumi.Input[dict]) – Describes the TLSConfig configuration.

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

The tls_config object supports the following:

  • certificateIds (pulumi.Input[list]) - Contains one or more certificate chains to present to the other side of the connection.

  • cipherSuites (pulumi.Input[list]) - List of supported cipher suites. If cipherSuites is nil, TLS uses a list of suites supported by the implementation.

  • maxVersion (pulumi.Input[str]) - MaxVersion contains the maximum SSL/TLS version that is acceptable.

  • minVersion (pulumi.Input[str]) - MinVersion contains the minimum SSL/TLS version that is acceptable (1.0 is the minimum).

  • preferServerCipherSuites (pulumi.Input[bool]) - Controls whether the server selects the client’s most preferred ciphersuite, or the server’s most preferred ciphersuite.

  • sessionTicketsDisabled (pulumi.Input[bool]) - May be set to true to disable session ticket (resumption) support.

balancer_id: pulumi.Output[str] = None

The ID of the balancer.

port: pulumi.Output[float] = None

The port on which the load balancer is listening.

protocol: pulumi.Output[str] = None

The protocol to allow connections to the load balancer.

tags: pulumi.Output[list] = None

A list of key:value paired tags.

  • key (str) - The tag’s key.

  • value (str) - The tag’s value.

tls_config: pulumi.Output[dict] = None

Describes the TLSConfig configuration.

  • certificateIds (list) - Contains one or more certificate chains to present to the other side of the connection.

  • cipherSuites (list) - List of supported cipher suites. If cipherSuites is nil, TLS uses a list of suites supported by the implementation.

  • maxVersion (str) - MaxVersion contains the maximum SSL/TLS version that is acceptable.

  • minVersion (str) - MinVersion contains the minimum SSL/TLS version that is acceptable (1.0 is the minimum).

  • preferServerCipherSuites (bool) - Controls whether the server selects the client’s most preferred ciphersuite, or the server’s most preferred ciphersuite.

  • sessionTicketsDisabled (bool) - May be set to true to disable session ticket (resumption) support.

static get(resource_name, id, opts=None, balancer_id=None, port=None, protocol=None, tags=None, tls_config=None)

Get an existing Listener resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • balancer_id (pulumi.Input[str]) – The ID of the balancer.

  • port (pulumi.Input[float]) – The port on which the load balancer is listening.

  • protocol (pulumi.Input[str]) – The protocol to allow connections to the load balancer.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

  • tls_config (pulumi.Input[dict]) – Describes the TLSConfig configuration.

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

The tls_config object supports the following:

  • certificateIds (pulumi.Input[list]) - Contains one or more certificate chains to present to the other side of the connection.

  • cipherSuites (pulumi.Input[list]) - List of supported cipher suites. If cipherSuites is nil, TLS uses a list of suites supported by the implementation.

  • maxVersion (pulumi.Input[str]) - MaxVersion contains the maximum SSL/TLS version that is acceptable.

  • minVersion (pulumi.Input[str]) - MinVersion contains the minimum SSL/TLS version that is acceptable (1.0 is the minimum).

  • preferServerCipherSuites (pulumi.Input[bool]) - Controls whether the server selects the client’s most preferred ciphersuite, or the server’s most preferred ciphersuite.

  • sessionTicketsDisabled (pulumi.Input[bool]) - May be set to true to disable session ticket (resumption) support.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_spotinst.multai.RoutingRule(resource_name, opts=None, balancer_id=None, listener_id=None, middleware_ids=None, priority=None, route=None, strategy=None, tags=None, target_set_ids=None, __props__=None, __name__=None, __opts__=None)

Provides a Spotinst Multai Routing Rule.

import pulumi
import pulumi_spotinst as spotinst

my_routing_rule = spotinst.multai.RoutingRule("myRoutingRule",
    balancer_id="b-12345",
    listener_id="l-98765",
    route="Path(`/bar`)",
    strategy="LEASTCONN",
    tags=[{
        "key": "env",
        "value": "prod",
    }])
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • balancer_id (pulumi.Input[str]) – The ID of the balancer.

  • listener_id (pulumi.Input[str]) – The ID of the listener.

  • route (pulumi.Input[str]) – 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”)

  • strategy (pulumi.Input[str]) – Balancing strategy. Valid values: ROUNDROBIN, RANDOM, LEASTCONN, IPHASH.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

balancer_id: pulumi.Output[str] = None

The ID of the balancer.

listener_id: pulumi.Output[str] = None

The ID of the listener.

route: pulumi.Output[str] = None

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”)

strategy: pulumi.Output[str] = None

Balancing strategy. Valid values: ROUNDROBIN, RANDOM, LEASTCONN, IPHASH.

tags: pulumi.Output[list] = None

A list of key:value paired tags.

  • key (str) - The tag’s key.

  • value (str) - The tag’s value.

static get(resource_name, id, opts=None, balancer_id=None, listener_id=None, middleware_ids=None, priority=None, route=None, strategy=None, tags=None, target_set_ids=None)

Get an existing RoutingRule resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • balancer_id (pulumi.Input[str]) – The ID of the balancer.

  • listener_id (pulumi.Input[str]) – The ID of the listener.

  • route (pulumi.Input[str]) – 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”)

  • strategy (pulumi.Input[str]) – Balancing strategy. Valid values: ROUNDROBIN, RANDOM, LEASTCONN, IPHASH.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_spotinst.multai.Target(resource_name, opts=None, balancer_id=None, host=None, name=None, port=None, tags=None, target_set_id=None, weight=None, __props__=None, __name__=None, __opts__=None)

Provides a Spotinst Multai Target.

import pulumi
import pulumi_spotinst as spotinst

my_target = spotinst.multai.Target("myTarget",
    balancer_id="b-12345",
    host="host",
    port=1338,
    tags=[{
        "key": "env",
        "value": "prod",
    }],
    target_set_id="l-98765",
    weight=1)
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • balancer_id (pulumi.Input[str]) – The ID of the balancer.

  • host (pulumi.Input[str]) – The address (IP or URL) of the targets to register

  • name (pulumi.Input[str]) – The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

  • port (pulumi.Input[float]) – The port the target will register to.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

  • target_set_id (pulumi.Input[str]) – The ID of the target set.

  • weight (pulumi.Input[float]) – Defines how traffic is distributed between targets.

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

balancer_id: pulumi.Output[str] = None

The ID of the balancer.

host: pulumi.Output[str] = None

The address (IP or URL) of the targets to register

name: pulumi.Output[str] = None

The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

port: pulumi.Output[float] = None

The port the target will register to.

tags: pulumi.Output[list] = None

A list of key:value paired tags.

  • key (str) - The tag’s key.

  • value (str) - The tag’s value.

target_set_id: pulumi.Output[str] = None

The ID of the target set.

weight: pulumi.Output[float] = None

Defines how traffic is distributed between targets.

static get(resource_name, id, opts=None, balancer_id=None, host=None, name=None, port=None, tags=None, target_set_id=None, weight=None)

Get an existing Target resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • balancer_id (pulumi.Input[str]) – The ID of the balancer.

  • host (pulumi.Input[str]) – The address (IP or URL) of the targets to register

  • name (pulumi.Input[str]) – The name of the Target . Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

  • port (pulumi.Input[float]) – The port the target will register to.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

  • target_set_id (pulumi.Input[str]) – The ID of the target set.

  • weight (pulumi.Input[float]) – Defines how traffic is distributed between targets.

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_spotinst.multai.TargetSet(resource_name, opts=None, balancer_id=None, deployment_id=None, health_check=None, name=None, port=None, protocol=None, tags=None, weight=None, __props__=None, __name__=None, __opts__=None)

Provides a Spotinst Multai Target Set.

import pulumi
import pulumi_spotinst as spotinst

my_target_set = spotinst.multai.TargetSet("myTargetSet",
    balancer_id="b-12345",
    deployment_id="dp-12345",
    health_check={
        "healthyThreshold": 3,
        "interval": 20,
        "path": "/",
        "port": 3001,
        "protocol": "http",
        "timeout": 5,
        "unhealthyThreshold": 3,
    },
    port=1338,
    protocol="http",
    tags=[{
        "key": "env",
        "value": "prod",
    }],
    weight=2)
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • balancer_id (pulumi.Input[str]) – The id of the balancer.

  • deployment_id (pulumi.Input[str]) – The id of the deployment.

  • name (pulumi.Input[str]) – The name of the Target Set. Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

  • port (pulumi.Input[float]) – The port on which the load balancer is listening.

  • protocol (pulumi.Input[str]) – The protocol to allow connections to the target for the health check.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

  • weight (pulumi.Input[float]) – Defines how traffic is distributed between the Target Set.

The health_check object supports the following:

  • healthyThreshold (pulumi.Input[float]) - Total number of allowed healthy Targets.

  • interval (pulumi.Input[float]) - The interval for the health check.

  • path (pulumi.Input[str]) - The path to perform the health check.

  • port (pulumi.Input[float]) - The port on which the load balancer is listening.

  • protocol (pulumi.Input[str]) - The protocol to allow connections to the target for the health check.

  • timeout (pulumi.Input[float]) - The time out for the health check.

  • unhealthyThreshold (pulumi.Input[float]) - Total number of allowed unhealthy Targets.

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

balancer_id: pulumi.Output[str] = None

The id of the balancer.

deployment_id: pulumi.Output[str] = None

The id of the deployment.

name: pulumi.Output[str] = None

The name of the Target Set. Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

port: pulumi.Output[float] = None

The port on which the load balancer is listening.

protocol: pulumi.Output[str] = None

The protocol to allow connections to the target for the health check.

tags: pulumi.Output[list] = None

A list of key:value paired tags.

  • key (str) - The tag’s key.

  • value (str) - The tag’s value.

weight: pulumi.Output[float] = None

Defines how traffic is distributed between the Target Set.

static get(resource_name, id, opts=None, balancer_id=None, deployment_id=None, health_check=None, name=None, port=None, protocol=None, tags=None, weight=None)

Get an existing TargetSet resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • balancer_id (pulumi.Input[str]) – The id of the balancer.

  • deployment_id (pulumi.Input[str]) – The id of the deployment.

  • name (pulumi.Input[str]) – The name of the Target Set. Must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

  • port (pulumi.Input[float]) – The port on which the load balancer is listening.

  • protocol (pulumi.Input[str]) – The protocol to allow connections to the target for the health check.

  • tags (pulumi.Input[list]) – A list of key:value paired tags.

  • weight (pulumi.Input[float]) – Defines how traffic is distributed between the Target Set.

The health_check object supports the following:

  • healthyThreshold (pulumi.Input[float]) - Total number of allowed healthy Targets.

  • interval (pulumi.Input[float]) - The interval for the health check.

  • path (pulumi.Input[str]) - The path to perform the health check.

  • port (pulumi.Input[float]) - The port on which the load balancer is listening.

  • protocol (pulumi.Input[str]) - The protocol to allow connections to the target for the health check.

  • timeout (pulumi.Input[float]) - The time out for the health check.

  • unhealthyThreshold (pulumi.Input[float]) - Total number of allowed unhealthy Targets.

The tags object supports the following:

  • key (pulumi.Input[str]) - The tag’s key.

  • value (pulumi.Input[str]) - The tag’s value.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str