alicloud.sae.ApplicationScalingRule
Provides a Serverless App Engine (SAE) Application Scaling Rule resource.
For information about Serverless App Engine (SAE) Application Scaling Rule and how to use it, see What is Application Scaling Rule.
NOTE: Available in v1.159.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var defaultNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "default-NODELETING",
});
var defaultSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
});
var defaultNamespace = new AliCloud.Sae.Namespace("defaultNamespace", new()
{
NamespaceDescription = "example_value",
NamespaceId = "example_value",
NamespaceName = "example_value",
});
var defaultApplication = new AliCloud.Sae.Application("defaultApplication", new()
{
AppDescription = "example_value",
AppName = "example_value",
NamespaceId = defaultNamespace.NamespaceId,
ImageUrl = "registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
PackageType = "Image",
Jdk = "Open JDK 8",
VswitchId = defaultSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
Timezone = "Asia/Shanghai",
Replicas = 5,
Cpu = 500,
Memory = 2048,
});
var example = new AliCloud.Sae.ApplicationScalingRule("example", new()
{
AppId = defaultApplication.Id,
ScalingRuleName = "example-value",
ScalingRuleEnable = true,
ScalingRuleType = "mix",
ScalingRuleTimer = new AliCloud.Sae.Inputs.ApplicationScalingRuleScalingRuleTimerArgs
{
BeginDate = "2022-02-25",
EndDate = "2022-03-25",
Period = "* * *",
Schedules = new[]
{
new AliCloud.Sae.Inputs.ApplicationScalingRuleScalingRuleTimerScheduleArgs
{
AtTime = "08:00",
MaxReplicas = 10,
MinReplicas = 3,
},
new AliCloud.Sae.Inputs.ApplicationScalingRuleScalingRuleTimerScheduleArgs
{
AtTime = "20:00",
MaxReplicas = 50,
MinReplicas = 3,
},
},
},
ScalingRuleMetric = new AliCloud.Sae.Inputs.ApplicationScalingRuleScalingRuleMetricArgs
{
MaxReplicas = 50,
MinReplicas = 3,
Metrics = new[]
{
new AliCloud.Sae.Inputs.ApplicationScalingRuleScalingRuleMetricMetricArgs
{
MetricType = "CPU",
MetricTargetAverageUtilization = 20,
},
new AliCloud.Sae.Inputs.ApplicationScalingRuleScalingRuleMetricMetricArgs
{
MetricType = "MEMORY",
MetricTargetAverageUtilization = 30,
},
new AliCloud.Sae.Inputs.ApplicationScalingRuleScalingRuleMetricMetricArgs
{
MetricType = "tcpActiveConn",
MetricTargetAverageUtilization = 20,
},
},
ScaleUpRules = new AliCloud.Sae.Inputs.ApplicationScalingRuleScalingRuleMetricScaleUpRulesArgs
{
Step = 10,
Disabled = false,
StabilizationWindowSeconds = 0,
},
ScaleDownRules = new AliCloud.Sae.Inputs.ApplicationScalingRuleScalingRuleMetricScaleDownRulesArgs
{
Step = 10,
Disabled = false,
StabilizationWindowSeconds = 10,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("default-NODELETING"),
}, nil)
if err != nil {
return err
}
defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(defaultNetworks.Ids[0]),
}, nil)
if err != nil {
return err
}
defaultNamespace, err := sae.NewNamespace(ctx, "defaultNamespace", &sae.NamespaceArgs{
NamespaceDescription: pulumi.String("example_value"),
NamespaceId: pulumi.String("example_value"),
NamespaceName: pulumi.String("example_value"),
})
if err != nil {
return err
}
defaultApplication, err := sae.NewApplication(ctx, "defaultApplication", &sae.ApplicationArgs{
AppDescription: pulumi.String("example_value"),
AppName: pulumi.String("example_value"),
NamespaceId: defaultNamespace.NamespaceId,
ImageUrl: pulumi.String("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5"),
PackageType: pulumi.String("Image"),
Jdk: pulumi.String("Open JDK 8"),
VswitchId: *pulumi.String(defaultSwitches.Ids[0]),
VpcId: *pulumi.String(defaultNetworks.Ids[0]),
Timezone: pulumi.String("Asia/Shanghai"),
Replicas: pulumi.Int(5),
Cpu: pulumi.Int(500),
Memory: pulumi.Int(2048),
})
if err != nil {
return err
}
_, err = sae.NewApplicationScalingRule(ctx, "example", &sae.ApplicationScalingRuleArgs{
AppId: defaultApplication.ID(),
ScalingRuleName: pulumi.String("example-value"),
ScalingRuleEnable: pulumi.Bool(true),
ScalingRuleType: pulumi.String("mix"),
ScalingRuleTimer: &sae.ApplicationScalingRuleScalingRuleTimerArgs{
BeginDate: pulumi.String("2022-02-25"),
EndDate: pulumi.String("2022-03-25"),
Period: pulumi.String("* * *"),
Schedules: sae.ApplicationScalingRuleScalingRuleTimerScheduleArray{
&sae.ApplicationScalingRuleScalingRuleTimerScheduleArgs{
AtTime: pulumi.String("08:00"),
MaxReplicas: pulumi.Int(10),
MinReplicas: pulumi.Int(3),
},
&sae.ApplicationScalingRuleScalingRuleTimerScheduleArgs{
AtTime: pulumi.String("20:00"),
MaxReplicas: pulumi.Int(50),
MinReplicas: pulumi.Int(3),
},
},
},
ScalingRuleMetric: &sae.ApplicationScalingRuleScalingRuleMetricArgs{
MaxReplicas: pulumi.Int(50),
MinReplicas: pulumi.Int(3),
Metrics: sae.ApplicationScalingRuleScalingRuleMetricMetricArray{
&sae.ApplicationScalingRuleScalingRuleMetricMetricArgs{
MetricType: pulumi.String("CPU"),
MetricTargetAverageUtilization: pulumi.Int(20),
},
&sae.ApplicationScalingRuleScalingRuleMetricMetricArgs{
MetricType: pulumi.String("MEMORY"),
MetricTargetAverageUtilization: pulumi.Int(30),
},
&sae.ApplicationScalingRuleScalingRuleMetricMetricArgs{
MetricType: pulumi.String("tcpActiveConn"),
MetricTargetAverageUtilization: pulumi.Int(20),
},
},
ScaleUpRules: &sae.ApplicationScalingRuleScalingRuleMetricScaleUpRulesArgs{
Step: pulumi.Int(10),
Disabled: pulumi.Bool(false),
StabilizationWindowSeconds: pulumi.Int(0),
},
ScaleDownRules: &sae.ApplicationScalingRuleScalingRuleMetricScaleDownRulesArgs{
Step: pulumi.Int(10),
Disabled: pulumi.Bool(false),
StabilizationWindowSeconds: pulumi.Int(10),
},
},
})
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.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.sae.Namespace;
import com.pulumi.alicloud.sae.NamespaceArgs;
import com.pulumi.alicloud.sae.Application;
import com.pulumi.alicloud.sae.ApplicationArgs;
import com.pulumi.alicloud.sae.ApplicationScalingRule;
import com.pulumi.alicloud.sae.ApplicationScalingRuleArgs;
import com.pulumi.alicloud.sae.inputs.ApplicationScalingRuleScalingRuleTimerArgs;
import com.pulumi.alicloud.sae.inputs.ApplicationScalingRuleScalingRuleMetricArgs;
import com.pulumi.alicloud.sae.inputs.ApplicationScalingRuleScalingRuleMetricScaleUpRulesArgs;
import com.pulumi.alicloud.sae.inputs.ApplicationScalingRuleScalingRuleMetricScaleDownRulesArgs;
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) {
final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NODELETING")
.build());
final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.build());
var defaultNamespace = new Namespace("defaultNamespace", NamespaceArgs.builder()
.namespaceDescription("example_value")
.namespaceId("example_value")
.namespaceName("example_value")
.build());
var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()
.appDescription("example_value")
.appName("example_value")
.namespaceId(defaultNamespace.namespaceId())
.imageUrl("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5")
.packageType("Image")
.jdk("Open JDK 8")
.vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.timezone("Asia/Shanghai")
.replicas("5")
.cpu("500")
.memory("2048")
.build());
var example = new ApplicationScalingRule("example", ApplicationScalingRuleArgs.builder()
.appId(defaultApplication.id())
.scalingRuleName("example-value")
.scalingRuleEnable(true)
.scalingRuleType("mix")
.scalingRuleTimer(ApplicationScalingRuleScalingRuleTimerArgs.builder()
.beginDate("2022-02-25")
.endDate("2022-03-25")
.period("* * *")
.schedules(
ApplicationScalingRuleScalingRuleTimerScheduleArgs.builder()
.atTime("08:00")
.maxReplicas(10)
.minReplicas(3)
.build(),
ApplicationScalingRuleScalingRuleTimerScheduleArgs.builder()
.atTime("20:00")
.maxReplicas(50)
.minReplicas(3)
.build())
.build())
.scalingRuleMetric(ApplicationScalingRuleScalingRuleMetricArgs.builder()
.maxReplicas(50)
.minReplicas(3)
.metrics(
ApplicationScalingRuleScalingRuleMetricMetricArgs.builder()
.metricType("CPU")
.metricTargetAverageUtilization(20)
.build(),
ApplicationScalingRuleScalingRuleMetricMetricArgs.builder()
.metricType("MEMORY")
.metricTargetAverageUtilization(30)
.build(),
ApplicationScalingRuleScalingRuleMetricMetricArgs.builder()
.metricType("tcpActiveConn")
.metricTargetAverageUtilization(20)
.build())
.scaleUpRules(ApplicationScalingRuleScalingRuleMetricScaleUpRulesArgs.builder()
.step(10)
.disabled(false)
.stabilizationWindowSeconds(0)
.build())
.scaleDownRules(ApplicationScalingRuleScalingRuleMetricScaleDownRulesArgs.builder()
.step(10)
.disabled(false)
.stabilizationWindowSeconds(10)
.build())
.build())
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0])
default_namespace = alicloud.sae.Namespace("defaultNamespace",
namespace_description="example_value",
namespace_id="example_value",
namespace_name="example_value")
default_application = alicloud.sae.Application("defaultApplication",
app_description="example_value",
app_name="example_value",
namespace_id=default_namespace.namespace_id,
image_url="registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
package_type="Image",
jdk="Open JDK 8",
vswitch_id=default_switches.ids[0],
vpc_id=default_networks.ids[0],
timezone="Asia/Shanghai",
replicas=5,
cpu=500,
memory=2048)
example = alicloud.sae.ApplicationScalingRule("example",
app_id=default_application.id,
scaling_rule_name="example-value",
scaling_rule_enable=True,
scaling_rule_type="mix",
scaling_rule_timer=alicloud.sae.ApplicationScalingRuleScalingRuleTimerArgs(
begin_date="2022-02-25",
end_date="2022-03-25",
period="* * *",
schedules=[
alicloud.sae.ApplicationScalingRuleScalingRuleTimerScheduleArgs(
at_time="08:00",
max_replicas=10,
min_replicas=3,
),
alicloud.sae.ApplicationScalingRuleScalingRuleTimerScheduleArgs(
at_time="20:00",
max_replicas=50,
min_replicas=3,
),
],
),
scaling_rule_metric=alicloud.sae.ApplicationScalingRuleScalingRuleMetricArgs(
max_replicas=50,
min_replicas=3,
metrics=[
alicloud.sae.ApplicationScalingRuleScalingRuleMetricMetricArgs(
metric_type="CPU",
metric_target_average_utilization=20,
),
alicloud.sae.ApplicationScalingRuleScalingRuleMetricMetricArgs(
metric_type="MEMORY",
metric_target_average_utilization=30,
),
alicloud.sae.ApplicationScalingRuleScalingRuleMetricMetricArgs(
metric_type="tcpActiveConn",
metric_target_average_utilization=20,
),
],
scale_up_rules=alicloud.sae.ApplicationScalingRuleScalingRuleMetricScaleUpRulesArgs(
step=10,
disabled=False,
stabilization_window_seconds=0,
),
scale_down_rules=alicloud.sae.ApplicationScalingRuleScalingRuleMetricScaleDownRulesArgs(
step=10,
disabled=False,
stabilization_window_seconds=10,
),
))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultNetworks = alicloud.vpc.getNetworks({
nameRegex: "default-NODELETING",
});
const defaultSwitches = defaultNetworks.then(defaultNetworks => alicloud.vpc.getSwitches({
vpcId: defaultNetworks.ids?.[0],
}));
const defaultNamespace = new alicloud.sae.Namespace("defaultNamespace", {
namespaceDescription: "example_value",
namespaceId: "example_value",
namespaceName: "example_value",
});
const defaultApplication = new alicloud.sae.Application("defaultApplication", {
appDescription: "example_value",
appName: "example_value",
namespaceId: defaultNamespace.namespaceId,
imageUrl: "registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
packageType: "Image",
jdk: "Open JDK 8",
vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0]),
timezone: "Asia/Shanghai",
replicas: 5,
cpu: 500,
memory: 2048,
});
const example = new alicloud.sae.ApplicationScalingRule("example", {
appId: defaultApplication.id,
scalingRuleName: "example-value",
scalingRuleEnable: true,
scalingRuleType: "mix",
scalingRuleTimer: {
beginDate: "2022-02-25",
endDate: "2022-03-25",
period: "* * *",
schedules: [
{
atTime: "08:00",
maxReplicas: 10,
minReplicas: 3,
},
{
atTime: "20:00",
maxReplicas: 50,
minReplicas: 3,
},
],
},
scalingRuleMetric: {
maxReplicas: 50,
minReplicas: 3,
metrics: [
{
metricType: "CPU",
metricTargetAverageUtilization: 20,
},
{
metricType: "MEMORY",
metricTargetAverageUtilization: 30,
},
{
metricType: "tcpActiveConn",
metricTargetAverageUtilization: 20,
},
],
scaleUpRules: {
step: 10,
disabled: false,
stabilizationWindowSeconds: 0,
},
scaleDownRules: {
step: 10,
disabled: false,
stabilizationWindowSeconds: 10,
},
},
});
resources:
defaultNamespace:
type: alicloud:sae:Namespace
properties:
namespaceDescription: example_value
namespaceId: example_value
namespaceName: example_value
defaultApplication:
type: alicloud:sae:Application
properties:
appDescription: example_value
appName: example_value
namespaceId: ${defaultNamespace.namespaceId}
imageUrl: registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5
packageType: Image
jdk: Open JDK 8
vswitchId: ${defaultSwitches.ids[0]}
vpcId: ${defaultNetworks.ids[0]}
timezone: Asia/Shanghai
replicas: '5'
cpu: '500'
memory: '2048'
example:
type: alicloud:sae:ApplicationScalingRule
properties:
appId: ${defaultApplication.id}
scalingRuleName: example-value
scalingRuleEnable: true
scalingRuleType: mix
scalingRuleTimer:
beginDate: 2022-02-25
endDate: 2022-03-25
period: '* * *'
schedules:
- atTime: 08:00
maxReplicas: 10
minReplicas: 3
- atTime: 20:00
maxReplicas: 50
minReplicas: 3
scalingRuleMetric:
maxReplicas: 50
minReplicas: 3
metrics:
- metricType: CPU
metricTargetAverageUtilization: 20
- metricType: MEMORY
metricTargetAverageUtilization: 30
- metricType: tcpActiveConn
metricTargetAverageUtilization: 20
scaleUpRules:
step: 10
disabled: false
stabilizationWindowSeconds: 0
scaleDownRules:
step: 10
disabled: false
stabilizationWindowSeconds: 10
variables:
defaultNetworks:
fn::invoke:
Function: alicloud:vpc:getNetworks
Arguments:
nameRegex: default-NODELETING
defaultSwitches:
fn::invoke:
Function: alicloud:vpc:getSwitches
Arguments:
vpcId: ${defaultNetworks.ids[0]}
Create ApplicationScalingRule Resource
new ApplicationScalingRule(name: string, args: ApplicationScalingRuleArgs, opts?: CustomResourceOptions);
@overload
def ApplicationScalingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
min_ready_instance_ratio: Optional[int] = None,
min_ready_instances: Optional[int] = None,
scaling_rule_enable: Optional[bool] = None,
scaling_rule_metric: Optional[ApplicationScalingRuleScalingRuleMetricArgs] = None,
scaling_rule_name: Optional[str] = None,
scaling_rule_timer: Optional[ApplicationScalingRuleScalingRuleTimerArgs] = None,
scaling_rule_type: Optional[str] = None)
@overload
def ApplicationScalingRule(resource_name: str,
args: ApplicationScalingRuleArgs,
opts: Optional[ResourceOptions] = None)
func NewApplicationScalingRule(ctx *Context, name string, args ApplicationScalingRuleArgs, opts ...ResourceOption) (*ApplicationScalingRule, error)
public ApplicationScalingRule(string name, ApplicationScalingRuleArgs args, CustomResourceOptions? opts = null)
public ApplicationScalingRule(String name, ApplicationScalingRuleArgs args)
public ApplicationScalingRule(String name, ApplicationScalingRuleArgs args, CustomResourceOptions options)
type: alicloud:sae:ApplicationScalingRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationScalingRuleArgs
- 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 ApplicationScalingRuleArgs
- 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 ApplicationScalingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationScalingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationScalingRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ApplicationScalingRule 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 ApplicationScalingRule resource accepts the following input properties:
- App
Id string Application ID.
- Scaling
Rule stringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- Scaling
Rule stringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.- Min
Ready intInstance Ratio The min ready instance ratio.
- Min
Ready intInstances The min ready instances.
- Scaling
Rule boolEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- Scaling
Rule Pulumi.Metric Ali Cloud. Sae. Inputs. Application Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- Scaling
Rule Pulumi.Timer Ali Cloud. Sae. Inputs. Application Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.
- App
Id string Application ID.
- Scaling
Rule stringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- Scaling
Rule stringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.- Min
Ready intInstance Ratio The min ready instance ratio.
- Min
Ready intInstances The min ready instances.
- Scaling
Rule boolEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- Scaling
Rule ApplicationMetric Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- Scaling
Rule ApplicationTimer Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.
- app
Id String Application ID.
- scaling
Rule StringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- scaling
Rule StringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.- min
Ready IntegerInstance Ratio The min ready instance ratio.
- min
Ready IntegerInstances The min ready instances.
- scaling
Rule BooleanEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- scaling
Rule ApplicationMetric Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- scaling
Rule ApplicationTimer Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.
- app
Id string Application ID.
- scaling
Rule stringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- scaling
Rule stringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.- min
Ready numberInstance Ratio The min ready instance ratio.
- min
Ready numberInstances The min ready instances.
- scaling
Rule booleanEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- scaling
Rule ApplicationMetric Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- scaling
Rule ApplicationTimer Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.
- app_
id str Application ID.
- scaling_
rule_ strname The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- scaling_
rule_ strtype Flexible strategy type. Valid values:
mix
,timing
andmetric
.- min_
ready_ intinstance_ ratio The min ready instance ratio.
- min_
ready_ intinstances The min ready instances.
- scaling_
rule_ boolenable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- scaling_
rule_ Applicationmetric Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- scaling_
rule_ Applicationtimer Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.
- app
Id String Application ID.
- scaling
Rule StringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- scaling
Rule StringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.- min
Ready NumberInstance Ratio The min ready instance ratio.
- min
Ready NumberInstances The min ready instances.
- scaling
Rule BooleanEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- scaling
Rule Property MapMetric Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- scaling
Rule Property MapTimer Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplicationScalingRule 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 ApplicationScalingRule Resource
Get an existing ApplicationScalingRule 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?: ApplicationScalingRuleState, opts?: CustomResourceOptions): ApplicationScalingRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
min_ready_instance_ratio: Optional[int] = None,
min_ready_instances: Optional[int] = None,
scaling_rule_enable: Optional[bool] = None,
scaling_rule_metric: Optional[ApplicationScalingRuleScalingRuleMetricArgs] = None,
scaling_rule_name: Optional[str] = None,
scaling_rule_timer: Optional[ApplicationScalingRuleScalingRuleTimerArgs] = None,
scaling_rule_type: Optional[str] = None) -> ApplicationScalingRule
func GetApplicationScalingRule(ctx *Context, name string, id IDInput, state *ApplicationScalingRuleState, opts ...ResourceOption) (*ApplicationScalingRule, error)
public static ApplicationScalingRule Get(string name, Input<string> id, ApplicationScalingRuleState? state, CustomResourceOptions? opts = null)
public static ApplicationScalingRule get(String name, Output<String> id, ApplicationScalingRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- App
Id string Application ID.
- Min
Ready intInstance Ratio The min ready instance ratio.
- Min
Ready intInstances The min ready instances.
- Scaling
Rule boolEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- Scaling
Rule Pulumi.Metric Ali Cloud. Sae. Inputs. Application Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- Scaling
Rule stringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- Scaling
Rule Pulumi.Timer Ali Cloud. Sae. Inputs. Application Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.- Scaling
Rule stringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.
- App
Id string Application ID.
- Min
Ready intInstance Ratio The min ready instance ratio.
- Min
Ready intInstances The min ready instances.
- Scaling
Rule boolEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- Scaling
Rule ApplicationMetric Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- Scaling
Rule stringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- Scaling
Rule ApplicationTimer Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.- Scaling
Rule stringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.
- app
Id String Application ID.
- min
Ready IntegerInstance Ratio The min ready instance ratio.
- min
Ready IntegerInstances The min ready instances.
- scaling
Rule BooleanEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- scaling
Rule ApplicationMetric Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- scaling
Rule StringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- scaling
Rule ApplicationTimer Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.- scaling
Rule StringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.
- app
Id string Application ID.
- min
Ready numberInstance Ratio The min ready instance ratio.
- min
Ready numberInstances The min ready instances.
- scaling
Rule booleanEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- scaling
Rule ApplicationMetric Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- scaling
Rule stringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- scaling
Rule ApplicationTimer Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.- scaling
Rule stringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.
- app_
id str Application ID.
- min_
ready_ intinstance_ ratio The min ready instance ratio.
- min_
ready_ intinstances The min ready instances.
- scaling_
rule_ boolenable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- scaling_
rule_ Applicationmetric Scaling Rule Scaling Rule Metric Args Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- scaling_
rule_ strname The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- scaling_
rule_ Applicationtimer Scaling Rule Scaling Rule Timer Args Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.- scaling_
rule_ strtype Flexible strategy type. Valid values:
mix
,timing
andmetric
.
- app
Id String Application ID.
- min
Ready NumberInstance Ratio The min ready instance ratio.
- min
Ready NumberInstances The min ready instances.
- scaling
Rule BooleanEnable True whether the auto scaling policy is enabled. The value description is as follows: true: enabled state. false: disabled status. Valid values:
false
,true
.- scaling
Rule Property MapMetric Monitor the configuration of the indicator elasticity strategy. See the following
Block scaling_rule_metric
.- scaling
Rule StringName The name of a custom elastic scaling policy. In the application, the policy name cannot be repeated. It must start with a lowercase letter, and can only contain lowercase letters, numbers, and dashes (-), and no more than 32 characters. After the scaling policy is successfully created, the policy name cannot be modified.
- scaling
Rule Property MapTimer Configuration of Timing Resilient Policies. See the following
Block scaling_rule_timer
.- scaling
Rule StringType Flexible strategy type. Valid values:
mix
,timing
andmetric
.
Supporting Types
ApplicationScalingRuleScalingRuleMetric
- Max
Replicas int Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- Metrics
List<Pulumi.
Ali Cloud. Sae. Inputs. Application Scaling Rule Scaling Rule Metric Metric> Indicator rule configuration. See the following
Block metrics
.- Min
Replicas int Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- Scale
Down Pulumi.Rules Ali Cloud. Sae. Inputs. Application Scaling Rule Scaling Rule Metric Scale Down Rules Apply shrink rules. See the following
Block scale_down_rules
.- Scale
Up Pulumi.Rules Ali Cloud. Sae. Inputs. Application Scaling Rule Scaling Rule Metric Scale Up Rules Apply expansion rules. See the following
Block scale_up_rules
.
- Max
Replicas int Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- Metrics
[]Application
Scaling Rule Scaling Rule Metric Metric Indicator rule configuration. See the following
Block metrics
.- Min
Replicas int Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- Scale
Down ApplicationRules Scaling Rule Scaling Rule Metric Scale Down Rules Apply shrink rules. See the following
Block scale_down_rules
.- Scale
Up ApplicationRules Scaling Rule Scaling Rule Metric Scale Up Rules Apply expansion rules. See the following
Block scale_up_rules
.
- max
Replicas Integer Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- metrics
List<Application
Scaling Rule Scaling Rule Metric Metric> Indicator rule configuration. See the following
Block metrics
.- min
Replicas Integer Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- scale
Down ApplicationRules Scaling Rule Scaling Rule Metric Scale Down Rules Apply shrink rules. See the following
Block scale_down_rules
.- scale
Up ApplicationRules Scaling Rule Scaling Rule Metric Scale Up Rules Apply expansion rules. See the following
Block scale_up_rules
.
- max
Replicas number Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- metrics
Application
Scaling Rule Scaling Rule Metric Metric[] Indicator rule configuration. See the following
Block metrics
.- min
Replicas number Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- scale
Down ApplicationRules Scaling Rule Scaling Rule Metric Scale Down Rules Apply shrink rules. See the following
Block scale_down_rules
.- scale
Up ApplicationRules Scaling Rule Scaling Rule Metric Scale Up Rules Apply expansion rules. See the following
Block scale_up_rules
.
- max_
replicas int Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- metrics
Sequence[Application
Scaling Rule Scaling Rule Metric Metric] Indicator rule configuration. See the following
Block metrics
.- min_
replicas int Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- scale_
down_ Applicationrules Scaling Rule Scaling Rule Metric Scale Down Rules Apply shrink rules. See the following
Block scale_down_rules
.- scale_
up_ Applicationrules Scaling Rule Scaling Rule Metric Scale Up Rules Apply expansion rules. See the following
Block scale_up_rules
.
- max
Replicas Number Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- metrics List<Property Map>
Indicator rule configuration. See the following
Block metrics
.- min
Replicas Number Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- scale
Down Property MapRules Apply shrink rules. See the following
Block scale_down_rules
.- scale
Up Property MapRules Apply expansion rules. See the following
Block scale_up_rules
.
ApplicationScalingRuleScalingRuleMetricMetric
- Metric
Target intAverage Utilization According to different
metric_type
, set the target value of the corresponding monitoring index.- Metric
Type string Monitoring indicator trigger condition. Valid values:
CPU
,MEMORY
,tcpActiveConn
,SLB_QPS
andSLB_RT
. The values are described as follows:- CPU: CPU usage.
- MEMORY: MEMORY usage.
- tcpActiveConn: the average number of TCP active connections for a single instance in 30 seconds.
- SLB_QPS: the average public network SLB QPS of a single instance within 15 seconds.
- SLB_RT: the average response time of public network SLB within 15 seconds.
- Metric
Target intAverage Utilization According to different
metric_type
, set the target value of the corresponding monitoring index.- Metric
Type string Monitoring indicator trigger condition. Valid values:
CPU
,MEMORY
,tcpActiveConn
,SLB_QPS
andSLB_RT
. The values are described as follows:- CPU: CPU usage.
- MEMORY: MEMORY usage.
- tcpActiveConn: the average number of TCP active connections for a single instance in 30 seconds.
- SLB_QPS: the average public network SLB QPS of a single instance within 15 seconds.
- SLB_RT: the average response time of public network SLB within 15 seconds.
- metric
Target IntegerAverage Utilization According to different
metric_type
, set the target value of the corresponding monitoring index.- metric
Type String Monitoring indicator trigger condition. Valid values:
CPU
,MEMORY
,tcpActiveConn
,SLB_QPS
andSLB_RT
. The values are described as follows:- CPU: CPU usage.
- MEMORY: MEMORY usage.
- tcpActiveConn: the average number of TCP active connections for a single instance in 30 seconds.
- SLB_QPS: the average public network SLB QPS of a single instance within 15 seconds.
- SLB_RT: the average response time of public network SLB within 15 seconds.
- metric
Target numberAverage Utilization According to different
metric_type
, set the target value of the corresponding monitoring index.- metric
Type string Monitoring indicator trigger condition. Valid values:
CPU
,MEMORY
,tcpActiveConn
,SLB_QPS
andSLB_RT
. The values are described as follows:- CPU: CPU usage.
- MEMORY: MEMORY usage.
- tcpActiveConn: the average number of TCP active connections for a single instance in 30 seconds.
- SLB_QPS: the average public network SLB QPS of a single instance within 15 seconds.
- SLB_RT: the average response time of public network SLB within 15 seconds.
- metric_
target_ intaverage_ utilization According to different
metric_type
, set the target value of the corresponding monitoring index.- metric_
type str Monitoring indicator trigger condition. Valid values:
CPU
,MEMORY
,tcpActiveConn
,SLB_QPS
andSLB_RT
. The values are described as follows:- CPU: CPU usage.
- MEMORY: MEMORY usage.
- tcpActiveConn: the average number of TCP active connections for a single instance in 30 seconds.
- SLB_QPS: the average public network SLB QPS of a single instance within 15 seconds.
- SLB_RT: the average response time of public network SLB within 15 seconds.
- metric
Target NumberAverage Utilization According to different
metric_type
, set the target value of the corresponding monitoring index.- metric
Type String Monitoring indicator trigger condition. Valid values:
CPU
,MEMORY
,tcpActiveConn
,SLB_QPS
andSLB_RT
. The values are described as follows:- CPU: CPU usage.
- MEMORY: MEMORY usage.
- tcpActiveConn: the average number of TCP active connections for a single instance in 30 seconds.
- SLB_QPS: the average public network SLB QPS of a single instance within 15 seconds.
- SLB_RT: the average response time of public network SLB within 15 seconds.
ApplicationScalingRuleScalingRuleMetricScaleDownRules
- Disabled bool
Whether shrinkage is prohibited.
- Stabilization
Window intSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- Step int
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- Disabled bool
Whether shrinkage is prohibited.
- Stabilization
Window intSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- Step int
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- disabled Boolean
Whether shrinkage is prohibited.
- stabilization
Window IntegerSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- step Integer
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- disabled boolean
Whether shrinkage is prohibited.
- stabilization
Window numberSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- step number
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- disabled bool
Whether shrinkage is prohibited.
- stabilization_
window_ intseconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- step int
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- disabled Boolean
Whether shrinkage is prohibited.
- stabilization
Window NumberSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- step Number
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
ApplicationScalingRuleScalingRuleMetricScaleUpRules
- Disabled bool
Whether shrinkage is prohibited.
- Stabilization
Window intSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- Step int
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- Disabled bool
Whether shrinkage is prohibited.
- Stabilization
Window intSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- Step int
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- disabled Boolean
Whether shrinkage is prohibited.
- stabilization
Window IntegerSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- step Integer
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- disabled boolean
Whether shrinkage is prohibited.
- stabilization
Window numberSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- step number
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- disabled bool
Whether shrinkage is prohibited.
- stabilization_
window_ intseconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- step int
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
- disabled Boolean
Whether shrinkage is prohibited.
- stabilization
Window NumberSeconds Cooling time for expansion or contraction. Valid values:
0
to3600
. Unit: seconds. The default is0
seconds.- step Number
Elastic expansion or contraction step size. the maximum number of instances to be scaled in per unit time.
ApplicationScalingRuleScalingRuleTimer
- Begin
Date string The Start date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- End
Date string The End Date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- Period string
The period in which a timed elastic scaling strategy is executed.
- Schedules
List<Pulumi.
Ali Cloud. Sae. Inputs. Application Scaling Rule Scaling Rule Timer Schedule> Resilient Scaling Strategy Trigger Timing. See the following
Block schedules
.
- Begin
Date string The Start date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- End
Date string The End Date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- Period string
The period in which a timed elastic scaling strategy is executed.
- Schedules
[]Application
Scaling Rule Scaling Rule Timer Schedule Resilient Scaling Strategy Trigger Timing. See the following
Block schedules
.
- begin
Date String The Start date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- end
Date String The End Date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- period String
The period in which a timed elastic scaling strategy is executed.
- schedules
List<Application
Scaling Rule Scaling Rule Timer Schedule> Resilient Scaling Strategy Trigger Timing. See the following
Block schedules
.
- begin
Date string The Start date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- end
Date string The End Date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- period string
The period in which a timed elastic scaling strategy is executed.
- schedules
Application
Scaling Rule Scaling Rule Timer Schedule[] Resilient Scaling Strategy Trigger Timing. See the following
Block schedules
.
- begin_
date str The Start date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- end_
date str The End Date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- period str
The period in which a timed elastic scaling strategy is executed.
- schedules
Sequence[Application
Scaling Rule Scaling Rule Timer Schedule] Resilient Scaling Strategy Trigger Timing. See the following
Block schedules
.
- begin
Date String The Start date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- end
Date String The End Date. When the
begin_date
andend_date
values are empty. it indicates long-term execution and is the default value.- period String
The period in which a timed elastic scaling strategy is executed.
- schedules List<Property Map>
Resilient Scaling Strategy Trigger Timing. See the following
Block schedules
.
ApplicationScalingRuleScalingRuleTimerSchedule
- At
Time string Trigger point in time. When supporting format: minutes, for example:
08:00
.- Max
Replicas int Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- Min
Replicas int Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- Target
Replicas int This parameter can specify the number of instances to be applied or the minimum number of surviving instances per deployment. value range [1,50]. > NOTE: The attribute is valid when the attribute
scaling_rule_type
istiming
.
- At
Time string Trigger point in time. When supporting format: minutes, for example:
08:00
.- Max
Replicas int Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- Min
Replicas int Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- Target
Replicas int This parameter can specify the number of instances to be applied or the minimum number of surviving instances per deployment. value range [1,50]. > NOTE: The attribute is valid when the attribute
scaling_rule_type
istiming
.
- at
Time String Trigger point in time. When supporting format: minutes, for example:
08:00
.- max
Replicas Integer Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- min
Replicas Integer Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- target
Replicas Integer This parameter can specify the number of instances to be applied or the minimum number of surviving instances per deployment. value range [1,50]. > NOTE: The attribute is valid when the attribute
scaling_rule_type
istiming
.
- at
Time string Trigger point in time. When supporting format: minutes, for example:
08:00
.- max
Replicas number Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- min
Replicas number Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- target
Replicas number This parameter can specify the number of instances to be applied or the minimum number of surviving instances per deployment. value range [1,50]. > NOTE: The attribute is valid when the attribute
scaling_rule_type
istiming
.
- at_
time str Trigger point in time. When supporting format: minutes, for example:
08:00
.- max_
replicas int Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- min_
replicas int Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- target_
replicas int This parameter can specify the number of instances to be applied or the minimum number of surviving instances per deployment. value range [1,50]. > NOTE: The attribute is valid when the attribute
scaling_rule_type
istiming
.
- at
Time String Trigger point in time. When supporting format: minutes, for example:
08:00
.- max
Replicas Number Maximum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- min
Replicas Number Minimum number of instances applied. > NOTE: The attribute is valid when the attribute
scaling_rule_type
ismix
.- target
Replicas Number This parameter can specify the number of instances to be applied or the minimum number of surviving instances per deployment. value range [1,50]. > NOTE: The attribute is valid when the attribute
scaling_rule_type
istiming
.
Import
Serverless App Engine (SAE) Application Scaling Rule can be imported using the id, e.g.
$ pulumi import alicloud:sae/applicationScalingRule:ApplicationScalingRule example <app_id>:<scaling_rule_name>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.