1. Packages
  2. Castai Provider
  3. API Docs
  4. NodeConfigurationDefault
castai 7.44.1 published on Monday, Mar 31, 2025 by castai

castai.NodeConfigurationDefault

Explore with Pulumi AI

Sets existing node configuration as default. All newly provisioned nodes will use default node configuration if not specified otherwise. There can only be single default node configuration per cluster.

Example Usage

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

// Set node configuration as default one.
const test = new castai.NodeConfigurationDefault("test", {
    clusterId: castai_eks_cluster.test.id,
    configurationId: castai_node_configuration.test.id,
});
Copy
import pulumi
import pulumi_castai as castai

# Set node configuration as default one.
test = castai.NodeConfigurationDefault("test",
    cluster_id=castai_eks_cluster["test"]["id"],
    configuration_id=castai_node_configuration["test"]["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/castai/v7/castai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Set node configuration as default one.
		_, err := castai.NewNodeConfigurationDefault(ctx, "test", &castai.NodeConfigurationDefaultArgs{
			ClusterId:       pulumi.Any(castai_eks_cluster.Test.Id),
			ConfigurationId: pulumi.Any(castai_node_configuration.Test.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Castai = Pulumi.Castai;

return await Deployment.RunAsync(() => 
{
    // Set node configuration as default one.
    var test = new Castai.NodeConfigurationDefault("test", new()
    {
        ClusterId = castai_eks_cluster.Test.Id,
        ConfigurationId = castai_node_configuration.Test.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.castai.NodeConfigurationDefault;
import com.pulumi.castai.NodeConfigurationDefaultArgs;
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) {
        // Set node configuration as default one.
        var test = new NodeConfigurationDefault("test", NodeConfigurationDefaultArgs.builder()
            .clusterId(castai_eks_cluster.test().id())
            .configurationId(castai_node_configuration.test().id())
            .build());

    }
}
Copy
resources:
  # Set node configuration as default one.
  test:
    type: castai:NodeConfigurationDefault
    properties:
      clusterId: ${castai_eks_cluster.test.id}
      configurationId: ${castai_node_configuration.test.id}
Copy

Create NodeConfigurationDefault Resource

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

Constructor syntax

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

@overload
def NodeConfigurationDefault(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             cluster_id: Optional[str] = None,
                             configuration_id: Optional[str] = None,
                             node_configuration_default_id: Optional[str] = None,
                             timeouts: Optional[NodeConfigurationDefaultTimeoutsArgs] = None)
func NewNodeConfigurationDefault(ctx *Context, name string, args NodeConfigurationDefaultArgs, opts ...ResourceOption) (*NodeConfigurationDefault, error)
public NodeConfigurationDefault(string name, NodeConfigurationDefaultArgs args, CustomResourceOptions? opts = null)
public NodeConfigurationDefault(String name, NodeConfigurationDefaultArgs args)
public NodeConfigurationDefault(String name, NodeConfigurationDefaultArgs args, CustomResourceOptions options)
type: castai:NodeConfigurationDefault
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. NodeConfigurationDefaultArgs
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. NodeConfigurationDefaultArgs
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. NodeConfigurationDefaultArgs
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. NodeConfigurationDefaultArgs
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. NodeConfigurationDefaultArgs
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 nodeConfigurationDefaultResource = new Castai.NodeConfigurationDefault("nodeConfigurationDefaultResource", new()
{
    ClusterId = "string",
    ConfigurationId = "string",
    NodeConfigurationDefaultId = "string",
    Timeouts = new Castai.Inputs.NodeConfigurationDefaultTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Read = "string",
    },
});
Copy
example, err := castai.NewNodeConfigurationDefault(ctx, "nodeConfigurationDefaultResource", &castai.NodeConfigurationDefaultArgs{
ClusterId: pulumi.String("string"),
ConfigurationId: pulumi.String("string"),
NodeConfigurationDefaultId: pulumi.String("string"),
Timeouts: &.NodeConfigurationDefaultTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
},
})
Copy
var nodeConfigurationDefaultResource = new NodeConfigurationDefault("nodeConfigurationDefaultResource", NodeConfigurationDefaultArgs.builder()
    .clusterId("string")
    .configurationId("string")
    .nodeConfigurationDefaultId("string")
    .timeouts(NodeConfigurationDefaultTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .read("string")
        .build())
    .build());
Copy
node_configuration_default_resource = castai.NodeConfigurationDefault("nodeConfigurationDefaultResource",
    cluster_id="string",
    configuration_id="string",
    node_configuration_default_id="string",
    timeouts={
        "create": "string",
        "delete": "string",
        "read": "string",
    })
Copy
const nodeConfigurationDefaultResource = new castai.NodeConfigurationDefault("nodeConfigurationDefaultResource", {
    clusterId: "string",
    configurationId: "string",
    nodeConfigurationDefaultId: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        read: "string",
    },
});
Copy
type: castai:NodeConfigurationDefault
properties:
    clusterId: string
    configurationId: string
    nodeConfigurationDefaultId: string
    timeouts:
        create: string
        delete: string
        read: string
Copy

NodeConfigurationDefault 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 NodeConfigurationDefault resource accepts the following input properties:

ClusterId This property is required. string
CAST AI cluster id
ConfigurationId This property is required. string
Id of the node configuration
NodeConfigurationDefaultId string
The ID of this resource.
Timeouts NodeConfigurationDefaultTimeouts
ClusterId This property is required. string
CAST AI cluster id
ConfigurationId This property is required. string
Id of the node configuration
NodeConfigurationDefaultId string
The ID of this resource.
Timeouts NodeConfigurationDefaultTimeoutsArgs
clusterId This property is required. String
CAST AI cluster id
configurationId This property is required. String
Id of the node configuration
nodeConfigurationDefaultId String
The ID of this resource.
timeouts NodeConfigurationDefaultTimeouts
clusterId This property is required. string
CAST AI cluster id
configurationId This property is required. string
Id of the node configuration
nodeConfigurationDefaultId string
The ID of this resource.
timeouts NodeConfigurationDefaultTimeouts
cluster_id This property is required. str
CAST AI cluster id
configuration_id This property is required. str
Id of the node configuration
node_configuration_default_id str
The ID of this resource.
timeouts NodeConfigurationDefaultTimeoutsArgs
clusterId This property is required. String
CAST AI cluster id
configurationId This property is required. String
Id of the node configuration
nodeConfigurationDefaultId String
The ID of this resource.
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the NodeConfigurationDefault 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 NodeConfigurationDefault Resource

Get an existing NodeConfigurationDefault 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?: NodeConfigurationDefaultState, opts?: CustomResourceOptions): NodeConfigurationDefault
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_id: Optional[str] = None,
        configuration_id: Optional[str] = None,
        node_configuration_default_id: Optional[str] = None,
        timeouts: Optional[NodeConfigurationDefaultTimeoutsArgs] = None) -> NodeConfigurationDefault
func GetNodeConfigurationDefault(ctx *Context, name string, id IDInput, state *NodeConfigurationDefaultState, opts ...ResourceOption) (*NodeConfigurationDefault, error)
public static NodeConfigurationDefault Get(string name, Input<string> id, NodeConfigurationDefaultState? state, CustomResourceOptions? opts = null)
public static NodeConfigurationDefault get(String name, Output<String> id, NodeConfigurationDefaultState state, CustomResourceOptions options)
resources:  _:    type: castai:NodeConfigurationDefault    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:
ClusterId string
CAST AI cluster id
ConfigurationId string
Id of the node configuration
NodeConfigurationDefaultId string
The ID of this resource.
Timeouts NodeConfigurationDefaultTimeouts
ClusterId string
CAST AI cluster id
ConfigurationId string
Id of the node configuration
NodeConfigurationDefaultId string
The ID of this resource.
Timeouts NodeConfigurationDefaultTimeoutsArgs
clusterId String
CAST AI cluster id
configurationId String
Id of the node configuration
nodeConfigurationDefaultId String
The ID of this resource.
timeouts NodeConfigurationDefaultTimeouts
clusterId string
CAST AI cluster id
configurationId string
Id of the node configuration
nodeConfigurationDefaultId string
The ID of this resource.
timeouts NodeConfigurationDefaultTimeouts
cluster_id str
CAST AI cluster id
configuration_id str
Id of the node configuration
node_configuration_default_id str
The ID of this resource.
timeouts NodeConfigurationDefaultTimeoutsArgs
clusterId String
CAST AI cluster id
configurationId String
Id of the node configuration
nodeConfigurationDefaultId String
The ID of this resource.
timeouts Property Map

Supporting Types

NodeConfigurationDefaultTimeouts
, NodeConfigurationDefaultTimeoutsArgs

Create string
Delete string
Read string
Create string
Delete string
Read string
create String
delete String
read String
create string
delete string
read string
create str
delete str
read str
create String
delete String
read String

Package Details

Repository
castai castai/terraform-provider-castai
License
Notes
This Pulumi package is based on the castai Terraform Provider.