Show / Hide Table of Contents

Class OceanLaunchSpec

Provides a custom Spotinst Ocean GKE Launch Spec resource.

Example Usage

using Pulumi;
using SpotInst = Pulumi.SpotInst;

class MyStack : Stack
{
public MyStack()
{
    var example = new SpotInst.Gke.OceanLaunchSpec("example", new SpotInst.Gke.OceanLaunchSpecArgs
    {
        AutoscaleHeadrooms = 
        {
            new SpotInst.Gke.Inputs.OceanLaunchSpecAutoscaleHeadroomArgs
            {
                CpuPerUnit = 1000,
                GpuPerUnit = 0,
                MemoryPerUnit = 2048,
                NumOfUnits = 5,
            },
        },
        Labels = 
        {
            new SpotInst.Gke.Inputs.OceanLaunchSpecLabelArgs
            {
                Key = "labelKey",
                Value = "labelVal",
            },
        },
        Metadatas = 
        {
            new SpotInst.Gke.Inputs.OceanLaunchSpecMetadataArgs
            {
                Key = "gci-update-strategy",
                Value = "update_disabled",
            },
        },
        OceanId = "o-123456",
        SourceImage = "image",
        Taints = 
        {
            new SpotInst.Gke.Inputs.OceanLaunchSpecTaintArgs
            {
                Effect = "taintEffect",
                Key = "taintKey",
                Value = "taintVal",
            },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
OceanLaunchSpec
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.Gke
Assembly: Pulumi.SpotInst.dll
Syntax
public class OceanLaunchSpec : CustomResource

Constructors

View Source

OceanLaunchSpec(String, OceanLaunchSpecArgs, CustomResourceOptions)

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

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

The unique name of the resource

OceanLaunchSpecArgs 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

AutoscaleHeadrooms

Set custom headroom per launch spec. provide list of headrooms object.

Declaration
public Output<ImmutableArray<OceanLaunchSpecAutoscaleHeadroom>> AutoscaleHeadrooms { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<OceanLaunchSpecAutoscaleHeadroom>>
View Source

Labels

Cluster's labels.

Declaration
public Output<ImmutableArray<OceanLaunchSpecLabel>> Labels { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<OceanLaunchSpecLabel>>
View Source

Metadatas

Cluster's metadata.

Declaration
public Output<ImmutableArray<OceanLaunchSpecMetadata>> Metadatas { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<OceanLaunchSpecMetadata>>
View Source

OceanId

The Ocean cluster ID required for launchSpec create.

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

SourceImage

Image URL.

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

Taints

Cluster's taints.

Declaration
public Output<ImmutableArray<OceanLaunchSpecTaint>> Taints { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<OceanLaunchSpecTaint>>

Methods

View Source

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

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

Declaration
public static OceanLaunchSpec Get(string name, Input<string> id, OceanLaunchSpecState 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.

OceanLaunchSpecState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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