tencentcloud.TseCngwStrategy
Explore with Pulumi AI
Provides a resource to create a tse cngw_strategy
NOTE: Please pay attention to the correctness of the cycle when modifying the
params
ofcron_config
, otherwise the modification will not be successful.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const cngwStrategy = new tencentcloud.TseCngwStrategy("cngwStrategy", {
config: {
behavior: {
scaleDown: {
policies: [{
periodSeconds: 9,
type: "Pods",
value: 1,
}],
selectPolicy: "Max",
stabilizationWindowSeconds: 301,
},
scaleUp: {
policies: [{
periodSeconds: 10,
type: "Pods",
value: 1,
}],
selectPolicy: "Max",
stabilizationWindowSeconds: 31,
},
},
maxReplicas: 2,
metrics: [{
resourceName: "cpu",
targetValue: 1,
type: "Resource",
}],
},
cronConfig: {
params: [{
crontab: "0 00 00 * * *",
period: "* * *",
startAt: "00:00",
targetReplicas: 2,
}],
},
description: "aaaaa",
gatewayId: "gateway-cf8c99c3",
strategyName: "test-cron",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
cngw_strategy = tencentcloud.TseCngwStrategy("cngwStrategy",
config={
"behavior": {
"scale_down": {
"policies": [{
"period_seconds": 9,
"type": "Pods",
"value": 1,
}],
"select_policy": "Max",
"stabilization_window_seconds": 301,
},
"scale_up": {
"policies": [{
"period_seconds": 10,
"type": "Pods",
"value": 1,
}],
"select_policy": "Max",
"stabilization_window_seconds": 31,
},
},
"max_replicas": 2,
"metrics": [{
"resource_name": "cpu",
"target_value": 1,
"type": "Resource",
}],
},
cron_config={
"params": [{
"crontab": "0 00 00 * * *",
"period": "* * *",
"start_at": "00:00",
"target_replicas": 2,
}],
},
description="aaaaa",
gateway_id="gateway-cf8c99c3",
strategy_name="test-cron")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewTseCngwStrategy(ctx, "cngwStrategy", &tencentcloud.TseCngwStrategyArgs{
Config: &tencentcloud.TseCngwStrategyConfigArgs{
Behavior: &tencentcloud.TseCngwStrategyConfigBehaviorArgs{
ScaleDown: &tencentcloud.TseCngwStrategyConfigBehaviorScaleDownArgs{
Policies: tencentcloud.TseCngwStrategyConfigBehaviorScaleDownPolicyArray{
&tencentcloud.TseCngwStrategyConfigBehaviorScaleDownPolicyArgs{
PeriodSeconds: pulumi.Float64(9),
Type: pulumi.String("Pods"),
Value: pulumi.Float64(1),
},
},
SelectPolicy: pulumi.String("Max"),
StabilizationWindowSeconds: pulumi.Float64(301),
},
ScaleUp: &tencentcloud.TseCngwStrategyConfigBehaviorScaleUpArgs{
Policies: tencentcloud.TseCngwStrategyConfigBehaviorScaleUpPolicyArray{
&tencentcloud.TseCngwStrategyConfigBehaviorScaleUpPolicyArgs{
PeriodSeconds: pulumi.Float64(10),
Type: pulumi.String("Pods"),
Value: pulumi.Float64(1),
},
},
SelectPolicy: pulumi.String("Max"),
StabilizationWindowSeconds: pulumi.Float64(31),
},
},
MaxReplicas: pulumi.Float64(2),
Metrics: tencentcloud.TseCngwStrategyConfigMetricArray{
&tencentcloud.TseCngwStrategyConfigMetricArgs{
ResourceName: pulumi.String("cpu"),
TargetValue: pulumi.Float64(1),
Type: pulumi.String("Resource"),
},
},
},
CronConfig: &tencentcloud.TseCngwStrategyCronConfigArgs{
Params: tencentcloud.TseCngwStrategyCronConfigParamArray{
&tencentcloud.TseCngwStrategyCronConfigParamArgs{
Crontab: pulumi.String("0 00 00 * * *"),
Period: pulumi.String("* * *"),
StartAt: pulumi.String("00:00"),
TargetReplicas: pulumi.Float64(2),
},
},
},
Description: pulumi.String("aaaaa"),
GatewayId: pulumi.String("gateway-cf8c99c3"),
StrategyName: pulumi.String("test-cron"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var cngwStrategy = new Tencentcloud.TseCngwStrategy("cngwStrategy", new()
{
Config = new Tencentcloud.Inputs.TseCngwStrategyConfigArgs
{
Behavior = new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorArgs
{
ScaleDown = new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorScaleDownArgs
{
Policies = new[]
{
new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorScaleDownPolicyArgs
{
PeriodSeconds = 9,
Type = "Pods",
Value = 1,
},
},
SelectPolicy = "Max",
StabilizationWindowSeconds = 301,
},
ScaleUp = new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorScaleUpArgs
{
Policies = new[]
{
new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorScaleUpPolicyArgs
{
PeriodSeconds = 10,
Type = "Pods",
Value = 1,
},
},
SelectPolicy = "Max",
StabilizationWindowSeconds = 31,
},
},
MaxReplicas = 2,
Metrics = new[]
{
new Tencentcloud.Inputs.TseCngwStrategyConfigMetricArgs
{
ResourceName = "cpu",
TargetValue = 1,
Type = "Resource",
},
},
},
CronConfig = new Tencentcloud.Inputs.TseCngwStrategyCronConfigArgs
{
Params = new[]
{
new Tencentcloud.Inputs.TseCngwStrategyCronConfigParamArgs
{
Crontab = "0 00 00 * * *",
Period = "* * *",
StartAt = "00:00",
TargetReplicas = 2,
},
},
},
Description = "aaaaa",
GatewayId = "gateway-cf8c99c3",
StrategyName = "test-cron",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TseCngwStrategy;
import com.pulumi.tencentcloud.TseCngwStrategyArgs;
import com.pulumi.tencentcloud.inputs.TseCngwStrategyConfigArgs;
import com.pulumi.tencentcloud.inputs.TseCngwStrategyConfigBehaviorArgs;
import com.pulumi.tencentcloud.inputs.TseCngwStrategyConfigBehaviorScaleDownArgs;
import com.pulumi.tencentcloud.inputs.TseCngwStrategyConfigBehaviorScaleUpArgs;
import com.pulumi.tencentcloud.inputs.TseCngwStrategyCronConfigArgs;
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 cngwStrategy = new TseCngwStrategy("cngwStrategy", TseCngwStrategyArgs.builder()
.config(TseCngwStrategyConfigArgs.builder()
.behavior(TseCngwStrategyConfigBehaviorArgs.builder()
.scaleDown(TseCngwStrategyConfigBehaviorScaleDownArgs.builder()
.policies(TseCngwStrategyConfigBehaviorScaleDownPolicyArgs.builder()
.periodSeconds(9)
.type("Pods")
.value(1)
.build())
.selectPolicy("Max")
.stabilizationWindowSeconds(301)
.build())
.scaleUp(TseCngwStrategyConfigBehaviorScaleUpArgs.builder()
.policies(TseCngwStrategyConfigBehaviorScaleUpPolicyArgs.builder()
.periodSeconds(10)
.type("Pods")
.value(1)
.build())
.selectPolicy("Max")
.stabilizationWindowSeconds(31)
.build())
.build())
.maxReplicas(2)
.metrics(TseCngwStrategyConfigMetricArgs.builder()
.resourceName("cpu")
.targetValue(1)
.type("Resource")
.build())
.build())
.cronConfig(TseCngwStrategyCronConfigArgs.builder()
.params(TseCngwStrategyCronConfigParamArgs.builder()
.crontab("0 00 00 * * *")
.period("* * *")
.startAt("00:00")
.targetReplicas(2)
.build())
.build())
.description("aaaaa")
.gatewayId("gateway-cf8c99c3")
.strategyName("test-cron")
.build());
}
}
resources:
cngwStrategy:
type: tencentcloud:TseCngwStrategy
properties:
config:
behavior:
scaleDown:
policies:
- periodSeconds: 9
type: Pods
value: 1
selectPolicy: Max
stabilizationWindowSeconds: 301
scaleUp:
policies:
- periodSeconds: 10
type: Pods
value: 1
selectPolicy: Max
stabilizationWindowSeconds: 31
maxReplicas: 2
metrics:
- resourceName: cpu
targetValue: 1
type: Resource
cronConfig:
params:
- crontab: 0 00 00 * * *
period: '* * *'
startAt: 00:00
targetReplicas: 2
description: aaaaa
gatewayId: gateway-cf8c99c3
strategyName: test-cron
Create TseCngwStrategy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TseCngwStrategy(name: string, args: TseCngwStrategyArgs, opts?: CustomResourceOptions);
@overload
def TseCngwStrategy(resource_name: str,
args: TseCngwStrategyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TseCngwStrategy(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
strategy_name: Optional[str] = None,
config: Optional[TseCngwStrategyConfigArgs] = None,
cron_config: Optional[TseCngwStrategyCronConfigArgs] = None,
description: Optional[str] = None,
tse_cngw_strategy_id: Optional[str] = None)
func NewTseCngwStrategy(ctx *Context, name string, args TseCngwStrategyArgs, opts ...ResourceOption) (*TseCngwStrategy, error)
public TseCngwStrategy(string name, TseCngwStrategyArgs args, CustomResourceOptions? opts = null)
public TseCngwStrategy(String name, TseCngwStrategyArgs args)
public TseCngwStrategy(String name, TseCngwStrategyArgs args, CustomResourceOptions options)
type: tencentcloud:TseCngwStrategy
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 TseCngwStrategyArgs
- 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 TseCngwStrategyArgs
- 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 TseCngwStrategyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TseCngwStrategyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TseCngwStrategyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TseCngwStrategy 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 TseCngwStrategy resource accepts the following input properties:
- Gateway
Id string - gateway ID.
- Strategy
Name string - strategy name, up to 20 characters.
- Config
Tse
Cngw Strategy Config - configuration of metric scaling.
- Cron
Config TseCngw Strategy Cron Config - configuration of timed scaling.
- Description string
- description information, up to 120 characters.
- Tse
Cngw stringStrategy Id - ID of the resource.
- Gateway
Id string - gateway ID.
- Strategy
Name string - strategy name, up to 20 characters.
- Config
Tse
Cngw Strategy Config Args - configuration of metric scaling.
- Cron
Config TseCngw Strategy Cron Config Args - configuration of timed scaling.
- Description string
- description information, up to 120 characters.
- Tse
Cngw stringStrategy Id - ID of the resource.
- gateway
Id String - gateway ID.
- strategy
Name String - strategy name, up to 20 characters.
- config
Tse
Cngw Strategy Config - configuration of metric scaling.
- cron
Config TseCngw Strategy Cron Config - configuration of timed scaling.
- description String
- description information, up to 120 characters.
- tse
Cngw StringStrategy Id - ID of the resource.
- gateway
Id string - gateway ID.
- strategy
Name string - strategy name, up to 20 characters.
- config
Tse
Cngw Strategy Config - configuration of metric scaling.
- cron
Config TseCngw Strategy Cron Config - configuration of timed scaling.
- description string
- description information, up to 120 characters.
- tse
Cngw stringStrategy Id - ID of the resource.
- gateway_
id str - gateway ID.
- strategy_
name str - strategy name, up to 20 characters.
- config
Tse
Cngw Strategy Config Args - configuration of metric scaling.
- cron_
config TseCngw Strategy Cron Config Args - configuration of timed scaling.
- description str
- description information, up to 120 characters.
- tse_
cngw_ strstrategy_ id - ID of the resource.
- gateway
Id String - gateway ID.
- strategy
Name String - strategy name, up to 20 characters.
- config Property Map
- configuration of metric scaling.
- cron
Config Property Map - configuration of timed scaling.
- description String
- description information, up to 120 characters.
- tse
Cngw StringStrategy Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TseCngwStrategy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- Id string
- The provider-assigned unique ID for this managed resource.
- Strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- id String
- The provider-assigned unique ID for this managed resource.
- strategy
Id String - strategy ID Note: This field may return null, indicating that a valid value is not available.
- id string
- The provider-assigned unique ID for this managed resource.
- strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- id str
- The provider-assigned unique ID for this managed resource.
- strategy_
id str - strategy ID Note: This field may return null, indicating that a valid value is not available.
- id String
- The provider-assigned unique ID for this managed resource.
- strategy
Id String - strategy ID Note: This field may return null, indicating that a valid value is not available.
Look up Existing TseCngwStrategy Resource
Get an existing TseCngwStrategy 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?: TseCngwStrategyState, opts?: CustomResourceOptions): TseCngwStrategy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config: Optional[TseCngwStrategyConfigArgs] = None,
cron_config: Optional[TseCngwStrategyCronConfigArgs] = None,
description: Optional[str] = None,
gateway_id: Optional[str] = None,
strategy_id: Optional[str] = None,
strategy_name: Optional[str] = None,
tse_cngw_strategy_id: Optional[str] = None) -> TseCngwStrategy
func GetTseCngwStrategy(ctx *Context, name string, id IDInput, state *TseCngwStrategyState, opts ...ResourceOption) (*TseCngwStrategy, error)
public static TseCngwStrategy Get(string name, Input<string> id, TseCngwStrategyState? state, CustomResourceOptions? opts = null)
public static TseCngwStrategy get(String name, Output<String> id, TseCngwStrategyState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TseCngwStrategy 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.
- Config
Tse
Cngw Strategy Config - configuration of metric scaling.
- Cron
Config TseCngw Strategy Cron Config - configuration of timed scaling.
- Description string
- description information, up to 120 characters.
- Gateway
Id string - gateway ID.
- Strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- Strategy
Name string - strategy name, up to 20 characters.
- Tse
Cngw stringStrategy Id - ID of the resource.
- Config
Tse
Cngw Strategy Config Args - configuration of metric scaling.
- Cron
Config TseCngw Strategy Cron Config Args - configuration of timed scaling.
- Description string
- description information, up to 120 characters.
- Gateway
Id string - gateway ID.
- Strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- Strategy
Name string - strategy name, up to 20 characters.
- Tse
Cngw stringStrategy Id - ID of the resource.
- config
Tse
Cngw Strategy Config - configuration of metric scaling.
- cron
Config TseCngw Strategy Cron Config - configuration of timed scaling.
- description String
- description information, up to 120 characters.
- gateway
Id String - gateway ID.
- strategy
Id String - strategy ID Note: This field may return null, indicating that a valid value is not available.
- strategy
Name String - strategy name, up to 20 characters.
- tse
Cngw StringStrategy Id - ID of the resource.
- config
Tse
Cngw Strategy Config - configuration of metric scaling.
- cron
Config TseCngw Strategy Cron Config - configuration of timed scaling.
- description string
- description information, up to 120 characters.
- gateway
Id string - gateway ID.
- strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- strategy
Name string - strategy name, up to 20 characters.
- tse
Cngw stringStrategy Id - ID of the resource.
- config
Tse
Cngw Strategy Config Args - configuration of metric scaling.
- cron_
config TseCngw Strategy Cron Config Args - configuration of timed scaling.
- description str
- description information, up to 120 characters.
- gateway_
id str - gateway ID.
- strategy_
id str - strategy ID Note: This field may return null, indicating that a valid value is not available.
- strategy_
name str - strategy name, up to 20 characters.
- tse_
cngw_ strstrategy_ id - ID of the resource.
- config Property Map
- configuration of metric scaling.
- cron
Config Property Map - configuration of timed scaling.
- description String
- description information, up to 120 characters.
- gateway
Id String - gateway ID.
- strategy
Id String - strategy ID Note: This field may return null, indicating that a valid value is not available.
- strategy
Name String - strategy name, up to 20 characters.
- tse
Cngw StringStrategy Id - ID of the resource.
Supporting Types
TseCngwStrategyConfig, TseCngwStrategyConfigArgs
- Behavior
Tse
Cngw Strategy Config Behavior - behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
- Create
Time string - create time Note: This field may return null, indicating that a valid value is not available.
- Max
Replicas double - max number of replica for metric scaling.
- Metrics
List<Tse
Cngw Strategy Config Metric> - metric list.
- Modify
Time string - modify time Note: This field may return null, indicating that a valid value is not available.
- Strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- Behavior
Tse
Cngw Strategy Config Behavior - behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
- Create
Time string - create time Note: This field may return null, indicating that a valid value is not available.
- Max
Replicas float64 - max number of replica for metric scaling.
- Metrics
[]Tse
Cngw Strategy Config Metric - metric list.
- Modify
Time string - modify time Note: This field may return null, indicating that a valid value is not available.
- Strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- behavior
Tse
Cngw Strategy Config Behavior - behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
- create
Time String - create time Note: This field may return null, indicating that a valid value is not available.
- max
Replicas Double - max number of replica for metric scaling.
- metrics
List<Tse
Cngw Strategy Config Metric> - metric list.
- modify
Time String - modify time Note: This field may return null, indicating that a valid value is not available.
- strategy
Id String - strategy ID Note: This field may return null, indicating that a valid value is not available.
- behavior
Tse
Cngw Strategy Config Behavior - behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
- create
Time string - create time Note: This field may return null, indicating that a valid value is not available.
- max
Replicas number - max number of replica for metric scaling.
- metrics
Tse
Cngw Strategy Config Metric[] - metric list.
- modify
Time string - modify time Note: This field may return null, indicating that a valid value is not available.
- strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- behavior
Tse
Cngw Strategy Config Behavior - behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
- create_
time str - create time Note: This field may return null, indicating that a valid value is not available.
- max_
replicas float - max number of replica for metric scaling.
- metrics
Sequence[Tse
Cngw Strategy Config Metric] - metric list.
- modify_
time str - modify time Note: This field may return null, indicating that a valid value is not available.
- strategy_
id str - strategy ID Note: This field may return null, indicating that a valid value is not available.
- behavior Property Map
- behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
- create
Time String - create time Note: This field may return null, indicating that a valid value is not available.
- max
Replicas Number - max number of replica for metric scaling.
- metrics List<Property Map>
- metric list.
- modify
Time String - modify time Note: This field may return null, indicating that a valid value is not available.
- strategy
Id String - strategy ID Note: This field may return null, indicating that a valid value is not available.
TseCngwStrategyConfigBehavior, TseCngwStrategyConfigBehaviorArgs
- Scale
Down TseCngw Strategy Config Behavior Scale Down - configuration of down scale Note: This field may return null, indicating that a valid value is not available.
- Scale
Up TseCngw Strategy Config Behavior Scale Up - configuration of up scale Note: This field may return null, indicating that a valid value is not available.
- Scale
Down TseCngw Strategy Config Behavior Scale Down - configuration of down scale Note: This field may return null, indicating that a valid value is not available.
- Scale
Up TseCngw Strategy Config Behavior Scale Up - configuration of up scale Note: This field may return null, indicating that a valid value is not available.
- scale
Down TseCngw Strategy Config Behavior Scale Down - configuration of down scale Note: This field may return null, indicating that a valid value is not available.
- scale
Up TseCngw Strategy Config Behavior Scale Up - configuration of up scale Note: This field may return null, indicating that a valid value is not available.
- scale
Down TseCngw Strategy Config Behavior Scale Down - configuration of down scale Note: This field may return null, indicating that a valid value is not available.
- scale
Up TseCngw Strategy Config Behavior Scale Up - configuration of up scale Note: This field may return null, indicating that a valid value is not available.
- scale_
down TseCngw Strategy Config Behavior Scale Down - configuration of down scale Note: This field may return null, indicating that a valid value is not available.
- scale_
up TseCngw Strategy Config Behavior Scale Up - configuration of up scale Note: This field may return null, indicating that a valid value is not available.
- scale
Down Property Map - configuration of down scale Note: This field may return null, indicating that a valid value is not available.
- scale
Up Property Map - configuration of up scale Note: This field may return null, indicating that a valid value is not available.
TseCngwStrategyConfigBehaviorScaleDown, TseCngwStrategyConfigBehaviorScaleDownArgs
- Policies
List<Tse
Cngw Strategy Config Behavior Scale Down Policy> - policies of scale down Note: This field may return null, indicating that a valid value is not available.
- Select
Policy string - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- Stabilization
Window doubleSeconds - stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
- Policies
[]Tse
Cngw Strategy Config Behavior Scale Down Policy - policies of scale down Note: This field may return null, indicating that a valid value is not available.
- Select
Policy string - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- Stabilization
Window float64Seconds - stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
- policies
List<Tse
Cngw Strategy Config Behavior Scale Down Policy> - policies of scale down Note: This field may return null, indicating that a valid value is not available.
- select
Policy String - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- stabilization
Window DoubleSeconds - stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
- policies
Tse
Cngw Strategy Config Behavior Scale Down Policy[] - policies of scale down Note: This field may return null, indicating that a valid value is not available.
- select
Policy string - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- stabilization
Window numberSeconds - stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
- policies
Sequence[Tse
Cngw Strategy Config Behavior Scale Down Policy] - policies of scale down Note: This field may return null, indicating that a valid value is not available.
- select_
policy str - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- stabilization_
window_ floatseconds - stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
- policies List<Property Map>
- policies of scale down Note: This field may return null, indicating that a valid value is not available.
- select
Policy String - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- stabilization
Window NumberSeconds - stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
TseCngwStrategyConfigBehaviorScaleDownPolicy, TseCngwStrategyConfigBehaviorScaleDownPolicyArgs
- Period
Seconds double - period of scale up Note: This field may return null, indicating that a valid value is not available.
- Type string
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- Value double
- value Note: This field may return null, indicating that a valid value is not available.
- Period
Seconds float64 - period of scale up Note: This field may return null, indicating that a valid value is not available.
- Type string
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- Value float64
- value Note: This field may return null, indicating that a valid value is not available.
- period
Seconds Double - period of scale up Note: This field may return null, indicating that a valid value is not available.
- type String
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- value Double
- value Note: This field may return null, indicating that a valid value is not available.
- period
Seconds number - period of scale up Note: This field may return null, indicating that a valid value is not available.
- type string
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- value number
- value Note: This field may return null, indicating that a valid value is not available.
- period_
seconds float - period of scale up Note: This field may return null, indicating that a valid value is not available.
- type str
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- value float
- value Note: This field may return null, indicating that a valid value is not available.
- period
Seconds Number - period of scale up Note: This field may return null, indicating that a valid value is not available.
- type String
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- value Number
- value Note: This field may return null, indicating that a valid value is not available.
TseCngwStrategyConfigBehaviorScaleUp, TseCngwStrategyConfigBehaviorScaleUpArgs
- Policies
List<Tse
Cngw Strategy Config Behavior Scale Up Policy> - policies of scale up Note: This field may return null, indicating that a valid value is not available.
- Select
Policy string - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- Stabilization
Window doubleSeconds - stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
- Policies
[]Tse
Cngw Strategy Config Behavior Scale Up Policy - policies of scale up Note: This field may return null, indicating that a valid value is not available.
- Select
Policy string - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- Stabilization
Window float64Seconds - stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
- policies
List<Tse
Cngw Strategy Config Behavior Scale Up Policy> - policies of scale up Note: This field may return null, indicating that a valid value is not available.
- select
Policy String - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- stabilization
Window DoubleSeconds - stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
- policies
Tse
Cngw Strategy Config Behavior Scale Up Policy[] - policies of scale up Note: This field may return null, indicating that a valid value is not available.
- select
Policy string - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- stabilization
Window numberSeconds - stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
- policies
Sequence[Tse
Cngw Strategy Config Behavior Scale Up Policy] - policies of scale up Note: This field may return null, indicating that a valid value is not available.
- select_
policy str - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- stabilization_
window_ floatseconds - stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
- policies List<Property Map>
- policies of scale up Note: This field may return null, indicating that a valid value is not available.
- select
Policy String - type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
- stabilization
Window NumberSeconds - stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
TseCngwStrategyConfigBehaviorScaleUpPolicy, TseCngwStrategyConfigBehaviorScaleUpPolicyArgs
- Period
Seconds double - period of scale up Note: This field may return null, indicating that a valid value is not available.
- Type string
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- Value double
- value Note: This field may return null, indicating that a valid value is not available.
- Period
Seconds float64 - period of scale up Note: This field may return null, indicating that a valid value is not available.
- Type string
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- Value float64
- value Note: This field may return null, indicating that a valid value is not available.
- period
Seconds Double - period of scale up Note: This field may return null, indicating that a valid value is not available.
- type String
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- value Double
- value Note: This field may return null, indicating that a valid value is not available.
- period
Seconds number - period of scale up Note: This field may return null, indicating that a valid value is not available.
- type string
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- value number
- value Note: This field may return null, indicating that a valid value is not available.
- period_
seconds float - period of scale up Note: This field may return null, indicating that a valid value is not available.
- type str
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- value float
- value Note: This field may return null, indicating that a valid value is not available.
- period
Seconds Number - period of scale up Note: This field may return null, indicating that a valid value is not available.
- type String
- type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
- value Number
- value Note: This field may return null, indicating that a valid value is not available.
TseCngwStrategyConfigMetric, TseCngwStrategyConfigMetricArgs
- Resource
Name string - metric name. Reference value:
- cpu
- memory Note: This field may return null, indicating that a valid value is not available.
- Target
Type string - target type of metric, currently only supports
Utilization
Note: This field may return null, indicating that a valid value is not available. - Target
Value double - target value of metric Note: This field may return null, indicating that a valid value is not available.
- Type string
- metric type. Deafault value
- Resource.
- Resource
Name string - metric name. Reference value:
- cpu
- memory Note: This field may return null, indicating that a valid value is not available.
- Target
Type string - target type of metric, currently only supports
Utilization
Note: This field may return null, indicating that a valid value is not available. - Target
Value float64 - target value of metric Note: This field may return null, indicating that a valid value is not available.
- Type string
- metric type. Deafault value
- Resource.
- resource
Name String - metric name. Reference value:
- cpu
- memory Note: This field may return null, indicating that a valid value is not available.
- target
Type String - target type of metric, currently only supports
Utilization
Note: This field may return null, indicating that a valid value is not available. - target
Value Double - target value of metric Note: This field may return null, indicating that a valid value is not available.
- type String
- metric type. Deafault value
- Resource.
- resource
Name string - metric name. Reference value:
- cpu
- memory Note: This field may return null, indicating that a valid value is not available.
- target
Type string - target type of metric, currently only supports
Utilization
Note: This field may return null, indicating that a valid value is not available. - target
Value number - target value of metric Note: This field may return null, indicating that a valid value is not available.
- type string
- metric type. Deafault value
- Resource.
- resource_
name str - metric name. Reference value:
- cpu
- memory Note: This field may return null, indicating that a valid value is not available.
- target_
type str - target type of metric, currently only supports
Utilization
Note: This field may return null, indicating that a valid value is not available. - target_
value float - target value of metric Note: This field may return null, indicating that a valid value is not available.
- type str
- metric type. Deafault value
- Resource.
- resource
Name String - metric name. Reference value:
- cpu
- memory Note: This field may return null, indicating that a valid value is not available.
- target
Type String - target type of metric, currently only supports
Utilization
Note: This field may return null, indicating that a valid value is not available. - target
Value Number - target value of metric Note: This field may return null, indicating that a valid value is not available.
- type String
- metric type. Deafault value
- Resource.
TseCngwStrategyCronConfig, TseCngwStrategyCronConfigArgs
- Params
List<Tse
Cngw Strategy Cron Config Param> - parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
- Strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- Params
[]Tse
Cngw Strategy Cron Config Param - parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
- Strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- params
List<Tse
Cngw Strategy Cron Config Param> - parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
- strategy
Id String - strategy ID Note: This field may return null, indicating that a valid value is not available.
- params
Tse
Cngw Strategy Cron Config Param[] - parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
- strategy
Id string - strategy ID Note: This field may return null, indicating that a valid value is not available.
- params
Sequence[Tse
Cngw Strategy Cron Config Param] - parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
- strategy_
id str - strategy ID Note: This field may return null, indicating that a valid value is not available.
- params List<Property Map>
- parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
- strategy
Id String - strategy ID Note: This field may return null, indicating that a valid value is not available.
TseCngwStrategyCronConfigParam, TseCngwStrategyCronConfigParamArgs
- Crontab string
- cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
- Period string
- period of timed scaling Note: This field may return null, indicating that a valid value is not available.
- Start
At string - start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
- Target
Replicas double - the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
- Crontab string
- cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
- Period string
- period of timed scaling Note: This field may return null, indicating that a valid value is not available.
- Start
At string - start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
- Target
Replicas float64 - the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
- crontab String
- cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
- period String
- period of timed scaling Note: This field may return null, indicating that a valid value is not available.
- start
At String - start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
- target
Replicas Double - the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
- crontab string
- cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
- period string
- period of timed scaling Note: This field may return null, indicating that a valid value is not available.
- start
At string - start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
- target
Replicas number - the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
- crontab str
- cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
- period str
- period of timed scaling Note: This field may return null, indicating that a valid value is not available.
- start_
at str - start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
- target_
replicas float - the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
- crontab String
- cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
- period String
- period of timed scaling Note: This field may return null, indicating that a valid value is not available.
- start
At String - start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
- target
Replicas Number - the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
Import
tse cngw_strategy can be imported using the id, e.g.
$ pulumi import tencentcloud:index/tseCngwStrategy:TseCngwStrategy cngw_strategy gateway-cf8c99c3#strategy-a6744ff8
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.