FleetUpdateStrategyArgs

data class FleetUpdateStrategyArgs(val fleetName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val strategy: Output<UpdateRunStrategyArgs>? = null, val updateStrategyName: Output<String>? = null) : ConvertibleToJava<FleetUpdateStrategyArgs>

Defines a multi-stage process to perform update operations across members of a Fleet. Uses Azure REST API version 2024-05-02-preview. In version 2.x of the Azure Native provider, it used API version 2023-08-15-preview. Other available API versions: 2023-08-15-preview, 2023-10-15, 2024-02-02-preview, 2024-04-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native containerservice [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create a FleetUpdateStrategy.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var fleetUpdateStrategy = new AzureNative.ContainerService.FleetUpdateStrategy("fleetUpdateStrategy", new()
{
FleetName = "fleet1",
ResourceGroupName = "rg1",
Strategy = new AzureNative.ContainerService.Inputs.UpdateRunStrategyArgs
{
Stages = new[]
{
new AzureNative.ContainerService.Inputs.UpdateStageArgs
{
AfterStageWaitInSeconds = 3600,
Groups = new[]
{
new AzureNative.ContainerService.Inputs.UpdateGroupArgs
{
Name = "group-a",
},
},
Name = "stage1",
},
},
},
UpdateStrategyName = "strartegy1",
});
});
package main
import (
containerservice "github.com/pulumi/pulumi-azure-native-sdk/containerservice/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerservice.NewFleetUpdateStrategy(ctx, "fleetUpdateStrategy", &containerservice.FleetUpdateStrategyArgs{
FleetName: pulumi.String("fleet1"),
ResourceGroupName: pulumi.String("rg1"),
Strategy: &containerservice.UpdateRunStrategyArgs{
Stages: containerservice.UpdateStageArray{
&containerservice.UpdateStageArgs{
AfterStageWaitInSeconds: pulumi.Int(3600),
Groups: containerservice.UpdateGroupArray{
&containerservice.UpdateGroupArgs{
Name: pulumi.String("group-a"),
},
},
Name: pulumi.String("stage1"),
},
},
},
UpdateStrategyName: pulumi.String("strartegy1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.containerservice.FleetUpdateStrategy;
import com.pulumi.azurenative.containerservice.FleetUpdateStrategyArgs;
import com.pulumi.azurenative.containerservice.inputs.UpdateRunStrategyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fleetUpdateStrategy = new FleetUpdateStrategy("fleetUpdateStrategy", FleetUpdateStrategyArgs.builder()
.fleetName("fleet1")
.resourceGroupName("rg1")
.strategy(UpdateRunStrategyArgs.builder()
.stages(UpdateStageArgs.builder()
.afterStageWaitInSeconds(3600)
.groups(UpdateGroupArgs.builder()
.name("group-a")
.build())
.name("stage1")
.build())
.build())
.updateStrategyName("strartegy1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:containerservice:FleetUpdateStrategy strategy1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateStrategies/{updateStrategyName}

Constructors

Link copied to clipboard
constructor(fleetName: Output<String>? = null, resourceGroupName: Output<String>? = null, strategy: Output<UpdateRunStrategyArgs>? = null, updateStrategyName: Output<String>? = null)

Properties

Link copied to clipboard
val fleetName: Output<String>? = null

The name of the Fleet resource.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val strategy: Output<UpdateRunStrategyArgs>? = null

Defines the update sequence of the clusters.

Link copied to clipboard
val updateStrategyName: Output<String>? = null

The name of the UpdateStrategy resource.

Functions

Link copied to clipboard
open override fun toJava(): FleetUpdateStrategyArgs