import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Container Registry Task. * * ## 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 exampleRegistry = new azure.containerservice.Registry("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * sku: "Basic", * }); * const exampleRegistryTask = new azure.containerservice.RegistryTask("example", { * name: "example-task", * containerRegistryId: exampleRegistry.id, * platform: { * os: "Linux", * }, * dockerStep: { * dockerfilePath: "Dockerfile", * contextPath: "https://github.com//#:", * contextAccessToken: "", * imageNames: ["helloworld:{{.Run.ID}}"], * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ContainerRegistry` - 2025-11-01, 2019-06-01-preview * * ## Import * * Container Registry Tasks can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:containerservice/registryTask:RegistryTask example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.ContainerRegistry/registries/registry1/tasks/task1 * ``` */ export declare class RegistryTask extends pulumi.CustomResource { /** * Get an existing RegistryTask 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?: RegistryTaskState, opts?: pulumi.CustomResourceOptions): RegistryTask; /** * Returns true if the given object is an instance of RegistryTask. 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 RegistryTask; /** * The name of the dedicated Container Registry Agent Pool for this Container Registry Task. */ readonly agentPoolName: pulumi.Output; /** * A `agentSetting` block as defined below. * * > **Note:** Only one of `agentPoolName` and `agentSetting` can be specified. */ readonly agentSetting: pulumi.Output; /** * A `baseImageTrigger` block as defined below. */ readonly baseImageTrigger: pulumi.Output; /** * The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created. */ readonly containerRegistryId: pulumi.Output; /** * A `dockerStep` block as defined below. */ readonly dockerStep: pulumi.Output; /** * Should this Container Registry Task be enabled? Defaults to `true`. */ readonly enabled: pulumi.Output; /** * A `encodedStep` block as defined below. */ readonly encodedStep: pulumi.Output; /** * A `fileStep` block as defined below. * * > **Note:** For non-system task (when `isSystemTask` is set to `false`), one and only one of the `dockerStep`, `encodedStep` and `fileStep` should be specified. */ readonly fileStep: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`. */ readonly isSystemTask: pulumi.Output; readonly logTemplate: pulumi.Output; /** * The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created. */ readonly name: pulumi.Output; /** * A `platform` block as defined below. * * > **Note:** The `platform` is required for non-system task (when `isSystemTask` is set to `false`). */ readonly platform: pulumi.Output; readonly registryCredential: pulumi.Output; /** * One or more `sourceTrigger` blocks as defined below. */ readonly sourceTriggers: pulumi.Output; readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; readonly timeoutInSeconds: pulumi.Output; /** * One or more `timerTrigger` blocks as defined below. */ readonly timerTriggers: pulumi.Output; /** * Create a RegistryTask 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: RegistryTaskArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RegistryTask resources. */ export interface RegistryTaskState { /** * The name of the dedicated Container Registry Agent Pool for this Container Registry Task. */ agentPoolName?: pulumi.Input; /** * A `agentSetting` block as defined below. * * > **Note:** Only one of `agentPoolName` and `agentSetting` can be specified. */ agentSetting?: pulumi.Input; /** * A `baseImageTrigger` block as defined below. */ baseImageTrigger?: pulumi.Input; /** * The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created. */ containerRegistryId?: pulumi.Input; /** * A `dockerStep` block as defined below. */ dockerStep?: pulumi.Input; /** * Should this Container Registry Task be enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * A `encodedStep` block as defined below. */ encodedStep?: pulumi.Input; /** * A `fileStep` block as defined below. * * > **Note:** For non-system task (when `isSystemTask` is set to `false`), one and only one of the `dockerStep`, `encodedStep` and `fileStep` should be specified. */ fileStep?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`. */ isSystemTask?: pulumi.Input; logTemplate?: pulumi.Input; /** * The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created. */ name?: pulumi.Input; /** * A `platform` block as defined below. * * > **Note:** The `platform` is required for non-system task (when `isSystemTask` is set to `false`). */ platform?: pulumi.Input; registryCredential?: pulumi.Input; /** * One or more `sourceTrigger` blocks as defined below. */ sourceTriggers?: pulumi.Input[]>; tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; timeoutInSeconds?: pulumi.Input; /** * One or more `timerTrigger` blocks as defined below. */ timerTriggers?: pulumi.Input[]>; } /** * The set of arguments for constructing a RegistryTask resource. */ export interface RegistryTaskArgs { /** * The name of the dedicated Container Registry Agent Pool for this Container Registry Task. */ agentPoolName?: pulumi.Input; /** * A `agentSetting` block as defined below. * * > **Note:** Only one of `agentPoolName` and `agentSetting` can be specified. */ agentSetting?: pulumi.Input; /** * A `baseImageTrigger` block as defined below. */ baseImageTrigger?: pulumi.Input; /** * The ID of the Container Registry that this Container Registry Task resides in. Changing this forces a new Container Registry Task to be created. */ containerRegistryId: pulumi.Input; /** * A `dockerStep` block as defined below. */ dockerStep?: pulumi.Input; /** * Should this Container Registry Task be enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * A `encodedStep` block as defined below. */ encodedStep?: pulumi.Input; /** * A `fileStep` block as defined below. * * > **Note:** For non-system task (when `isSystemTask` is set to `false`), one and only one of the `dockerStep`, `encodedStep` and `fileStep` should be specified. */ fileStep?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * Whether this Container Registry Task is a system task. Changing this forces a new Container Registry Task to be created. Defaults to `false`. */ isSystemTask?: pulumi.Input; logTemplate?: pulumi.Input; /** * The name which should be used for this Container Registry Task. Changing this forces a new Container Registry Task to be created. */ name?: pulumi.Input; /** * A `platform` block as defined below. * * > **Note:** The `platform` is required for non-system task (when `isSystemTask` is set to `false`). */ platform?: pulumi.Input; registryCredential?: pulumi.Input; /** * One or more `sourceTrigger` blocks as defined below. */ sourceTriggers?: pulumi.Input[]>; tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; timeoutInSeconds?: pulumi.Input; /** * One or more `timerTrigger` blocks as defined below. */ timerTriggers?: pulumi.Input[]>; }