Class OceanLaunchSpec
Provides a custom Spotinst Ocean ECS Launch Spec resource.
Example Usage
using Pulumi;
using SpotInst = Pulumi.SpotInst;
class MyStack : Stack
{
public MyStack()
{
var example = new SpotInst.Ecs.OceanLaunchSpec("example", new SpotInst.Ecs.OceanLaunchSpecArgs
{
Attributes =
{
new SpotInst.Ecs.Inputs.OceanLaunchSpecAttributeArgs
{
Key = "fakeKey",
Value = "fakeValue",
},
},
AutoscaleHeadrooms =
{
new SpotInst.Ecs.Inputs.OceanLaunchSpecAutoscaleHeadroomArgs
{
CpuPerUnit = 1000,
MemoryPerUnit = 2048,
NumOfUnits = 5,
},
},
IamInstanceProfile = "iam-profile",
ImageId = "ami-123456",
OceanId = "o-123456",
SecurityGroupIds =
{
"awseb-12345",
},
Tags =
{
new SpotInst.Ecs.Inputs.OceanLaunchSpecTagArgs
{
Key = "Env",
Value = "production",
},
},
UserData = "echo hello world",
});
}
}
Inherited Members
Namespace: Pulumi.SpotInst.Ecs
Assembly: Pulumi.SpotInst.dll
Syntax
public class OceanLaunchSpec : CustomResource
Constructors
View SourceOceanLaunchSpec(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 SourceAttributes
Optionally adds labels to instances launched in an Ocean cluster.
Declaration
public Output<ImmutableArray<OceanLaunchSpecAttribute>> Attributes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<OceanLaunchSpecAttribute>> |
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>> |
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> |
ImageId
ID of the image used to launch the instances.
Declaration
public Output<string> ImageId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The Ocean Launch Specification name.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OceanId
The Ocean cluster ID .
Declaration
public Output<string> OceanId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SecurityGroupIds
One or more security group ids.
Declaration
public Output<ImmutableArray<string>> SecurityGroupIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
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>> |
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 SourceGet(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 |