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,
});
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"])
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
})
}
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,
});
});
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());
}
}
resources:
# Set node configuration as default one.
test:
type: castai:NodeConfigurationDefault
properties:
clusterId: ${castai_eks_cluster.test.id}
configurationId: ${castai_node_configuration.test.id}
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 string
- The unique name of the resource.
- args NodeConfigurationDefaultArgs
- 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 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 string
- The unique name of the resource.
- args NodeConfigurationDefaultArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NodeConfigurationDefaultArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
var nodeConfigurationDefaultResource = new NodeConfigurationDefault("nodeConfigurationDefaultResource", NodeConfigurationDefaultArgs.builder()
.clusterId("string")
.configurationId("string")
.nodeConfigurationDefaultId("string")
.timeouts(NodeConfigurationDefaultTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.build())
.build());
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",
})
const nodeConfigurationDefaultResource = new castai.NodeConfigurationDefault("nodeConfigurationDefaultResource", {
clusterId: "string",
configurationId: "string",
nodeConfigurationDefaultId: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
},
});
type: castai:NodeConfigurationDefault
properties:
clusterId: string
configurationId: string
nodeConfigurationDefaultId: string
timeouts:
create: string
delete: string
read: string
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:
- Cluster
Id string - CAST AI cluster id
- Configuration
Id string - Id of the node configuration
- Node
Configuration stringDefault Id - The ID of this resource.
- Timeouts
Node
Configuration Default Timeouts
- Cluster
Id string - CAST AI cluster id
- Configuration
Id string - Id of the node configuration
- Node
Configuration stringDefault Id - The ID of this resource.
- Timeouts
Node
Configuration Default Timeouts Args
- cluster
Id String - CAST AI cluster id
- configuration
Id String - Id of the node configuration
- node
Configuration StringDefault Id - The ID of this resource.
- timeouts
Node
Configuration Default Timeouts
- cluster
Id string - CAST AI cluster id
- configuration
Id string - Id of the node configuration
- node
Configuration stringDefault Id - The ID of this resource.
- timeouts
Node
Configuration Default Timeouts
- cluster_
id str - CAST AI cluster id
- configuration_
id str - Id of the node configuration
- node_
configuration_ strdefault_ id - The ID of this resource.
- timeouts
Node
Configuration Default Timeouts Args
- cluster
Id String - CAST AI cluster id
- configuration
Id String - Id of the node configuration
- node
Configuration StringDefault Id - 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
- 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.
- Cluster
Id string - CAST AI cluster id
- Configuration
Id string - Id of the node configuration
- Node
Configuration stringDefault Id - The ID of this resource.
- Timeouts
Node
Configuration Default Timeouts
- Cluster
Id string - CAST AI cluster id
- Configuration
Id string - Id of the node configuration
- Node
Configuration stringDefault Id - The ID of this resource.
- Timeouts
Node
Configuration Default Timeouts Args
- cluster
Id String - CAST AI cluster id
- configuration
Id String - Id of the node configuration
- node
Configuration StringDefault Id - The ID of this resource.
- timeouts
Node
Configuration Default Timeouts
- cluster
Id string - CAST AI cluster id
- configuration
Id string - Id of the node configuration
- node
Configuration stringDefault Id - The ID of this resource.
- timeouts
Node
Configuration Default Timeouts
- cluster_
id str - CAST AI cluster id
- configuration_
id str - Id of the node configuration
- node_
configuration_ strdefault_ id - The ID of this resource.
- timeouts
Node
Configuration Default Timeouts Args
- cluster
Id String - CAST AI cluster id
- configuration
Id String - Id of the node configuration
- node
Configuration StringDefault Id - The ID of this resource.
- timeouts Property Map
Supporting Types
NodeConfigurationDefaultTimeouts, NodeConfigurationDefaultTimeoutsArgs
Package Details
- Repository
- castai castai/terraform-provider-castai
- License
- Notes
- This Pulumi package is based on the
castai
Terraform Provider.