import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Kubernetes Fleet Update Run. * * ## 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: "westeurope", * }); * const exampleKubernetesFleetManager = new azure.containerservice.KubernetesFleetManager("example", { * location: example.location, * name: "example", * resourceGroupName: example.name, * }); * const exampleKubernetesCluster = new azure.containerservice.KubernetesCluster("example", { * name: "example", * location: example.location, * resourceGroupName: example.name, * dnsPrefix: "example", * defaultNodePool: { * name: "default", * nodeCount: 1, * vmSize: "Standard_DS2_v2", * }, * identity: { * type: "SystemAssigned", * }, * }); * const exampleFleetMember = new azure.containerservice.FleetMember("example", { * name: "example", * kubernetesFleetId: exampleKubernetesFleetManager.id, * kubernetesClusterId: exampleKubernetesCluster.id, * group: "example-group", * }); * const exampleFleetUpdateRun = new azure.containerservice.FleetUpdateRun("example", { * name: "example", * kubernetesFleetManagerId: exampleKubernetesFleetManager.id, * managedClusterUpdate: { * upgrade: { * type: "Full", * kubernetesVersion: "1.27", * }, * nodeImageSelection: { * type: "Latest", * }, * }, * stages: [{ * name: "example", * groups: [{ * name: "example-group", * }], * afterStageWaitInSeconds: 21, * }], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ContainerService` - 2025-03-01 * * ## Import * * Kubernetes Fleet Update Runs can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:containerservice/fleetUpdateRun:FleetUpdateRun example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.ContainerService/fleets/fleet1/updateRuns/updateRun1 * ``` */ export declare class FleetUpdateRun extends pulumi.CustomResource { /** * Get an existing FleetUpdateRun 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?: FleetUpdateRunState, opts?: pulumi.CustomResourceOptions): FleetUpdateRun; /** * Returns true if the given object is an instance of FleetUpdateRun. 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 FleetUpdateRun; /** * The ID of the Fleet Update Strategy. Only one of `fleetUpdateStrategyId` or `stage` can be specified. */ readonly fleetUpdateStrategyId: pulumi.Output; /** * The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created. */ readonly kubernetesFleetManagerId: pulumi.Output; /** * A `managedClusterUpdate` block as defined below. */ readonly managedClusterUpdate: pulumi.Output; /** * The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created. */ readonly name: pulumi.Output; /** * One or more `stage` blocks as defined below. Only one of `stage` or `fleetUpdateStrategyId` can be specified. */ readonly stages: pulumi.Output; /** * Create a FleetUpdateRun 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: FleetUpdateRunArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FleetUpdateRun resources. */ export interface FleetUpdateRunState { /** * The ID of the Fleet Update Strategy. Only one of `fleetUpdateStrategyId` or `stage` can be specified. */ fleetUpdateStrategyId?: pulumi.Input; /** * The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created. */ kubernetesFleetManagerId?: pulumi.Input; /** * A `managedClusterUpdate` block as defined below. */ managedClusterUpdate?: pulumi.Input; /** * The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created. */ name?: pulumi.Input; /** * One or more `stage` blocks as defined below. Only one of `stage` or `fleetUpdateStrategyId` can be specified. */ stages?: pulumi.Input[]>; } /** * The set of arguments for constructing a FleetUpdateRun resource. */ export interface FleetUpdateRunArgs { /** * The ID of the Fleet Update Strategy. Only one of `fleetUpdateStrategyId` or `stage` can be specified. */ fleetUpdateStrategyId?: pulumi.Input; /** * The ID of the Fleet Manager. Changing this forces a new Kubernetes Fleet Update Run to be created. */ kubernetesFleetManagerId: pulumi.Input; /** * A `managedClusterUpdate` block as defined below. */ managedClusterUpdate: pulumi.Input; /** * The name which should be used for this Kubernetes Fleet Update Run. Changing this forces a new Kubernetes Fleet Update Run to be created. */ name?: pulumi.Input; /** * One or more `stage` blocks as defined below. Only one of `stage` or `fleetUpdateStrategyId` can be specified. */ stages?: pulumi.Input[]>; }