IntVariableArgs

data class IntVariableArgs(val automationAccountName: Output<String>? = null, val description: Output<String>? = null, val encrypted: Output<Boolean>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val value: Output<Int>? = null) : ConvertibleToJava<IntVariableArgs>

Manages a integer variable in Azure Automation

Example Usage

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());
}
}

Import

Automation Int Variable can be imported using the resource id, e.g.

$ 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

Constructors

Link copied to clipboard
fun IntVariableArgs(automationAccountName: Output<String>? = null, description: Output<String>? = null, encrypted: Output<Boolean>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, value: Output<Int>? = null)

Functions

Link copied to clipboard
open override fun toJava(): IntVariableArgs

Properties

Link copied to clipboard
val automationAccountName: Output<String>? = null

The name of the automation account in which the Variable is created. Changing this forces a new resource to be created.

Link copied to clipboard
val description: Output<String>? = null

The description of the Automation Variable.

Link copied to clipboard
val encrypted: Output<Boolean>? = null

Specifies if the Automation Variable is encrypted. Defaults to false.

Link copied to clipboard
val name: Output<String>? = null

The name of the Automation Variable. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group in which to create the Automation Variable. Changing this forces a new resource to be created.

Link copied to clipboard
val value: Output<Int>? = null

The value of the Automation Variable as a integer.