All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.automation.kotlin.IntVariableArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.automation.kotlin

import com.pulumi.azure.automation.IntVariableArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Manages a integer variable in Azure Automation
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "tfex-example-rg",
 *     location: "West Europe",
 * });
 * const exampleAccount = new azure.automation.Account("example", {
 *     name: "tfex-example-account",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     skuName: "Basic",
 * });
 * const exampleIntVariable = new azure.automation.IntVariable("example", {
 *     name: "tfex-example-var",
 *     resourceGroupName: example.name,
 *     automationAccountName: exampleAccount.name,
 *     value: 1234,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="tfex-example-rg",
 *     location="West Europe")
 * example_account = azure.automation.Account("example",
 *     name="tfex-example-account",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     sku_name="Basic")
 * example_int_variable = azure.automation.IntVariable("example",
 *     name="tfex-example-var",
 *     resource_group_name=example.name,
 *     automation_account_name=example_account.name,
 *     value=1234)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "tfex-example-rg",
 *         Location = "West Europe",
 *     });
 *     var exampleAccount = new Azure.Automation.Account("example", new()
 *     {
 *         Name = "tfex-example-account",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         SkuName = "Basic",
 *     });
 *     var exampleIntVariable = new Azure.Automation.IntVariable("example", new()
 *     {
 *         Name = "tfex-example-var",
 *         ResourceGroupName = example.Name,
 *         AutomationAccountName = exampleAccount.Name,
 *         Value = 1234,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/automation"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("tfex-example-rg"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := automation.NewAccount(ctx, "example", &automation.AccountArgs{
 * 			Name:              pulumi.String("tfex-example-account"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			SkuName:           pulumi.String("Basic"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = automation.NewIntVariable(ctx, "example", &automation.IntVariableArgs{
 * 			Name:                  pulumi.String("tfex-example-var"),
 * 			ResourceGroupName:     example.Name,
 * 			AutomationAccountName: exampleAccount.Name,
 * 			Value:                 pulumi.Int(1234),
 * 		})
 * 		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.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.automation.Account;
 * import com.pulumi.azure.automation.AccountArgs;
 * import com.pulumi.azure.automation.IntVariable;
 * import com.pulumi.azure.automation.IntVariableArgs;
 * 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 ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("tfex-example-rg")
 *             .location("West Europe")
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("tfex-example-account")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .skuName("Basic")
 *             .build());
 *         var exampleIntVariable = new IntVariable("exampleIntVariable", IntVariableArgs.builder()
 *             .name("tfex-example-var")
 *             .resourceGroupName(example.name())
 *             .automationAccountName(exampleAccount.name())
 *             .value(1234)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: tfex-example-rg
 *       location: West Europe
 *   exampleAccount:
 *     type: azure:automation:Account
 *     name: example
 *     properties:
 *       name: tfex-example-account
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       skuName: Basic
 *   exampleIntVariable:
 *     type: azure:automation:IntVariable
 *     name: example
 *     properties:
 *       name: tfex-example-var
 *       resourceGroupName: ${example.name}
 *       automationAccountName: ${exampleAccount.name}
 *       value: 1234
 * ```
 * 
 * ## Import
 * Automation Int Variable can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:automation/intVariable:IntVariable example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tfex-example-rg/providers/Microsoft.Automation/automationAccounts/tfex-example-account/variables/tfex-example-var
 * ```
 * @property automationAccountName The name of the automation account in which the Variable is created. Changing this forces a new resource to be created.
 * @property description The description of the Automation Variable.
 * @property encrypted Specifies if the Automation Variable is encrypted. Defaults to `false`.
 * @property name The name of the Automation Variable. Changing this forces a new resource to be created.
 * @property resourceGroupName The name of the resource group in which to create the Automation Variable. Changing this forces a new resource to be created.
 * @property value The value of the Automation Variable as a `integer`.
 */
public data class IntVariableArgs(
    public val automationAccountName: Output? = null,
    public val description: Output? = null,
    public val encrypted: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.automation.IntVariableArgs =
        com.pulumi.azure.automation.IntVariableArgs.builder()
            .automationAccountName(automationAccountName?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .encrypted(encrypted?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IntVariableArgs].
 */
@PulumiTagMarker
public class IntVariableArgsBuilder internal constructor() {
    private var automationAccountName: Output? = null

    private var description: Output? = null

    private var encrypted: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The name of the automation account in which the Variable is created. Changing this forces a new resource to be created.
     */
    @JvmName("rvvulfgjvrbpmhjj")
    public suspend fun automationAccountName(`value`: Output) {
        this.automationAccountName = value
    }

    /**
     * @param value The description of the Automation Variable.
     */
    @JvmName("xyjslvraxbgueofq")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Specifies if the Automation Variable is encrypted. Defaults to `false`.
     */
    @JvmName("mycniftskbrlvhvr")
    public suspend fun encrypted(`value`: Output) {
        this.encrypted = value
    }

    /**
     * @param value The name of the Automation Variable. Changing this forces a new resource to be created.
     */
    @JvmName("ppjphmdyrofcapep")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the resource group in which to create the Automation Variable. Changing this forces a new resource to be created.
     */
    @JvmName("dxnpaddwwfdgtcjw")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The value of the Automation Variable as a `integer`.
     */
    @JvmName("wubxwsswekbbgdjc")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The name of the automation account in which the Variable is created. Changing this forces a new resource to be created.
     */
    @JvmName("mnwbuutyqydlvppd")
    public suspend fun automationAccountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automationAccountName = mapped
    }

    /**
     * @param value The description of the Automation Variable.
     */
    @JvmName("yoxhtcmuftampngn")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Specifies if the Automation Variable is encrypted. Defaults to `false`.
     */
    @JvmName("ookovrthickftnhk")
    public suspend fun encrypted(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encrypted = mapped
    }

    /**
     * @param value The name of the Automation Variable. Changing this forces a new resource to be created.
     */
    @JvmName("nfhqyraerkkwktnh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the resource group in which to create the Automation Variable. Changing this forces a new resource to be created.
     */
    @JvmName("waleiteakrpnfuqj")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The value of the Automation Variable as a `integer`.
     */
    @JvmName("jnfmdxjyesllgjbp")
    public suspend fun `value`(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): IntVariableArgs = IntVariableArgs(
        automationAccountName = automationAccountName,
        description = description,
        encrypted = encrypted,
        name = name,
        resourceGroupName = resourceGroupName,
        `value` = `value`,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy