spotinst.spark.OceanVirtualNodeGroup
Explore with Pulumi AI
Manage a dedicated Spotinst Ocean Spark Virtual Node Group resource
Prerequisites
An existing Ocean cluster and Ocean VNG is required by this resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const example = new spotinst.spark.OceanVirtualNodeGroup("example", {
virtualNodeGroupId: "vng_id",
oceanSparkClusterId: "cluster_id",
});
import pulumi
import pulumi_spotinst as spotinst
example = spotinst.spark.OceanVirtualNodeGroup("example",
virtual_node_group_id="vng_id",
ocean_spark_cluster_id="cluster_id")
package main
import (
"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/spark"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := spark.NewOceanVirtualNodeGroup(ctx, "example", &spark.OceanVirtualNodeGroupArgs{
VirtualNodeGroupId: pulumi.String("vng_id"),
OceanSparkClusterId: pulumi.String("cluster_id"),
})
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.Spark.OceanVirtualNodeGroup("example", new()
{
VirtualNodeGroupId = "vng_id",
OceanSparkClusterId = "cluster_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spotinst.spark.OceanVirtualNodeGroup;
import com.pulumi.spotinst.spark.OceanVirtualNodeGroupArgs;
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 OceanVirtualNodeGroup("example", OceanVirtualNodeGroupArgs.builder()
.virtualNodeGroupId("vng_id")
.oceanSparkClusterId("cluster_id")
.build());
}
}
resources:
example:
type: spotinst:spark:OceanVirtualNodeGroup
properties:
virtualNodeGroupId: vng_id
oceanSparkClusterId: cluster_id
Create OceanVirtualNodeGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OceanVirtualNodeGroup(name: string, args: OceanVirtualNodeGroupArgs, opts?: CustomResourceOptions);
@overload
def OceanVirtualNodeGroup(resource_name: str,
args: OceanVirtualNodeGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OceanVirtualNodeGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
ocean_spark_cluster_id: Optional[str] = None,
virtual_node_group_id: Optional[str] = None)
func NewOceanVirtualNodeGroup(ctx *Context, name string, args OceanVirtualNodeGroupArgs, opts ...ResourceOption) (*OceanVirtualNodeGroup, error)
public OceanVirtualNodeGroup(string name, OceanVirtualNodeGroupArgs args, CustomResourceOptions? opts = null)
public OceanVirtualNodeGroup(String name, OceanVirtualNodeGroupArgs args)
public OceanVirtualNodeGroup(String name, OceanVirtualNodeGroupArgs args, CustomResourceOptions options)
type: spotinst:spark:OceanVirtualNodeGroup
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 OceanVirtualNodeGroupArgs
- 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 OceanVirtualNodeGroupArgs
- 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 OceanVirtualNodeGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OceanVirtualNodeGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OceanVirtualNodeGroupArgs
- 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 oceanVirtualNodeGroupResource = new SpotInst.Spark.OceanVirtualNodeGroup("oceanVirtualNodeGroupResource", new()
{
OceanSparkClusterId = "string",
VirtualNodeGroupId = "string",
});
example, err := spark.NewOceanVirtualNodeGroup(ctx, "oceanVirtualNodeGroupResource", &spark.OceanVirtualNodeGroupArgs{
OceanSparkClusterId: pulumi.String("string"),
VirtualNodeGroupId: pulumi.String("string"),
})
var oceanVirtualNodeGroupResource = new OceanVirtualNodeGroup("oceanVirtualNodeGroupResource", OceanVirtualNodeGroupArgs.builder()
.oceanSparkClusterId("string")
.virtualNodeGroupId("string")
.build());
ocean_virtual_node_group_resource = spotinst.spark.OceanVirtualNodeGroup("oceanVirtualNodeGroupResource",
ocean_spark_cluster_id="string",
virtual_node_group_id="string")
const oceanVirtualNodeGroupResource = new spotinst.spark.OceanVirtualNodeGroup("oceanVirtualNodeGroupResource", {
oceanSparkClusterId: "string",
virtualNodeGroupId: "string",
});
type: spotinst:spark:OceanVirtualNodeGroup
properties:
oceanSparkClusterId: string
virtualNodeGroupId: string
OceanVirtualNodeGroup 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 OceanVirtualNodeGroup resource accepts the following input properties:
- Ocean
Spark stringCluster Id - Virtual
Node stringGroup Id
- Ocean
Spark stringCluster Id - Virtual
Node stringGroup Id
- ocean
Spark StringCluster Id - virtual
Node StringGroup Id
- ocean
Spark stringCluster Id - virtual
Node stringGroup Id
- ocean
Spark StringCluster Id - virtual
Node StringGroup Id
Outputs
All input properties are implicitly available as output properties. Additionally, the OceanVirtualNodeGroup 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 OceanVirtualNodeGroup Resource
Get an existing OceanVirtualNodeGroup 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?: OceanVirtualNodeGroupState, opts?: CustomResourceOptions): OceanVirtualNodeGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ocean_spark_cluster_id: Optional[str] = None,
virtual_node_group_id: Optional[str] = None) -> OceanVirtualNodeGroup
func GetOceanVirtualNodeGroup(ctx *Context, name string, id IDInput, state *OceanVirtualNodeGroupState, opts ...ResourceOption) (*OceanVirtualNodeGroup, error)
public static OceanVirtualNodeGroup Get(string name, Input<string> id, OceanVirtualNodeGroupState? state, CustomResourceOptions? opts = null)
public static OceanVirtualNodeGroup get(String name, Output<String> id, OceanVirtualNodeGroupState 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.
- Ocean
Spark stringCluster Id - Virtual
Node stringGroup Id
- Ocean
Spark stringCluster Id - Virtual
Node stringGroup Id
- ocean
Spark StringCluster Id - virtual
Node StringGroup Id
- ocean
Spark stringCluster Id - virtual
Node stringGroup Id
- ocean
Spark StringCluster Id - virtual
Node StringGroup Id
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinst
Terraform Provider.