Class PerInstanceConfig
A config defined for a single managed instance that belongs to an instance group manager. It preserves the instance name across instance group manager operations and can define stateful disks or metadata that are unique to the instance.
To get more information about PerInstanceConfig, see:
- API documentation
- How-to Guides
- Official Documentation
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class PerInstanceConfig : CustomResource
Constructors
View SourcePerInstanceConfig(String, PerInstanceConfigArgs, CustomResourceOptions)
Create a PerInstanceConfig resource with the given unique name, arguments, and options.
Declaration
public PerInstanceConfig(string name, PerInstanceConfigArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| PerInstanceConfigArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceInstanceGroupManager
The instance group manager this instance config is part of.
Declaration
public Output<string> InstanceGroupManager { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MinimalAction
The minimal action to perform on the instance during an update.
Default is NONE. Possible values are:
- REPLACE
- RESTART
- REFRESH
- NONE
Declaration
public Output<string> MinimalAction { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MostDisruptiveAllowedAction
The most disruptive action to perform on the instance during an update.
Default is REPLACE. Possible values are:
- REPLACE
- RESTART
- REFRESH
- NONE
Declaration
public Output<string> MostDisruptiveAllowedAction { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name for this per-instance config and its corresponding instance.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PreservedState
The preserved state for this instance. Structure is documented below.
Declaration
public Output<PerInstanceConfigPreservedState> PreservedState { get; }
Property Value
| Type | Description |
|---|---|
| Output<PerInstanceConfigPreservedState> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Zone
Zone where the containing instance group manager is located
Declaration
public Output<string> Zone { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, PerInstanceConfigState, CustomResourceOptions)
Get an existing PerInstanceConfig resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static PerInstanceConfig Get(string name, Input<string> id, PerInstanceConfigState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| PerInstanceConfigState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| PerInstanceConfig |