DateTimeVariable

class DateTimeVariable : KotlinCustomResource

Manages a DateTime 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.DateTimeVariable;
import com.pulumi.azure.automation.DateTimeVariableArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Basic")
.build());
var exampleDateTimeVariable = new DateTimeVariable("exampleDateTimeVariable", DateTimeVariableArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.automationAccountName(exampleAccount.name())
.value("2019-04-24T21:40:54.074Z")
.build());
}
}

Import

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

$ pulumi import azure:automation/dateTimeVariable:DateTimeVariable example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tfex-example-rg/providers/Microsoft.Automation/automationAccounts/tfex-example-account/variables/tfex-example-var

Properties

Link copied to clipboard

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>?

The description of the Automation Variable.

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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 urn: Output<String>
Link copied to clipboard
val value: Output<String>?

The value of the Automation Variable in the RFC3339 Section 5.6 Internet Date/Time Format.