import * as pulumi from "@pulumi/pulumi"; /** * Manages a string 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 exampleStringVariable = new azure.automation.StringVariable("example", { * name: "tfex-example-var", * resourceGroupName: example.name, * automationAccountName: exampleAccount.name, * value: "Hello, Basic Test.", * }); * ``` * * ## Import * * Automation String Variable can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:automation/stringVariable:StringVariable example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tfex-example-rg/providers/Microsoft.Automation/automationAccounts/tfex-example-account/variables/tfex-example-var * ``` */ export declare class StringVariable extends pulumi.CustomResource { /** * Get an existing StringVariable resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: StringVariableState, opts?: pulumi.CustomResourceOptions): StringVariable; /** * Returns true if the given object is an instance of StringVariable. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is StringVariable; /** * The name of the automation account in which the Variable is created. Changing this forces a new resource to be created. */ readonly automationAccountName: pulumi.Output; /** * The description of the Automation Variable. */ readonly description: pulumi.Output; /** * Specifies if the Automation Variable is encrypted. Defaults to `false`. */ readonly encrypted: pulumi.Output; /** * The name of the Automation Variable. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the resource group in which to create the Automation Variable. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The value of the Automation Variable as a `string`. */ readonly value: pulumi.Output; /** * Create a StringVariable resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: StringVariableArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StringVariable resources. */ export interface StringVariableState { /** * The name of the automation account in which the Variable is created. Changing this forces a new resource to be created. */ automationAccountName?: pulumi.Input; /** * The description of the Automation Variable. */ description?: pulumi.Input; /** * Specifies if the Automation Variable is encrypted. Defaults to `false`. */ encrypted?: pulumi.Input; /** * The name of the Automation Variable. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which to create the Automation Variable. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The value of the Automation Variable as a `string`. */ value?: pulumi.Input; } /** * The set of arguments for constructing a StringVariable resource. */ export interface StringVariableArgs { /** * The name of the automation account in which the Variable is created. Changing this forces a new resource to be created. */ automationAccountName: pulumi.Input; /** * The description of the Automation Variable. */ description?: pulumi.Input; /** * Specifies if the Automation Variable is encrypted. Defaults to `false`. */ encrypted?: pulumi.Input; /** * The name of the Automation Variable. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which to create the Automation Variable. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The value of the Automation Variable as a `string`. */ value?: pulumi.Input; }