azure-native.containerservice.FleetUpdateStrategy
Explore with Pulumi AI
Defines a multi-stage process to perform update operations across members of a Fleet. Azure REST API version: 2023-08-15-preview.
Other available API versions: 2023-10-15, 2024-02-02-preview, 2024-04-01, 2024-05-02-preview.
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 pulumi
import pulumi_azure_native as azure_native
fleet_update_strategy = azure_native.containerservice.FleetUpdateStrategy("fleetUpdateStrategy",
fleet_name="fleet1",
resource_group_name="rg1",
strategy={
"stages": [{
"after_stage_wait_in_seconds": 3600,
"groups": [{
"name": "group-a",
}],
"name": "stage1",
}],
},
update_strategy_name="strartegy1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const fleetUpdateStrategy = new azure_native.containerservice.FleetUpdateStrategy("fleetUpdateStrategy", {
fleetName: "fleet1",
resourceGroupName: "rg1",
strategy: {
stages: [{
afterStageWaitInSeconds: 3600,
groups: [{
name: "group-a",
}],
name: "stage1",
}],
},
updateStrategyName: "strartegy1",
});
resources:
fleetUpdateStrategy:
type: azure-native:containerservice:FleetUpdateStrategy
properties:
fleetName: fleet1
resourceGroupName: rg1
strategy:
stages:
- afterStageWaitInSeconds: 3600
groups:
- name: group-a
name: stage1
updateStrategyName: strartegy1
Create FleetUpdateStrategy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FleetUpdateStrategy(name: string, args: FleetUpdateStrategyArgs, opts?: CustomResourceOptions);
@overload
def FleetUpdateStrategy(resource_name: str,
args: FleetUpdateStrategyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FleetUpdateStrategy(resource_name: str,
opts: Optional[ResourceOptions] = None,
fleet_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
strategy: Optional[UpdateRunStrategyArgs] = None,
update_strategy_name: Optional[str] = None)
func NewFleetUpdateStrategy(ctx *Context, name string, args FleetUpdateStrategyArgs, opts ...ResourceOption) (*FleetUpdateStrategy, error)
public FleetUpdateStrategy(string name, FleetUpdateStrategyArgs args, CustomResourceOptions? opts = null)
public FleetUpdateStrategy(String name, FleetUpdateStrategyArgs args)
public FleetUpdateStrategy(String name, FleetUpdateStrategyArgs args, CustomResourceOptions options)
type: azure-native:containerservice:FleetUpdateStrategy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FleetUpdateStrategyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FleetUpdateStrategyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FleetUpdateStrategyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetUpdateStrategyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FleetUpdateStrategyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var fleetUpdateStrategyResource = new AzureNative.ContainerService.FleetUpdateStrategy("fleetUpdateStrategyResource", new()
{
FleetName = "string",
ResourceGroupName = "string",
Strategy = new AzureNative.ContainerService.Inputs.UpdateRunStrategyArgs
{
Stages = new[]
{
new AzureNative.ContainerService.Inputs.UpdateStageArgs
{
Name = "string",
AfterStageWaitInSeconds = 0,
Groups = new[]
{
new AzureNative.ContainerService.Inputs.UpdateGroupArgs
{
Name = "string",
},
},
},
},
},
UpdateStrategyName = "string",
});
example, err := containerservice.NewFleetUpdateStrategy(ctx, "fleetUpdateStrategyResource", &containerservice.FleetUpdateStrategyArgs{
FleetName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Strategy: &containerservice.UpdateRunStrategyArgs{
Stages: containerservice.UpdateStageArray{
&containerservice.UpdateStageArgs{
Name: pulumi.String("string"),
AfterStageWaitInSeconds: pulumi.Int(0),
Groups: containerservice.UpdateGroupArray{
&containerservice.UpdateGroupArgs{
Name: pulumi.String("string"),
},
},
},
},
},
UpdateStrategyName: pulumi.String("string"),
})
var fleetUpdateStrategyResource = new FleetUpdateStrategy("fleetUpdateStrategyResource", FleetUpdateStrategyArgs.builder()
.fleetName("string")
.resourceGroupName("string")
.strategy(UpdateRunStrategyArgs.builder()
.stages(UpdateStageArgs.builder()
.name("string")
.afterStageWaitInSeconds(0)
.groups(UpdateGroupArgs.builder()
.name("string")
.build())
.build())
.build())
.updateStrategyName("string")
.build());
fleet_update_strategy_resource = azure_native.containerservice.FleetUpdateStrategy("fleetUpdateStrategyResource",
fleet_name="string",
resource_group_name="string",
strategy={
"stages": [{
"name": "string",
"afterStageWaitInSeconds": 0,
"groups": [{
"name": "string",
}],
}],
},
update_strategy_name="string")
const fleetUpdateStrategyResource = new azure_native.containerservice.FleetUpdateStrategy("fleetUpdateStrategyResource", {
fleetName: "string",
resourceGroupName: "string",
strategy: {
stages: [{
name: "string",
afterStageWaitInSeconds: 0,
groups: [{
name: "string",
}],
}],
},
updateStrategyName: "string",
});
type: azure-native:containerservice:FleetUpdateStrategy
properties:
fleetName: string
resourceGroupName: string
strategy:
stages:
- afterStageWaitInSeconds: 0
groups:
- name: string
name: string
updateStrategyName: string
FleetUpdateStrategy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FleetUpdateStrategy resource accepts the following input properties:
- Fleet
Name string - The name of the Fleet resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Strategy
Pulumi.
Azure Native. Container Service. Inputs. Update Run Strategy - Defines the update sequence of the clusters.
- Update
Strategy stringName - The name of the UpdateStrategy resource.
- Fleet
Name string - The name of the Fleet resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Strategy
Update
Run Strategy Args - Defines the update sequence of the clusters.
- Update
Strategy stringName - The name of the UpdateStrategy resource.
- fleet
Name String - The name of the Fleet resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- strategy
Update
Run Strategy - Defines the update sequence of the clusters.
- update
Strategy StringName - The name of the UpdateStrategy resource.
- fleet
Name string - The name of the Fleet resource.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- strategy
Update
Run Strategy - Defines the update sequence of the clusters.
- update
Strategy stringName - The name of the UpdateStrategy resource.
- fleet_
name str - The name of the Fleet resource.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- strategy
Update
Run Strategy Args - Defines the update sequence of the clusters.
- update_
strategy_ strname - The name of the UpdateStrategy resource.
- fleet
Name String - The name of the Fleet resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- strategy Property Map
- Defines the update sequence of the clusters.
- update
Strategy StringName - The name of the UpdateStrategy resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the FleetUpdateStrategy resource produces the following output properties:
- ETag string
- If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the UpdateStrategy resource.
- System
Data Pulumi.Azure Native. Container Service. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- ETag string
- If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the UpdateStrategy resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- e
Tag String - If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the UpdateStrategy resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- e
Tag string - If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The provisioning state of the UpdateStrategy resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- e_
tag str - If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The provisioning state of the UpdateStrategy resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- e
Tag String - If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the UpdateStrategy resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
UpdateGroup, UpdateGroupArgs
- Name string
- Name of the group. It must match a group name of an existing fleet member.
- Name string
- Name of the group. It must match a group name of an existing fleet member.
- name String
- Name of the group. It must match a group name of an existing fleet member.
- name string
- Name of the group. It must match a group name of an existing fleet member.
- name str
- Name of the group. It must match a group name of an existing fleet member.
- name String
- Name of the group. It must match a group name of an existing fleet member.
UpdateGroupResponse, UpdateGroupResponseArgs
- Name string
- Name of the group. It must match a group name of an existing fleet member.
- Name string
- Name of the group. It must match a group name of an existing fleet member.
- name String
- Name of the group. It must match a group name of an existing fleet member.
- name string
- Name of the group. It must match a group name of an existing fleet member.
- name str
- Name of the group. It must match a group name of an existing fleet member.
- name String
- Name of the group. It must match a group name of an existing fleet member.
UpdateRunStrategy, UpdateRunStrategyArgs
- Stages
List<Pulumi.
Azure Native. Container Service. Inputs. Update Stage> - The list of stages that compose this update run. Min size: 1.
- Stages
[]Update
Stage - The list of stages that compose this update run. Min size: 1.
- stages
List<Update
Stage> - The list of stages that compose this update run. Min size: 1.
- stages
Update
Stage[] - The list of stages that compose this update run. Min size: 1.
- stages
Sequence[Update
Stage] - The list of stages that compose this update run. Min size: 1.
- stages List<Property Map>
- The list of stages that compose this update run. Min size: 1.
UpdateRunStrategyResponse, UpdateRunStrategyResponseArgs
- Stages
List<Pulumi.
Azure Native. Container Service. Inputs. Update Stage Response> - The list of stages that compose this update run. Min size: 1.
- Stages
[]Update
Stage Response - The list of stages that compose this update run. Min size: 1.
- stages
List<Update
Stage Response> - The list of stages that compose this update run. Min size: 1.
- stages
Update
Stage Response[] - The list of stages that compose this update run. Min size: 1.
- stages
Sequence[Update
Stage Response] - The list of stages that compose this update run. Min size: 1.
- stages List<Property Map>
- The list of stages that compose this update run. Min size: 1.
UpdateStage, UpdateStageArgs
- Name string
- The name of the stage. Must be unique within the UpdateRun.
- After
Stage intWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- Groups
List<Pulumi.
Azure Native. Container Service. Inputs. Update Group> - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- Name string
- The name of the stage. Must be unique within the UpdateRun.
- After
Stage intWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- Groups
[]Update
Group - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- name String
- The name of the stage. Must be unique within the UpdateRun.
- after
Stage IntegerWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- groups
List<Update
Group> - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- name string
- The name of the stage. Must be unique within the UpdateRun.
- after
Stage numberWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- groups
Update
Group[] - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- name str
- The name of the stage. Must be unique within the UpdateRun.
- after_
stage_ intwait_ in_ seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- groups
Sequence[Update
Group] - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- name String
- The name of the stage. Must be unique within the UpdateRun.
- after
Stage NumberWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- groups List<Property Map>
- Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
UpdateStageResponse, UpdateStageResponseArgs
- Name string
- The name of the stage. Must be unique within the UpdateRun.
- After
Stage intWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- Groups
List<Pulumi.
Azure Native. Container Service. Inputs. Update Group Response> - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- Name string
- The name of the stage. Must be unique within the UpdateRun.
- After
Stage intWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- Groups
[]Update
Group Response - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- name String
- The name of the stage. Must be unique within the UpdateRun.
- after
Stage IntegerWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- groups
List<Update
Group Response> - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- name string
- The name of the stage. Must be unique within the UpdateRun.
- after
Stage numberWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- groups
Update
Group Response[] - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- name str
- The name of the stage. Must be unique within the UpdateRun.
- after_
stage_ intwait_ in_ seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- groups
Sequence[Update
Group Response] - Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
- name String
- The name of the stage. Must be unique within the UpdateRun.
- after
Stage NumberWait In Seconds - The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified.
- groups List<Property Map>
- Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1.
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0