Show / Hide Table of Contents

Class 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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
HealthCheck
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.SpotInst
Assembly: Pulumi.SpotInst.dll
Syntax
public class HealthCheck : CustomResource

Constructors

View Source

HealthCheck(String, HealthCheckArgs, CustomResourceOptions)

Create a HealthCheck resource with the given unique name, arguments, and options.

Declaration
public HealthCheck(string name, HealthCheckArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

HealthCheckArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Check

Describes the check to execute.

Declaration
public Output<HealthCheckCheck> Check { get; }
Property Value
Type Description
Output<HealthCheckCheck>
View Source

Name

The name of the health check.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ProxyAddress

Declaration
public Output<string> ProxyAddress { get; }
Property Value
Type Description
Output<System.String>
View Source

ProxyPort

Declaration
public Output<int?> ProxyPort { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

ResourceId

The ID of the resource to check.

Declaration
public Output<string> ResourceId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, HealthCheckState, CustomResourceOptions)

Get an existing HealthCheck resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static HealthCheck Get(string name, Input<string> id, HealthCheckState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

HealthCheckState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
HealthCheck
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.