1. Packages
  2. Spotinst Provider
  3. API Docs
  4. gke
  5. OceanLaunchSpecImport
Spotinst v3.116.1 published on Saturday, Apr 12, 2025 by Pulumi

spotinst.gke.OceanLaunchSpecImport

Explore with Pulumi AI

Manages a custom Spotinst Ocean GKE Launch Spec Import resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";

const example = new spotinst.gke.OceanLaunchSpecImport("example", {
    oceanId: "o-123456",
    nodePoolName: "default-pool",
});
Copy
import pulumi
import pulumi_spotinst as spotinst

example = spotinst.gke.OceanLaunchSpecImport("example",
    ocean_id="o-123456",
    node_pool_name="default-pool")
Copy
package main

import (
	"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/gke"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gke.NewOceanLaunchSpecImport(ctx, "example", &gke.OceanLaunchSpecImportArgs{
			OceanId:      pulumi.String("o-123456"),
			NodePoolName: pulumi.String("default-pool"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SpotInst = Pulumi.SpotInst;

return await Deployment.RunAsync(() => 
{
    var example = new SpotInst.Gke.OceanLaunchSpecImport("example", new()
    {
        OceanId = "o-123456",
        NodePoolName = "default-pool",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spotinst.gke.OceanLaunchSpecImport;
import com.pulumi.spotinst.gke.OceanLaunchSpecImportArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new OceanLaunchSpecImport("example", OceanLaunchSpecImportArgs.builder()
            .oceanId("o-123456")
            .nodePoolName("default-pool")
            .build());

    }
}
Copy
resources:
  example:
    type: spotinst:gke:OceanLaunchSpecImport
    properties:
      oceanId: o-123456
      nodePoolName: default-pool
Copy
output "ocean_launchspec_id" {
  value = spotinst_ocean_gke_launch_spec_import.example.id
}

Create OceanLaunchSpecImport Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new OceanLaunchSpecImport(name: string, args: OceanLaunchSpecImportArgs, opts?: CustomResourceOptions);
@overload
def OceanLaunchSpecImport(resource_name: str,
                          args: OceanLaunchSpecImportArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def OceanLaunchSpecImport(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          node_pool_name: Optional[str] = None,
                          ocean_id: Optional[str] = None)
func NewOceanLaunchSpecImport(ctx *Context, name string, args OceanLaunchSpecImportArgs, opts ...ResourceOption) (*OceanLaunchSpecImport, error)
public OceanLaunchSpecImport(string name, OceanLaunchSpecImportArgs args, CustomResourceOptions? opts = null)
public OceanLaunchSpecImport(String name, OceanLaunchSpecImportArgs args)
public OceanLaunchSpecImport(String name, OceanLaunchSpecImportArgs args, CustomResourceOptions options)
type: spotinst:gke:OceanLaunchSpecImport
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OceanLaunchSpecImportArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OceanLaunchSpecImportArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OceanLaunchSpecImportArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OceanLaunchSpecImportArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OceanLaunchSpecImportArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var oceanLaunchSpecImportResource = new SpotInst.Gke.OceanLaunchSpecImport("oceanLaunchSpecImportResource", new()
{
    NodePoolName = "string",
    OceanId = "string",
});
Copy
example, err := gke.NewOceanLaunchSpecImport(ctx, "oceanLaunchSpecImportResource", &gke.OceanLaunchSpecImportArgs{
	NodePoolName: pulumi.String("string"),
	OceanId:      pulumi.String("string"),
})
Copy
var oceanLaunchSpecImportResource = new OceanLaunchSpecImport("oceanLaunchSpecImportResource", OceanLaunchSpecImportArgs.builder()
    .nodePoolName("string")
    .oceanId("string")
    .build());
Copy
ocean_launch_spec_import_resource = spotinst.gke.OceanLaunchSpecImport("oceanLaunchSpecImportResource",
    node_pool_name="string",
    ocean_id="string")
Copy
const oceanLaunchSpecImportResource = new spotinst.gke.OceanLaunchSpecImport("oceanLaunchSpecImportResource", {
    nodePoolName: "string",
    oceanId: "string",
});
Copy
type: spotinst:gke:OceanLaunchSpecImport
properties:
    nodePoolName: string
    oceanId: string
Copy

OceanLaunchSpecImport Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The OceanLaunchSpecImport resource accepts the following input properties:

NodePoolName
This property is required.
Changes to this property will trigger replacement.
string
The node pool you wish to use in your launchSpec.
OceanId
This property is required.
Changes to this property will trigger replacement.
string
The Ocean cluster ID required for launchSpec create.
NodePoolName
This property is required.
Changes to this property will trigger replacement.
string
The node pool you wish to use in your launchSpec.
OceanId
This property is required.
Changes to this property will trigger replacement.
string
The Ocean cluster ID required for launchSpec create.
nodePoolName
This property is required.
Changes to this property will trigger replacement.
String
The node pool you wish to use in your launchSpec.
oceanId
This property is required.
Changes to this property will trigger replacement.
String
The Ocean cluster ID required for launchSpec create.
nodePoolName
This property is required.
Changes to this property will trigger replacement.
string
The node pool you wish to use in your launchSpec.
oceanId
This property is required.
Changes to this property will trigger replacement.
string
The Ocean cluster ID required for launchSpec create.
node_pool_name
This property is required.
Changes to this property will trigger replacement.
str
The node pool you wish to use in your launchSpec.
ocean_id
This property is required.
Changes to this property will trigger replacement.
str
The Ocean cluster ID required for launchSpec create.
nodePoolName
This property is required.
Changes to this property will trigger replacement.
String
The node pool you wish to use in your launchSpec.
oceanId
This property is required.
Changes to this property will trigger replacement.
String
The Ocean cluster ID required for launchSpec create.

Outputs

All input properties are implicitly available as output properties. Additionally, the OceanLaunchSpecImport resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing OceanLaunchSpecImport Resource

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

public static get(name: string, id: Input<ID>, state?: OceanLaunchSpecImportState, opts?: CustomResourceOptions): OceanLaunchSpecImport
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        node_pool_name: Optional[str] = None,
        ocean_id: Optional[str] = None) -> OceanLaunchSpecImport
func GetOceanLaunchSpecImport(ctx *Context, name string, id IDInput, state *OceanLaunchSpecImportState, opts ...ResourceOption) (*OceanLaunchSpecImport, error)
public static OceanLaunchSpecImport Get(string name, Input<string> id, OceanLaunchSpecImportState? state, CustomResourceOptions? opts = null)
public static OceanLaunchSpecImport get(String name, Output<String> id, OceanLaunchSpecImportState state, CustomResourceOptions options)
resources:  _:    type: spotinst:gke:OceanLaunchSpecImport    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
NodePoolName Changes to this property will trigger replacement. string
The node pool you wish to use in your launchSpec.
OceanId Changes to this property will trigger replacement. string
The Ocean cluster ID required for launchSpec create.
NodePoolName Changes to this property will trigger replacement. string
The node pool you wish to use in your launchSpec.
OceanId Changes to this property will trigger replacement. string
The Ocean cluster ID required for launchSpec create.
nodePoolName Changes to this property will trigger replacement. String
The node pool you wish to use in your launchSpec.
oceanId Changes to this property will trigger replacement. String
The Ocean cluster ID required for launchSpec create.
nodePoolName Changes to this property will trigger replacement. string
The node pool you wish to use in your launchSpec.
oceanId Changes to this property will trigger replacement. string
The Ocean cluster ID required for launchSpec create.
node_pool_name Changes to this property will trigger replacement. str
The node pool you wish to use in your launchSpec.
ocean_id Changes to this property will trigger replacement. str
The Ocean cluster ID required for launchSpec create.
nodePoolName Changes to this property will trigger replacement. String
The node pool you wish to use in your launchSpec.
oceanId Changes to this property will trigger replacement. String
The Ocean cluster ID required for launchSpec create.

Package Details

Repository
Spotinst pulumi/pulumi-spotinst
License
Apache-2.0
Notes
This Pulumi package is based on the spotinst Terraform Provider.