import * as pulumi from "@pulumi/pulumi"; /** * Manages a Batch Job. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "west europe", * }); * const exampleAccount = new azure.batch.Account("example", { * name: "exampleaccount", * resourceGroupName: example.name, * location: example.location, * }); * const examplePool = new azure.batch.Pool("example", { * name: "examplepool", * resourceGroupName: example.name, * accountName: exampleAccount.name, * nodeAgentSkuId: "batch.node.ubuntu 16.04", * vmSize: "STANDARD_A1_V2", * fixedScale: { * targetDedicatedNodes: 1, * }, * storageImageReference: { * publisher: "Canonical", * offer: "0001-com-ubuntu-server-jammy", * sku: "22_04-lts", * version: "latest", * }, * }); * const exampleJob = new azure.batch.Job("example", { * name: "examplejob", * batchPoolId: examplePool.id, * }); * ``` * * ## Import * * Batch Jobs can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:batch/job:Job example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Batch/batchAccounts/account1/pools/pool1/jobs/job1 * ``` */ export declare class Job extends pulumi.CustomResource { /** * Get an existing Job 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?: JobState, opts?: pulumi.CustomResourceOptions): Job; /** * Returns true if the given object is an instance of Job. 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 Job; /** * The ID of the Batch Pool. Changing this forces a new Batch Job to be created. */ readonly batchPoolId: pulumi.Output; /** * Specifies a map of common environment settings applied to this Batch Job. Changing this forces a new Batch Job to be created. */ readonly commonEnvironmentProperties: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The display name of this Batch Job. Changing this forces a new Batch Job to be created. */ readonly displayName: pulumi.Output; /** * The name which should be used for this Batch Job. Changing this forces a new Batch Job to be created. */ readonly name: pulumi.Output; /** * The priority of this Batch Job, possible values can range from -1000 (lowest) to 1000 (highest). Defaults to `0`. */ readonly priority: pulumi.Output; /** * The number of retries to each Batch Task belongs to this Batch Job. If this is set to `0`, the Batch service does not retry Tasks. If this is set to `-1`, the Batch service retries Batch Tasks without limit. */ readonly taskRetryMaximum: pulumi.Output; /** * Create a Job 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: JobArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Job resources. */ export interface JobState { /** * The ID of the Batch Pool. Changing this forces a new Batch Job to be created. */ batchPoolId?: pulumi.Input; /** * Specifies a map of common environment settings applied to this Batch Job. Changing this forces a new Batch Job to be created. */ commonEnvironmentProperties?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The display name of this Batch Job. Changing this forces a new Batch Job to be created. */ displayName?: pulumi.Input; /** * The name which should be used for this Batch Job. Changing this forces a new Batch Job to be created. */ name?: pulumi.Input; /** * The priority of this Batch Job, possible values can range from -1000 (lowest) to 1000 (highest). Defaults to `0`. */ priority?: pulumi.Input; /** * The number of retries to each Batch Task belongs to this Batch Job. If this is set to `0`, the Batch service does not retry Tasks. If this is set to `-1`, the Batch service retries Batch Tasks without limit. */ taskRetryMaximum?: pulumi.Input; } /** * The set of arguments for constructing a Job resource. */ export interface JobArgs { /** * The ID of the Batch Pool. Changing this forces a new Batch Job to be created. */ batchPoolId: pulumi.Input; /** * Specifies a map of common environment settings applied to this Batch Job. Changing this forces a new Batch Job to be created. */ commonEnvironmentProperties?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The display name of this Batch Job. Changing this forces a new Batch Job to be created. */ displayName?: pulumi.Input; /** * The name which should be used for this Batch Job. Changing this forces a new Batch Job to be created. */ name?: pulumi.Input; /** * The priority of this Batch Job, possible values can range from -1000 (lowest) to 1000 (highest). Defaults to `0`. */ priority?: pulumi.Input; /** * The number of retries to each Batch Task belongs to this Batch Job. If this is set to `0`, the Batch service does not retry Tasks. If this is set to `-1`, the Batch service retries Batch Tasks without limit. */ taskRetryMaximum?: pulumi.Input; }