Show / Hide Table of Contents

Class OceanLaunchSpec

Provides a custom Spotinst Ocean AWS Launch Spec resource.

Example Usage

using Pulumi;
using SpotInst = Pulumi.SpotInst;

class MyStack : Stack
{
public MyStack()
{
    var example = new SpotInst.Aws.OceanLaunchSpec("example", new SpotInst.Aws.OceanLaunchSpecArgs
    {
        AutoscaleHeadrooms = 
        {
            new SpotInst.Aws.Inputs.OceanLaunchSpecAutoscaleHeadroomArgs
            {
                CpuPerUnit = 1000,
                GpuPerUnit = 0,
                MemoryPerUnit = 2048,
                NumOfUnits = 5,
            },
        },
        ElasticIpPools = 
        {
            new SpotInst.Aws.Inputs.OceanLaunchSpecElasticIpPoolArgs
            {
                TagSelector = new SpotInst.Aws.Inputs.OceanLaunchSpecElasticIpPoolTagSelectorArgs
                {
                    TagKey = "key",
                    TagValue = "value",
                },
            },
        },
        IamInstanceProfile = "iam-profile",
        ImageId = "ami-123456",
        Labels = 
        {
            new SpotInst.Aws.Inputs.OceanLaunchSpecLabelArgs
            {
                Key = "fakeKey",
                Value = "fakeValue",
            },
        },
        OceanId = "o-123456",
        RootVolumeSize = 30,
        SecurityGroups = 
        {
            "sg-987654321",
        },
        SubnetIds = 
        {
            "subnet-1234",
        },
        Tags = 
        {
            new SpotInst.Aws.Inputs.OceanLaunchSpecTagArgs
            {
                Key = "Env",
                Value = "production",
            },
        },
        Taints = 
        {
            new SpotInst.Aws.Inputs.OceanLaunchSpecTaintArgs
            {
                Effect = "NoExecute",
                Key = "taint key updated",
                Value = "taint value updated",
            },
        },
        UserData = "echo hello world",
    });
}

}
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.Aws
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

ElasticIpPools

Assign an Elastic IP to the instances spun by the launch spec. Can be null.

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

IamInstanceProfile

The ARN or name of an IAM instance profile to associate with launched instances.

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

ImageId

ID of the image used to launch the instances.

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

Labels

Optionally adds labels to instances launched in an Ocean cluster.

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

Name

Set Launch Specification name

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

OceanId

The ocean cluster you wish to

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

RootVolumeSize

Set root volume size (in GB).

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

SecurityGroups

Optionally adds security group IDs.

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

SubnetIds

Set subnets in launchSpec. Each element in array should be subnet ID.

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

Tags

A key/value mapping of tags to assign to the resource.

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

Taints

Optionally adds labels to instances launched in an Ocean cluster.

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

UserData

Base64-encoded MIME user data to make available to the instances.

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

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.