![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.nomad.kotlin.NodePoolArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-nomad-kotlin Show documentation
Show all versions of pulumi-nomad-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.nomad.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.nomad.NodePoolArgs.builder
import com.pulumi.nomad.kotlin.inputs.NodePoolSchedulerConfigArgs
import com.pulumi.nomad.kotlin.inputs.NodePoolSchedulerConfigArgsBuilder
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provisions a node pool within a Nomad cluster.
* ## Example Usage
* Registering a node pool:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
* const dev = new nomad.NodePool("dev", {
* name: "dev",
* description: "Nodes for the development environment.",
* meta: {
* department: "Engineering",
* env: "dev",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_nomad as nomad
* dev = nomad.NodePool("dev",
* name="dev",
* description="Nodes for the development environment.",
* meta={
* "department": "Engineering",
* "env": "dev",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Nomad = Pulumi.Nomad;
* return await Deployment.RunAsync(() =>
* {
* var dev = new Nomad.NodePool("dev", new()
* {
* Name = "dev",
* Description = "Nodes for the development environment.",
* Meta =
* {
* { "department", "Engineering" },
* { "env", "dev" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := nomad.NewNodePool(ctx, "dev", &nomad.NodePoolArgs{
* Name: pulumi.String("dev"),
* Description: pulumi.String("Nodes for the development environment."),
* Meta: pulumi.StringMap{
* "department": pulumi.String("Engineering"),
* "env": pulumi.String("dev"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.nomad.NodePool;
* import com.pulumi.nomad.NodePoolArgs;
* 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 dev = new NodePool("dev", NodePoolArgs.builder()
* .name("dev")
* .description("Nodes for the development environment.")
* .meta(Map.ofEntries(
* Map.entry("department", "Engineering"),
* Map.entry("env", "dev")
* ))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* dev:
* type: nomad:NodePool
* properties:
* name: dev
* description: Nodes for the development environment.
* meta:
* department: Engineering
* env: dev
* ```
*
* @property description `(string)` - The description of the node pool.
* @property meta `(map[string]string)` - Arbitrary KV metadata associated with the
* node pool.
* @property name `(string)` - The name of the node pool.
* @property schedulerConfig `(block)` - Scheduler configuration for the node pool.
*/
public data class NodePoolArgs(
public val description: Output? = null,
public val meta: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy