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",
});
import pulumi
import pulumi_spotinst as spotinst
example = spotinst.gke.OceanLaunchSpecImport("example",
ocean_id="o-123456",
node_pool_name="default-pool")
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
})
}
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",
});
});
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());
}
}
resources:
example:
type: spotinst:gke:OceanLaunchSpecImport
properties:
oceanId: o-123456
nodePoolName: default-pool
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 string
- The unique name of the resource.
- args OceanLaunchSpecImportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args OceanLaunchSpecImportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OceanLaunchSpecImportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := gke.NewOceanLaunchSpecImport(ctx, "oceanLaunchSpecImportResource", &gke.OceanLaunchSpecImportArgs{
NodePoolName: pulumi.String("string"),
OceanId: pulumi.String("string"),
})
var oceanLaunchSpecImportResource = new OceanLaunchSpecImport("oceanLaunchSpecImportResource", OceanLaunchSpecImportArgs.builder()
.nodePoolName("string")
.oceanId("string")
.build());
ocean_launch_spec_import_resource = spotinst.gke.OceanLaunchSpecImport("oceanLaunchSpecImportResource",
node_pool_name="string",
ocean_id="string")
const oceanLaunchSpecImportResource = new spotinst.gke.OceanLaunchSpecImport("oceanLaunchSpecImportResource", {
nodePoolName: "string",
oceanId: "string",
});
type: spotinst:gke:OceanLaunchSpecImport
properties:
nodePoolName: string
oceanId: string
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
The OceanLaunchSpecImport resource accepts the following input properties:
- Node
Pool stringName - The node pool you wish to use in your launchSpec.
- Ocean
Id string - The Ocean cluster ID required for launchSpec create.
- Node
Pool stringName - The node pool you wish to use in your launchSpec.
- Ocean
Id string - The Ocean cluster ID required for launchSpec create.
- node
Pool StringName - The node pool you wish to use in your launchSpec.
- ocean
Id String - The Ocean cluster ID required for launchSpec create.
- node
Pool stringName - The node pool you wish to use in your launchSpec.
- ocean
Id string - The Ocean cluster ID required for launchSpec create.
- node_
pool_ strname - The node pool you wish to use in your launchSpec.
- ocean_
id str - The Ocean cluster ID required for launchSpec create.
- node
Pool StringName - The node pool you wish to use in your launchSpec.
- ocean
Id 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Node
Pool stringName - The node pool you wish to use in your launchSpec.
- Ocean
Id string - The Ocean cluster ID required for launchSpec create.
- Node
Pool stringName - The node pool you wish to use in your launchSpec.
- Ocean
Id string - The Ocean cluster ID required for launchSpec create.
- node
Pool StringName - The node pool you wish to use in your launchSpec.
- ocean
Id String - The Ocean cluster ID required for launchSpec create.
- node
Pool stringName - The node pool you wish to use in your launchSpec.
- ocean
Id string - The Ocean cluster ID required for launchSpec create.
- node_
pool_ strname - The node pool you wish to use in your launchSpec.
- ocean_
id str - The Ocean cluster ID required for launchSpec create.
- node
Pool StringName - The node pool you wish to use in your launchSpec.
- ocean
Id 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.