import * as pulumi from "@pulumi/pulumi"; /** * Manages an Automation Runtime Environment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "rg-example", * location: "westeurope", * }); * const exampleAccount = new azure.automation.Account("example", { * name: "example", * location: example.location, * resourceGroupName: example.name, * skuName: "Basic", * }); * const exampleRuntimeEnvironment = new azure.automation.RuntimeEnvironment("example", { * name: "powershell_environment_custom_config", * automationAccountId: exampleAccount.id, * runtimeLanguage: "PowerShell", * runtimeVersion: "7.2", * location: example.location, * description: "example description", * runtimeDefaultPackages: { * az: "11.2.0", * "azure cli": "2.56.0", * }, * tags: { * key: "foo", * }, * }); * ``` * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Automation` - 2024-10-23 * * ## Import * * Automation Runtime Environments can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:automation/runtimeEnvironment:RuntimeEnvironment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/runtimeEnvironments/env1 * ``` */ export declare class RuntimeEnvironment extends pulumi.CustomResource { /** * Get an existing RuntimeEnvironment 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?: RuntimeEnvironmentState, opts?: pulumi.CustomResourceOptions): RuntimeEnvironment; /** * Returns true if the given object is an instance of RuntimeEnvironment. 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 RuntimeEnvironment; /** * The ID of the automation account in which the Automation Runtime Environment is created. Changing this forces a new resource to be created. */ readonly automationAccountId: pulumi.Output; /** * A description of the Automation Runtime Environment. */ readonly description: pulumi.Output; /** * The location where the Automation Runtime Environment is created. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name for the Automation Runtime Environment. Changing this forces a new Automation Runtime Environment to be created. */ readonly name: pulumi.Output; /** * A mapping of default packages to be installed in the Automation Runtime Environment. The default packages can only be used with PowerShell runtime environments. Removing packages will force a new Automation Runtime Environment, adding new packages will update the existing Automation Runtime Environment. */ readonly runtimeDefaultPackages: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The programming language used by the Automation Runtime Environment. Possible values are `Python` and `PowerShell`. Changing this forces a new Automation Runtime Environment to be created. */ readonly runtimeLanguage: pulumi.Output; /** * The version of the runtime environment. Changing this forces a new Automation Runtime Environment to be created. */ readonly runtimeVersion: pulumi.Output; /** * A mapping of tags which should be assigned to the Automation Runtime Environment. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a RuntimeEnvironment 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: RuntimeEnvironmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RuntimeEnvironment resources. */ export interface RuntimeEnvironmentState { /** * The ID of the automation account in which the Automation Runtime Environment is created. Changing this forces a new resource to be created. */ automationAccountId?: pulumi.Input; /** * A description of the Automation Runtime Environment. */ description?: pulumi.Input; /** * The location where the Automation Runtime Environment is created. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name for the Automation Runtime Environment. Changing this forces a new Automation Runtime Environment to be created. */ name?: pulumi.Input; /** * A mapping of default packages to be installed in the Automation Runtime Environment. The default packages can only be used with PowerShell runtime environments. Removing packages will force a new Automation Runtime Environment, adding new packages will update the existing Automation Runtime Environment. */ runtimeDefaultPackages?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The programming language used by the Automation Runtime Environment. Possible values are `Python` and `PowerShell`. Changing this forces a new Automation Runtime Environment to be created. */ runtimeLanguage?: pulumi.Input; /** * The version of the runtime environment. Changing this forces a new Automation Runtime Environment to be created. */ runtimeVersion?: pulumi.Input; /** * A mapping of tags which should be assigned to the Automation Runtime Environment. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a RuntimeEnvironment resource. */ export interface RuntimeEnvironmentArgs { /** * The ID of the automation account in which the Automation Runtime Environment is created. Changing this forces a new resource to be created. */ automationAccountId: pulumi.Input; /** * A description of the Automation Runtime Environment. */ description?: pulumi.Input; /** * The location where the Automation Runtime Environment is created. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name for the Automation Runtime Environment. Changing this forces a new Automation Runtime Environment to be created. */ name?: pulumi.Input; /** * A mapping of default packages to be installed in the Automation Runtime Environment. The default packages can only be used with PowerShell runtime environments. Removing packages will force a new Automation Runtime Environment, adding new packages will update the existing Automation Runtime Environment. */ runtimeDefaultPackages?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The programming language used by the Automation Runtime Environment. Possible values are `Python` and `PowerShell`. Changing this forces a new Automation Runtime Environment to be created. */ runtimeLanguage: pulumi.Input; /** * The version of the runtime environment. Changing this forces a new Automation Runtime Environment to be created. */ runtimeVersion: pulumi.Input; /** * A mapping of tags which should be assigned to the Automation Runtime Environment. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }