Show / Hide Table of Contents

Namespace Pulumi.SpotInst

Classes

Config

HealthCheck

Provides a Spotinst Health Check resource.

Example Usage

using Pulumi;
using SpotInst = Pulumi.SpotInst;

class MyStack : Stack
{
public MyStack()
{
    var httpCheck = new SpotInst.HealthCheck("httpCheck", new SpotInst.HealthCheckArgs
    {
        Check = new SpotInst.Inputs.HealthCheckCheckArgs
        {
            Endpoint = "http://endpoint.com",
            Healthy = 1,
            Interval = 10,
            Port = 1337,
            Protocol = "http",
            Timeout = 10,
            Unhealthy = 1,
        },
        ProxyAddress = "http://proxy.com",
        ProxyPort = 80,
        ResourceId = "sig-123",
    });
}

}

HealthCheckArgs

HealthCheckState

Provider

The provider type for the spotinst package. By default, resources use package-wide configuration settings, however an explicit Provider instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the documentation for more information.

ProviderArgs

Subscription

Provides a Spotinst subscription resource.

Example Usage

using Pulumi;
using SpotInst = Pulumi.SpotInst;

class MyStack : Stack
{
public MyStack()
{
    // Create a Subscription
    var default_subscription = new SpotInst.Subscription("default-subscription", new SpotInst.SubscriptionArgs
    {
        Endpoint = "http://endpoint.com",
        EventType = "AWS_EC2_INSTANCE_LAUNCH",
        Format = 
        {
            { "event", "%event%" },
            { "instance_id", "%instance-id%" },
            { "resource_id", "%resource-id%" },
            { "resource_name", "%resource-name%" },
            { "tags", "foo,baz,baz" },
        },
        Protocol = "http",
        ResourceId = spotinst_elastigroup_aws.My_eg.Id,
    });
}

}

SubscriptionArgs

SubscriptionState

Back to top Copyright 2016-2020, Pulumi Corporation.