import * as pulumi from "@pulumi/pulumi"; /** * Manages a Package within 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: "example-resource-group", * location: "westeurope", * }); * const exampleAccount = new azure.automation.Account("example", { * name: "example-account", * location: example.location, * resourceGroupName: example.name, * skuName: "Basic", * }); * const exampleRuntimeEnvironment = new azure.automation.RuntimeEnvironment("example", { * name: "example-runtime-env", * automationAccountId: exampleAccount.id, * runtimeLanguage: "PowerShell", * runtimeVersion: "7.2", * location: example.location, * }); * const exampleRuntimeEnvironmentPackage = new azure.automation.RuntimeEnvironmentPackage("example", { * name: "example-package", * automationRuntimeEnvironmentId: exampleRuntimeEnvironment.id, * contentUri: "https://www.powershellgallery.com/api/v2/package/example-package/1.0.0", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Automation` - 2024-10-23 * * ## Import * * An Automation Runtime Environment Package can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:automation/runtimeEnvironmentPackage:RuntimeEnvironmentPackage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Automation/automationAccounts/automationAccount1/runtimeEnvironments/runtimeEnvironment1/packages/package1 * ``` */ export declare class RuntimeEnvironmentPackage extends pulumi.CustomResource { /** * Get an existing RuntimeEnvironmentPackage 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?: RuntimeEnvironmentPackageState, opts?: pulumi.CustomResourceOptions): RuntimeEnvironmentPackage; /** * Returns true if the given object is an instance of RuntimeEnvironmentPackage. 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 RuntimeEnvironmentPackage; /** * The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created. */ readonly automationRuntimeEnvironmentId: pulumi.Output; /** * The HTTPS URI of the package content. Changing this forces a new resource to be created. */ readonly contentUri: pulumi.Output; /** * The version of the package content. Changing this forces a new resource to be created. * * > **Note:** The `contentVersion` must be a version string with 2 to 4 segments (e.g. `1.0`, `1.0.0`, or `1.0.0.0`). */ readonly contentVersion: pulumi.Output; /** * Whether this is a default package. */ readonly default: pulumi.Output; /** * The hash algorithm used to hash the content. Changing this forces a new resource to be created. * * > **Note:** The argument `hashAlgorithm` is required when `hashValue` is specified. */ readonly hashAlgorithm: pulumi.Output; /** * The hash value of the content. Changing this forces a new resource to be created. * * > **Note:** The argument `hashValue` is required when `hashAlgorithm` is specified. */ readonly hashValue: pulumi.Output; /** * The name of the package. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The size of the package in bytes. */ readonly sizeInBytes: pulumi.Output; /** * The version of the package as reported by the platform. */ readonly version: pulumi.Output; /** * Create a RuntimeEnvironmentPackage 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: RuntimeEnvironmentPackageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RuntimeEnvironmentPackage resources. */ export interface RuntimeEnvironmentPackageState { /** * The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created. */ automationRuntimeEnvironmentId?: pulumi.Input; /** * The HTTPS URI of the package content. Changing this forces a new resource to be created. */ contentUri?: pulumi.Input; /** * The version of the package content. Changing this forces a new resource to be created. * * > **Note:** The `contentVersion` must be a version string with 2 to 4 segments (e.g. `1.0`, `1.0.0`, or `1.0.0.0`). */ contentVersion?: pulumi.Input; /** * Whether this is a default package. */ default?: pulumi.Input; /** * The hash algorithm used to hash the content. Changing this forces a new resource to be created. * * > **Note:** The argument `hashAlgorithm` is required when `hashValue` is specified. */ hashAlgorithm?: pulumi.Input; /** * The hash value of the content. Changing this forces a new resource to be created. * * > **Note:** The argument `hashValue` is required when `hashAlgorithm` is specified. */ hashValue?: pulumi.Input; /** * The name of the package. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The size of the package in bytes. */ sizeInBytes?: pulumi.Input; /** * The version of the package as reported by the platform. */ version?: pulumi.Input; } /** * The set of arguments for constructing a RuntimeEnvironmentPackage resource. */ export interface RuntimeEnvironmentPackageArgs { /** * The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created. */ automationRuntimeEnvironmentId: pulumi.Input; /** * The HTTPS URI of the package content. Changing this forces a new resource to be created. */ contentUri: pulumi.Input; /** * The version of the package content. Changing this forces a new resource to be created. * * > **Note:** The `contentVersion` must be a version string with 2 to 4 segments (e.g. `1.0`, `1.0.0`, or `1.0.0.0`). */ contentVersion?: pulumi.Input; /** * The hash algorithm used to hash the content. Changing this forces a new resource to be created. * * > **Note:** The argument `hashAlgorithm` is required when `hashValue` is specified. */ hashAlgorithm?: pulumi.Input; /** * The hash value of the content. Changing this forces a new resource to be created. * * > **Note:** The argument `hashValue` is required when `hashAlgorithm` is specified. */ hashValue?: pulumi.Input; /** * The name of the package. Changing this forces a new resource to be created. */ name?: pulumi.Input; }