tencentcloud.AsStartInstanceRefresh
Explore with Pulumi AI
Provides a resource to create as instance refresh
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.AsStartInstanceRefresh;
import com.pulumi.tencentcloud.AsStartInstanceRefreshArgs;
import com.pulumi.tencentcloud.inputs.AsStartInstanceRefreshRefreshSettingsArgs;
import com.pulumi.tencentcloud.inputs.AsStartInstanceRefreshRefreshSettingsRollingUpdateSettingsArgs;
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 example = new AsStartInstanceRefresh("example", AsStartInstanceRefreshArgs.builder()
.autoScalingGroupId("asg-8n7fdm28")
.refreshMode("ROLLING_UPDATE_RESET")
.refreshSettings(AsStartInstanceRefreshRefreshSettingsArgs.builder()
.checkInstanceTargetHealth(false)
.rollingUpdateSettings(AsStartInstanceRefreshRefreshSettingsRollingUpdateSettingsArgs.builder()
.batchNumber(1)
.batchPause("AUTOMATIC")
.maxSurge(1)
.failProcess("AUTO_PAUSE")
.build())
.build())
.timeouts(AsStartInstanceRefreshTimeoutsArgs.builder()
.create("10m")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:AsStartInstanceRefresh
properties:
autoScalingGroupId: asg-8n7fdm28
refreshMode: ROLLING_UPDATE_RESET
refreshSettings:
checkInstanceTargetHealth: false
rollingUpdateSettings:
batchNumber: 1
batchPause: AUTOMATIC
maxSurge: 1
failProcess: AUTO_PAUSE
timeouts:
- create: 10m
Create AsStartInstanceRefresh Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AsStartInstanceRefresh(name: string, args: AsStartInstanceRefreshArgs, opts?: CustomResourceOptions);
@overload
def AsStartInstanceRefresh(resource_name: str,
args: AsStartInstanceRefreshArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AsStartInstanceRefresh(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_scaling_group_id: Optional[str] = None,
refresh_settings: Optional[AsStartInstanceRefreshRefreshSettingsArgs] = None,
as_start_instance_refresh_id: Optional[str] = None,
refresh_mode: Optional[str] = None,
timeouts: Optional[AsStartInstanceRefreshTimeoutsArgs] = None)
func NewAsStartInstanceRefresh(ctx *Context, name string, args AsStartInstanceRefreshArgs, opts ...ResourceOption) (*AsStartInstanceRefresh, error)
public AsStartInstanceRefresh(string name, AsStartInstanceRefreshArgs args, CustomResourceOptions? opts = null)
public AsStartInstanceRefresh(String name, AsStartInstanceRefreshArgs args)
public AsStartInstanceRefresh(String name, AsStartInstanceRefreshArgs args, CustomResourceOptions options)
type: tencentcloud:AsStartInstanceRefresh
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 AsStartInstanceRefreshArgs
- 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 AsStartInstanceRefreshArgs
- 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 AsStartInstanceRefreshArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AsStartInstanceRefreshArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AsStartInstanceRefreshArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AsStartInstanceRefresh Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AsStartInstanceRefresh resource accepts the following input properties:
- Auto
Scaling stringGroup Id - Scaling group ID.
- Refresh
Settings AsStart Instance Refresh Refresh Settings - Refresh settings.
- As
Start stringInstance Refresh Id - ID of the resource.
- Refresh
Mode string - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- Timeouts
As
Start Instance Refresh Timeouts
- Auto
Scaling stringGroup Id - Scaling group ID.
- Refresh
Settings AsStart Instance Refresh Refresh Settings Args - Refresh settings.
- As
Start stringInstance Refresh Id - ID of the resource.
- Refresh
Mode string - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- Timeouts
As
Start Instance Refresh Timeouts Args
- auto
Scaling StringGroup Id - Scaling group ID.
- refresh
Settings AsStart Instance Refresh Refresh Settings - Refresh settings.
- as
Start StringInstance Refresh Id - ID of the resource.
- refresh
Mode String - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- timeouts
As
Start Instance Refresh Timeouts
- auto
Scaling stringGroup Id - Scaling group ID.
- refresh
Settings AsStart Instance Refresh Refresh Settings - Refresh settings.
- as
Start stringInstance Refresh Id - ID of the resource.
- refresh
Mode string - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- timeouts
As
Start Instance Refresh Timeouts
- auto_
scaling_ strgroup_ id - Scaling group ID.
- refresh_
settings AsStart Instance Refresh Refresh Settings Args - Refresh settings.
- as_
start_ strinstance_ refresh_ id - ID of the resource.
- refresh_
mode str - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- timeouts
As
Start Instance Refresh Timeouts Args
- auto
Scaling StringGroup Id - Scaling group ID.
- refresh
Settings Property Map - Refresh settings.
- as
Start StringInstance Refresh Id - ID of the resource.
- refresh
Mode String - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AsStartInstanceRefresh resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AsStartInstanceRefresh Resource
Get an existing AsStartInstanceRefresh resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AsStartInstanceRefreshState, opts?: CustomResourceOptions): AsStartInstanceRefresh
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
as_start_instance_refresh_id: Optional[str] = None,
auto_scaling_group_id: Optional[str] = None,
refresh_mode: Optional[str] = None,
refresh_settings: Optional[AsStartInstanceRefreshRefreshSettingsArgs] = None,
timeouts: Optional[AsStartInstanceRefreshTimeoutsArgs] = None) -> AsStartInstanceRefresh
func GetAsStartInstanceRefresh(ctx *Context, name string, id IDInput, state *AsStartInstanceRefreshState, opts ...ResourceOption) (*AsStartInstanceRefresh, error)
public static AsStartInstanceRefresh Get(string name, Input<string> id, AsStartInstanceRefreshState? state, CustomResourceOptions? opts = null)
public static AsStartInstanceRefresh get(String name, Output<String> id, AsStartInstanceRefreshState state, CustomResourceOptions options)
resources: _: type: tencentcloud:AsStartInstanceRefresh get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- As
Start stringInstance Refresh Id - ID of the resource.
- Auto
Scaling stringGroup Id - Scaling group ID.
- Refresh
Mode string - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- Refresh
Settings AsStart Instance Refresh Refresh Settings - Refresh settings.
- Timeouts
As
Start Instance Refresh Timeouts
- As
Start stringInstance Refresh Id - ID of the resource.
- Auto
Scaling stringGroup Id - Scaling group ID.
- Refresh
Mode string - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- Refresh
Settings AsStart Instance Refresh Refresh Settings Args - Refresh settings.
- Timeouts
As
Start Instance Refresh Timeouts Args
- as
Start StringInstance Refresh Id - ID of the resource.
- auto
Scaling StringGroup Id - Scaling group ID.
- refresh
Mode String - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- refresh
Settings AsStart Instance Refresh Refresh Settings - Refresh settings.
- timeouts
As
Start Instance Refresh Timeouts
- as
Start stringInstance Refresh Id - ID of the resource.
- auto
Scaling stringGroup Id - Scaling group ID.
- refresh
Mode string - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- refresh
Settings AsStart Instance Refresh Refresh Settings - Refresh settings.
- timeouts
As
Start Instance Refresh Timeouts
- as_
start_ strinstance_ refresh_ id - ID of the resource.
- auto_
scaling_ strgroup_ id - Scaling group ID.
- refresh_
mode str - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- refresh_
settings AsStart Instance Refresh Refresh Settings Args - Refresh settings.
- timeouts
As
Start Instance Refresh Timeouts Args
- as
Start StringInstance Refresh Id - ID of the resource.
- auto
Scaling StringGroup Id - Scaling group ID.
- refresh
Mode String - Refresh mode, currently, only rolling updates are supported, with the default value being ROLLING_UPDATE_RESET.
- refresh
Settings Property Map - Refresh settings.
- timeouts Property Map
Supporting Types
AsStartInstanceRefreshRefreshSettings, AsStartInstanceRefreshRefreshSettingsArgs
- Rolling
Update AsSettings Start Instance Refresh Refresh Settings Rolling Update Settings - Rolling update settings parameters. RefreshMode is the rolling update. This parameter must be filled in.Note: This field may return null, indicating that no valid value can be obtained.
- Check
Instance boolTarget Health - Backend service health check status for instances, defaults to FALSE. This setting takes effect only for scaling groups bound with application load balancers. When enabled, if an instance fails the check after being refreshed, its load balancer port weight remains 0 and is marked as a refresh failure. Valid values: TRUE: Enable the check. FALSE: Do not enable the check.
- Rolling
Update AsSettings Start Instance Refresh Refresh Settings Rolling Update Settings - Rolling update settings parameters. RefreshMode is the rolling update. This parameter must be filled in.Note: This field may return null, indicating that no valid value can be obtained.
- Check
Instance boolTarget Health - Backend service health check status for instances, defaults to FALSE. This setting takes effect only for scaling groups bound with application load balancers. When enabled, if an instance fails the check after being refreshed, its load balancer port weight remains 0 and is marked as a refresh failure. Valid values: TRUE: Enable the check. FALSE: Do not enable the check.
- rolling
Update AsSettings Start Instance Refresh Refresh Settings Rolling Update Settings - Rolling update settings parameters. RefreshMode is the rolling update. This parameter must be filled in.Note: This field may return null, indicating that no valid value can be obtained.
- check
Instance BooleanTarget Health - Backend service health check status for instances, defaults to FALSE. This setting takes effect only for scaling groups bound with application load balancers. When enabled, if an instance fails the check after being refreshed, its load balancer port weight remains 0 and is marked as a refresh failure. Valid values: TRUE: Enable the check. FALSE: Do not enable the check.
- rolling
Update AsSettings Start Instance Refresh Refresh Settings Rolling Update Settings - Rolling update settings parameters. RefreshMode is the rolling update. This parameter must be filled in.Note: This field may return null, indicating that no valid value can be obtained.
- check
Instance booleanTarget Health - Backend service health check status for instances, defaults to FALSE. This setting takes effect only for scaling groups bound with application load balancers. When enabled, if an instance fails the check after being refreshed, its load balancer port weight remains 0 and is marked as a refresh failure. Valid values: TRUE: Enable the check. FALSE: Do not enable the check.
- rolling_
update_ Assettings Start Instance Refresh Refresh Settings Rolling Update Settings - Rolling update settings parameters. RefreshMode is the rolling update. This parameter must be filled in.Note: This field may return null, indicating that no valid value can be obtained.
- check_
instance_ booltarget_ health - Backend service health check status for instances, defaults to FALSE. This setting takes effect only for scaling groups bound with application load balancers. When enabled, if an instance fails the check after being refreshed, its load balancer port weight remains 0 and is marked as a refresh failure. Valid values: TRUE: Enable the check. FALSE: Do not enable the check.
- rolling
Update Property MapSettings - Rolling update settings parameters. RefreshMode is the rolling update. This parameter must be filled in.Note: This field may return null, indicating that no valid value can be obtained.
- check
Instance BooleanTarget Health - Backend service health check status for instances, defaults to FALSE. This setting takes effect only for scaling groups bound with application load balancers. When enabled, if an instance fails the check after being refreshed, its load balancer port weight remains 0 and is marked as a refresh failure. Valid values: TRUE: Enable the check. FALSE: Do not enable the check.
AsStartInstanceRefreshRefreshSettingsRollingUpdateSettings, AsStartInstanceRefreshRefreshSettingsRollingUpdateSettingsArgs
- Batch
Number double - Batch quantity. The batch quantity should be a positive integer greater than 0, but cannot exceed the total number of instances pending refresh.
- Batch
Pause string - Pause policy between batches. Default value: Automatic. Valid values: FIRST_BATCH_PAUSE: Pause after the first batch update completes. BATCH_INTERVAL_PAUSE: Pause between each batch update. AUTOMATIC: No pauses.
- Fail
Process string - Failure Handling Policy. The default value is
AUTO_PAUSE
. The values are as follows,AUTO_PAUSE
: Pause after refresh fails;AUTO_ROLLBACK
: Roll back after refresh fails;AUTO_CANCEL
: Cancel after refresh fails. - Max
Surge double - Maximum Extra Quantity. After setting this parameter, a batch of pay-as-you-go extra instances will be created according to the launch configuration before the rolling update starts, and the extra instances will be destroyed after the rolling update is completed.
- Batch
Number float64 - Batch quantity. The batch quantity should be a positive integer greater than 0, but cannot exceed the total number of instances pending refresh.
- Batch
Pause string - Pause policy between batches. Default value: Automatic. Valid values: FIRST_BATCH_PAUSE: Pause after the first batch update completes. BATCH_INTERVAL_PAUSE: Pause between each batch update. AUTOMATIC: No pauses.
- Fail
Process string - Failure Handling Policy. The default value is
AUTO_PAUSE
. The values are as follows,AUTO_PAUSE
: Pause after refresh fails;AUTO_ROLLBACK
: Roll back after refresh fails;AUTO_CANCEL
: Cancel after refresh fails. - Max
Surge float64 - Maximum Extra Quantity. After setting this parameter, a batch of pay-as-you-go extra instances will be created according to the launch configuration before the rolling update starts, and the extra instances will be destroyed after the rolling update is completed.
- batch
Number Double - Batch quantity. The batch quantity should be a positive integer greater than 0, but cannot exceed the total number of instances pending refresh.
- batch
Pause String - Pause policy between batches. Default value: Automatic. Valid values: FIRST_BATCH_PAUSE: Pause after the first batch update completes. BATCH_INTERVAL_PAUSE: Pause between each batch update. AUTOMATIC: No pauses.
- fail
Process String - Failure Handling Policy. The default value is
AUTO_PAUSE
. The values are as follows,AUTO_PAUSE
: Pause after refresh fails;AUTO_ROLLBACK
: Roll back after refresh fails;AUTO_CANCEL
: Cancel after refresh fails. - max
Surge Double - Maximum Extra Quantity. After setting this parameter, a batch of pay-as-you-go extra instances will be created according to the launch configuration before the rolling update starts, and the extra instances will be destroyed after the rolling update is completed.
- batch
Number number - Batch quantity. The batch quantity should be a positive integer greater than 0, but cannot exceed the total number of instances pending refresh.
- batch
Pause string - Pause policy between batches. Default value: Automatic. Valid values: FIRST_BATCH_PAUSE: Pause after the first batch update completes. BATCH_INTERVAL_PAUSE: Pause between each batch update. AUTOMATIC: No pauses.
- fail
Process string - Failure Handling Policy. The default value is
AUTO_PAUSE
. The values are as follows,AUTO_PAUSE
: Pause after refresh fails;AUTO_ROLLBACK
: Roll back after refresh fails;AUTO_CANCEL
: Cancel after refresh fails. - max
Surge number - Maximum Extra Quantity. After setting this parameter, a batch of pay-as-you-go extra instances will be created according to the launch configuration before the rolling update starts, and the extra instances will be destroyed after the rolling update is completed.
- batch_
number float - Batch quantity. The batch quantity should be a positive integer greater than 0, but cannot exceed the total number of instances pending refresh.
- batch_
pause str - Pause policy between batches. Default value: Automatic. Valid values: FIRST_BATCH_PAUSE: Pause after the first batch update completes. BATCH_INTERVAL_PAUSE: Pause between each batch update. AUTOMATIC: No pauses.
- fail_
process str - Failure Handling Policy. The default value is
AUTO_PAUSE
. The values are as follows,AUTO_PAUSE
: Pause after refresh fails;AUTO_ROLLBACK
: Roll back after refresh fails;AUTO_CANCEL
: Cancel after refresh fails. - max_
surge float - Maximum Extra Quantity. After setting this parameter, a batch of pay-as-you-go extra instances will be created according to the launch configuration before the rolling update starts, and the extra instances will be destroyed after the rolling update is completed.
- batch
Number Number - Batch quantity. The batch quantity should be a positive integer greater than 0, but cannot exceed the total number of instances pending refresh.
- batch
Pause String - Pause policy between batches. Default value: Automatic. Valid values: FIRST_BATCH_PAUSE: Pause after the first batch update completes. BATCH_INTERVAL_PAUSE: Pause between each batch update. AUTOMATIC: No pauses.
- fail
Process String - Failure Handling Policy. The default value is
AUTO_PAUSE
. The values are as follows,AUTO_PAUSE
: Pause after refresh fails;AUTO_ROLLBACK
: Roll back after refresh fails;AUTO_CANCEL
: Cancel after refresh fails. - max
Surge Number - Maximum Extra Quantity. After setting this parameter, a batch of pay-as-you-go extra instances will be created according to the launch configuration before the rolling update starts, and the extra instances will be destroyed after the rolling update is completed.
AsStartInstanceRefreshTimeouts, AsStartInstanceRefreshTimeoutsArgs
- Create string
- Create string
- create String
- create string
- create str
- create String
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.