opentelekomcloud.AsPolicyV2
Explore with Pulumi AI
Up-to-date reference of API arguments for AS policy you can get at documentation portal
Manages a V2 AS Policy resource within OpenTelekomCloud.
Example Usage
AS Recurrence Policy
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const policy1 = new opentelekomcloud.AsPolicyV2("policy1", {
    scalingPolicyName: "policy_create",
    scalingPolicyType: "RECURRENCE",
    scalingResourceId: _var.as_group,
    scalingResourceType: "SCALING_GROUP",
    scalingPolicyActions: [{
        operation: "ADD",
        percentage: 15,
    }],
    scheduledPolicies: [{
        launchTime: "10:30",
        recurrenceType: "Weekly",
        recurrenceValue: "1,3,5",
        endTime: "2040-12-31T10:30Z",
    }],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
policy1 = opentelekomcloud.AsPolicyV2("policy1",
    scaling_policy_name="policy_create",
    scaling_policy_type="RECURRENCE",
    scaling_resource_id=var["as_group"],
    scaling_resource_type="SCALING_GROUP",
    scaling_policy_actions=[{
        "operation": "ADD",
        "percentage": 15,
    }],
    scheduled_policies=[{
        "launch_time": "10:30",
        "recurrence_type": "Weekly",
        "recurrence_value": "1,3,5",
        "end_time": "2040-12-31T10:30Z",
    }])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewAsPolicyV2(ctx, "policy1", &opentelekomcloud.AsPolicyV2Args{
			ScalingPolicyName:   pulumi.String("policy_create"),
			ScalingPolicyType:   pulumi.String("RECURRENCE"),
			ScalingResourceId:   pulumi.Any(_var.As_group),
			ScalingResourceType: pulumi.String("SCALING_GROUP"),
			ScalingPolicyActions: opentelekomcloud.AsPolicyV2ScalingPolicyActionArray{
				&opentelekomcloud.AsPolicyV2ScalingPolicyActionArgs{
					Operation:  pulumi.String("ADD"),
					Percentage: pulumi.Float64(15),
				},
			},
			ScheduledPolicies: opentelekomcloud.AsPolicyV2ScheduledPolicyArray{
				&opentelekomcloud.AsPolicyV2ScheduledPolicyArgs{
					LaunchTime:      pulumi.String("10:30"),
					RecurrenceType:  pulumi.String("Weekly"),
					RecurrenceValue: pulumi.String("1,3,5"),
					EndTime:         pulumi.String("2040-12-31T10:30Z"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() => 
{
    var policy1 = new Opentelekomcloud.AsPolicyV2("policy1", new()
    {
        ScalingPolicyName = "policy_create",
        ScalingPolicyType = "RECURRENCE",
        ScalingResourceId = @var.As_group,
        ScalingResourceType = "SCALING_GROUP",
        ScalingPolicyActions = new[]
        {
            new Opentelekomcloud.Inputs.AsPolicyV2ScalingPolicyActionArgs
            {
                Operation = "ADD",
                Percentage = 15,
            },
        },
        ScheduledPolicies = new[]
        {
            new Opentelekomcloud.Inputs.AsPolicyV2ScheduledPolicyArgs
            {
                LaunchTime = "10:30",
                RecurrenceType = "Weekly",
                RecurrenceValue = "1,3,5",
                EndTime = "2040-12-31T10:30Z",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.AsPolicyV2;
import com.pulumi.opentelekomcloud.AsPolicyV2Args;
import com.pulumi.opentelekomcloud.inputs.AsPolicyV2ScalingPolicyActionArgs;
import com.pulumi.opentelekomcloud.inputs.AsPolicyV2ScheduledPolicyArgs;
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 policy1 = new AsPolicyV2("policy1", AsPolicyV2Args.builder()
            .scalingPolicyName("policy_create")
            .scalingPolicyType("RECURRENCE")
            .scalingResourceId(var_.as_group())
            .scalingResourceType("SCALING_GROUP")
            .scalingPolicyActions(AsPolicyV2ScalingPolicyActionArgs.builder()
                .operation("ADD")
                .percentage(15)
                .build())
            .scheduledPolicies(AsPolicyV2ScheduledPolicyArgs.builder()
                .launchTime("10:30")
                .recurrenceType("Weekly")
                .recurrenceValue("1,3,5")
                .endTime("2040-12-31T10:30Z")
                .build())
            .build());
    }
}
resources:
  policy1:
    type: opentelekomcloud:AsPolicyV2
    properties:
      scalingPolicyName: policy_create
      scalingPolicyType: RECURRENCE
      scalingResourceId: ${var.as_group}
      scalingResourceType: SCALING_GROUP
      scalingPolicyActions:
        - operation: ADD
          percentage: 15
      scheduledPolicies:
        - launchTime: 10:30
          recurrenceType: Weekly
          recurrenceValue: 1,3,5
          endTime: 2040-12-31T10:30Z
AS Alarm Policy
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const policy1 = new opentelekomcloud.AsPolicyV2("policy1", {
    scalingPolicyName: "policy_create",
    scalingPolicyType: "ALARM",
    scalingResourceId: _var.as_group,
    scalingResourceType: "SCALING_GROUP",
    alarmId: _var.alarm_id,
    scalingPolicyActions: [{
        operation: "ADD",
        size: 1,
    }],
    coolDownTime: 900,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
policy1 = opentelekomcloud.AsPolicyV2("policy1",
    scaling_policy_name="policy_create",
    scaling_policy_type="ALARM",
    scaling_resource_id=var["as_group"],
    scaling_resource_type="SCALING_GROUP",
    alarm_id=var["alarm_id"],
    scaling_policy_actions=[{
        "operation": "ADD",
        "size": 1,
    }],
    cool_down_time=900)
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opentelekomcloud.NewAsPolicyV2(ctx, "policy1", &opentelekomcloud.AsPolicyV2Args{
			ScalingPolicyName:   pulumi.String("policy_create"),
			ScalingPolicyType:   pulumi.String("ALARM"),
			ScalingResourceId:   pulumi.Any(_var.As_group),
			ScalingResourceType: pulumi.String("SCALING_GROUP"),
			AlarmId:             pulumi.Any(_var.Alarm_id),
			ScalingPolicyActions: opentelekomcloud.AsPolicyV2ScalingPolicyActionArray{
				&opentelekomcloud.AsPolicyV2ScalingPolicyActionArgs{
					Operation: pulumi.String("ADD"),
					Size:      pulumi.Float64(1),
				},
			},
			CoolDownTime: pulumi.Float64(900),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() => 
{
    var policy1 = new Opentelekomcloud.AsPolicyV2("policy1", new()
    {
        ScalingPolicyName = "policy_create",
        ScalingPolicyType = "ALARM",
        ScalingResourceId = @var.As_group,
        ScalingResourceType = "SCALING_GROUP",
        AlarmId = @var.Alarm_id,
        ScalingPolicyActions = new[]
        {
            new Opentelekomcloud.Inputs.AsPolicyV2ScalingPolicyActionArgs
            {
                Operation = "ADD",
                Size = 1,
            },
        },
        CoolDownTime = 900,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.AsPolicyV2;
import com.pulumi.opentelekomcloud.AsPolicyV2Args;
import com.pulumi.opentelekomcloud.inputs.AsPolicyV2ScalingPolicyActionArgs;
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 policy1 = new AsPolicyV2("policy1", AsPolicyV2Args.builder()
            .scalingPolicyName("policy_create")
            .scalingPolicyType("ALARM")
            .scalingResourceId(var_.as_group())
            .scalingResourceType("SCALING_GROUP")
            .alarmId(var_.alarm_id())
            .scalingPolicyActions(AsPolicyV2ScalingPolicyActionArgs.builder()
                .operation("ADD")
                .size(1)
                .build())
            .coolDownTime(900)
            .build());
    }
}
resources:
  policy1:
    type: opentelekomcloud:AsPolicyV2
    properties:
      scalingPolicyName: policy_create
      scalingPolicyType: ALARM
      scalingResourceId: ${var.as_group}
      scalingResourceType: SCALING_GROUP
      alarmId: ${var.alarm_id}
      scalingPolicyActions:
        - operation: ADD
          size: 1
      coolDownTime: 900
Create AsPolicyV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AsPolicyV2(name: string, args: AsPolicyV2Args, opts?: CustomResourceOptions);@overload
def AsPolicyV2(resource_name: str,
               args: AsPolicyV2Args,
               opts: Optional[ResourceOptions] = None)
@overload
def AsPolicyV2(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               scaling_policy_name: Optional[str] = None,
               scaling_policy_type: Optional[str] = None,
               scaling_resource_id: Optional[str] = None,
               scaling_resource_type: Optional[str] = None,
               alarm_id: Optional[str] = None,
               as_policy_v2_id: Optional[str] = None,
               cool_down_time: Optional[float] = None,
               region: Optional[str] = None,
               scaling_policy_actions: Optional[Sequence[AsPolicyV2ScalingPolicyActionArgs]] = None,
               scheduled_policies: Optional[Sequence[AsPolicyV2ScheduledPolicyArgs]] = None)func NewAsPolicyV2(ctx *Context, name string, args AsPolicyV2Args, opts ...ResourceOption) (*AsPolicyV2, error)public AsPolicyV2(string name, AsPolicyV2Args args, CustomResourceOptions? opts = null)
public AsPolicyV2(String name, AsPolicyV2Args args)
public AsPolicyV2(String name, AsPolicyV2Args args, CustomResourceOptions options)
type: opentelekomcloud:AsPolicyV2
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 AsPolicyV2Args
- 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 AsPolicyV2Args
- 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 AsPolicyV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AsPolicyV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AsPolicyV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var asPolicyV2Resource = new Opentelekomcloud.AsPolicyV2("asPolicyV2Resource", new()
{
    ScalingPolicyName = "string",
    ScalingPolicyType = "string",
    ScalingResourceId = "string",
    ScalingResourceType = "string",
    AlarmId = "string",
    AsPolicyV2Id = "string",
    CoolDownTime = 0,
    Region = "string",
    ScalingPolicyActions = new[]
    {
        new Opentelekomcloud.Inputs.AsPolicyV2ScalingPolicyActionArgs
        {
            Limits = 0,
            Operation = "string",
            Percentage = 0,
            Size = 0,
        },
    },
    ScheduledPolicies = new[]
    {
        new Opentelekomcloud.Inputs.AsPolicyV2ScheduledPolicyArgs
        {
            LaunchTime = "string",
            EndTime = "string",
            RecurrenceType = "string",
            RecurrenceValue = "string",
            StartTime = "string",
        },
    },
});
example, err := opentelekomcloud.NewAsPolicyV2(ctx, "asPolicyV2Resource", &opentelekomcloud.AsPolicyV2Args{
	ScalingPolicyName:   pulumi.String("string"),
	ScalingPolicyType:   pulumi.String("string"),
	ScalingResourceId:   pulumi.String("string"),
	ScalingResourceType: pulumi.String("string"),
	AlarmId:             pulumi.String("string"),
	AsPolicyV2Id:        pulumi.String("string"),
	CoolDownTime:        pulumi.Float64(0),
	Region:              pulumi.String("string"),
	ScalingPolicyActions: opentelekomcloud.AsPolicyV2ScalingPolicyActionArray{
		&opentelekomcloud.AsPolicyV2ScalingPolicyActionArgs{
			Limits:     pulumi.Float64(0),
			Operation:  pulumi.String("string"),
			Percentage: pulumi.Float64(0),
			Size:       pulumi.Float64(0),
		},
	},
	ScheduledPolicies: opentelekomcloud.AsPolicyV2ScheduledPolicyArray{
		&opentelekomcloud.AsPolicyV2ScheduledPolicyArgs{
			LaunchTime:      pulumi.String("string"),
			EndTime:         pulumi.String("string"),
			RecurrenceType:  pulumi.String("string"),
			RecurrenceValue: pulumi.String("string"),
			StartTime:       pulumi.String("string"),
		},
	},
})
var asPolicyV2Resource = new AsPolicyV2("asPolicyV2Resource", AsPolicyV2Args.builder()
    .scalingPolicyName("string")
    .scalingPolicyType("string")
    .scalingResourceId("string")
    .scalingResourceType("string")
    .alarmId("string")
    .asPolicyV2Id("string")
    .coolDownTime(0.0)
    .region("string")
    .scalingPolicyActions(AsPolicyV2ScalingPolicyActionArgs.builder()
        .limits(0.0)
        .operation("string")
        .percentage(0.0)
        .size(0.0)
        .build())
    .scheduledPolicies(AsPolicyV2ScheduledPolicyArgs.builder()
        .launchTime("string")
        .endTime("string")
        .recurrenceType("string")
        .recurrenceValue("string")
        .startTime("string")
        .build())
    .build());
as_policy_v2_resource = opentelekomcloud.AsPolicyV2("asPolicyV2Resource",
    scaling_policy_name="string",
    scaling_policy_type="string",
    scaling_resource_id="string",
    scaling_resource_type="string",
    alarm_id="string",
    as_policy_v2_id="string",
    cool_down_time=0,
    region="string",
    scaling_policy_actions=[{
        "limits": 0,
        "operation": "string",
        "percentage": 0,
        "size": 0,
    }],
    scheduled_policies=[{
        "launch_time": "string",
        "end_time": "string",
        "recurrence_type": "string",
        "recurrence_value": "string",
        "start_time": "string",
    }])
const asPolicyV2Resource = new opentelekomcloud.AsPolicyV2("asPolicyV2Resource", {
    scalingPolicyName: "string",
    scalingPolicyType: "string",
    scalingResourceId: "string",
    scalingResourceType: "string",
    alarmId: "string",
    asPolicyV2Id: "string",
    coolDownTime: 0,
    region: "string",
    scalingPolicyActions: [{
        limits: 0,
        operation: "string",
        percentage: 0,
        size: 0,
    }],
    scheduledPolicies: [{
        launchTime: "string",
        endTime: "string",
        recurrenceType: "string",
        recurrenceValue: "string",
        startTime: "string",
    }],
});
type: opentelekomcloud:AsPolicyV2
properties:
    alarmId: string
    asPolicyV2Id: string
    coolDownTime: 0
    region: string
    scalingPolicyActions:
        - limits: 0
          operation: string
          percentage: 0
          size: 0
    scalingPolicyName: string
    scalingPolicyType: string
    scalingResourceId: string
    scalingResourceType: string
    scheduledPolicies:
        - endTime: string
          launchTime: string
          recurrenceType: string
          recurrenceValue: string
          startTime: string
AsPolicyV2 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 AsPolicyV2 resource accepts the following input properties:
- ScalingPolicy stringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- ScalingPolicy stringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- ScalingResource stringId 
- The Scaling resource ID.
- ScalingResource stringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- AlarmId string
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- AsPolicy stringV2Id 
- CoolDown doubleTime 
- Specifies the cooldown period (in seconds).
- Region string
- ScalingPolicy List<AsActions Policy V2Scaling Policy Action> 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- ScheduledPolicies List<AsPolicy V2Scheduled Policy> 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- ScalingPolicy stringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- ScalingPolicy stringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- ScalingResource stringId 
- The Scaling resource ID.
- ScalingResource stringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- AlarmId string
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- AsPolicy stringV2Id 
- CoolDown float64Time 
- Specifies the cooldown period (in seconds).
- Region string
- ScalingPolicy []AsActions Policy V2Scaling Policy Action Args 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- ScheduledPolicies []AsPolicy V2Scheduled Policy Args 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- scalingPolicy StringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scalingPolicy StringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- scalingResource StringId 
- The Scaling resource ID.
- scalingResource StringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- alarmId String
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- asPolicy StringV2Id 
- coolDown DoubleTime 
- Specifies the cooldown period (in seconds).
- region String
- scalingPolicy List<AsActions Policy V2Scaling Policy Action> 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- scheduledPolicies List<AsPolicy V2Scheduled Policy> 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- scalingPolicy stringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scalingPolicy stringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- scalingResource stringId 
- The Scaling resource ID.
- scalingResource stringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- alarmId string
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- asPolicy stringV2Id 
- coolDown numberTime 
- Specifies the cooldown period (in seconds).
- region string
- scalingPolicy AsActions Policy V2Scaling Policy Action[] 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- scheduledPolicies AsPolicy V2Scheduled Policy[] 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- scaling_policy_ strname 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scaling_policy_ strtype 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- scaling_resource_ strid 
- The Scaling resource ID.
- scaling_resource_ strtype 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- alarm_id str
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- as_policy_ strv2_ id 
- cool_down_ floattime 
- Specifies the cooldown period (in seconds).
- region str
- scaling_policy_ Sequence[Asactions Policy V2Scaling Policy Action Args] 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- scheduled_policies Sequence[AsPolicy V2Scheduled Policy Args] 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- scalingPolicy StringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scalingPolicy StringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- scalingResource StringId 
- The Scaling resource ID.
- scalingResource StringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- alarmId String
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- asPolicy StringV2Id 
- coolDown NumberTime 
- Specifies the cooldown period (in seconds).
- region String
- scalingPolicy List<Property Map>Actions 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- scheduledPolicies List<Property Map>
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the AsPolicyV2 resource produces the following output properties:
- CreateTime string
- Specifies the time when an AS policy was created. The time format complies with UTC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
List<AsPolicy V2Metadata> 
- Provides additional information. The metadatastructure is documented below.
- CreateTime string
- Specifies the time when an AS policy was created. The time format complies with UTC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
[]AsPolicy V2Metadata 
- Provides additional information. The metadatastructure is documented below.
- createTime String
- Specifies the time when an AS policy was created. The time format complies with UTC.
- id String
- The provider-assigned unique ID for this managed resource.
- metadatas
List<AsPolicy V2Metadata> 
- Provides additional information. The metadatastructure is documented below.
- createTime string
- Specifies the time when an AS policy was created. The time format complies with UTC.
- id string
- The provider-assigned unique ID for this managed resource.
- metadatas
AsPolicy V2Metadata[] 
- Provides additional information. The metadatastructure is documented below.
- create_time str
- Specifies the time when an AS policy was created. The time format complies with UTC.
- id str
- The provider-assigned unique ID for this managed resource.
- metadatas
Sequence[AsPolicy V2Metadata] 
- Provides additional information. The metadatastructure is documented below.
- createTime String
- Specifies the time when an AS policy was created. The time format complies with UTC.
- id String
- The provider-assigned unique ID for this managed resource.
- metadatas List<Property Map>
- Provides additional information. The metadatastructure is documented below.
Look up Existing AsPolicyV2 Resource
Get an existing AsPolicyV2 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?: AsPolicyV2State, opts?: CustomResourceOptions): AsPolicyV2@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alarm_id: Optional[str] = None,
        as_policy_v2_id: Optional[str] = None,
        cool_down_time: Optional[float] = None,
        create_time: Optional[str] = None,
        metadatas: Optional[Sequence[AsPolicyV2MetadataArgs]] = None,
        region: Optional[str] = None,
        scaling_policy_actions: Optional[Sequence[AsPolicyV2ScalingPolicyActionArgs]] = None,
        scaling_policy_name: Optional[str] = None,
        scaling_policy_type: Optional[str] = None,
        scaling_resource_id: Optional[str] = None,
        scaling_resource_type: Optional[str] = None,
        scheduled_policies: Optional[Sequence[AsPolicyV2ScheduledPolicyArgs]] = None) -> AsPolicyV2func GetAsPolicyV2(ctx *Context, name string, id IDInput, state *AsPolicyV2State, opts ...ResourceOption) (*AsPolicyV2, error)public static AsPolicyV2 Get(string name, Input<string> id, AsPolicyV2State? state, CustomResourceOptions? opts = null)public static AsPolicyV2 get(String name, Output<String> id, AsPolicyV2State state, CustomResourceOptions options)resources:  _:    type: opentelekomcloud:AsPolicyV2    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.
- AlarmId string
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- AsPolicy stringV2Id 
- CoolDown doubleTime 
- Specifies the cooldown period (in seconds).
- CreateTime string
- Specifies the time when an AS policy was created. The time format complies with UTC.
- Metadatas
List<AsPolicy V2Metadata> 
- Provides additional information. The metadatastructure is documented below.
- Region string
- ScalingPolicy List<AsActions Policy V2Scaling Policy Action> 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- ScalingPolicy stringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- ScalingPolicy stringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- ScalingResource stringId 
- The Scaling resource ID.
- ScalingResource stringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- ScheduledPolicies List<AsPolicy V2Scheduled Policy> 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- AlarmId string
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- AsPolicy stringV2Id 
- CoolDown float64Time 
- Specifies the cooldown period (in seconds).
- CreateTime string
- Specifies the time when an AS policy was created. The time format complies with UTC.
- Metadatas
[]AsPolicy V2Metadata Args 
- Provides additional information. The metadatastructure is documented below.
- Region string
- ScalingPolicy []AsActions Policy V2Scaling Policy Action Args 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- ScalingPolicy stringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- ScalingPolicy stringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- ScalingResource stringId 
- The Scaling resource ID.
- ScalingResource stringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- ScheduledPolicies []AsPolicy V2Scheduled Policy Args 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- alarmId String
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- asPolicy StringV2Id 
- coolDown DoubleTime 
- Specifies the cooldown period (in seconds).
- createTime String
- Specifies the time when an AS policy was created. The time format complies with UTC.
- metadatas
List<AsPolicy V2Metadata> 
- Provides additional information. The metadatastructure is documented below.
- region String
- scalingPolicy List<AsActions Policy V2Scaling Policy Action> 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- scalingPolicy StringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scalingPolicy StringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- scalingResource StringId 
- The Scaling resource ID.
- scalingResource StringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- scheduledPolicies List<AsPolicy V2Scheduled Policy> 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- alarmId string
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- asPolicy stringV2Id 
- coolDown numberTime 
- Specifies the cooldown period (in seconds).
- createTime string
- Specifies the time when an AS policy was created. The time format complies with UTC.
- metadatas
AsPolicy V2Metadata[] 
- Provides additional information. The metadatastructure is documented below.
- region string
- scalingPolicy AsActions Policy V2Scaling Policy Action[] 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- scalingPolicy stringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scalingPolicy stringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- scalingResource stringId 
- The Scaling resource ID.
- scalingResource stringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- scheduledPolicies AsPolicy V2Scheduled Policy[] 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- alarm_id str
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- as_policy_ strv2_ id 
- cool_down_ floattime 
- Specifies the cooldown period (in seconds).
- create_time str
- Specifies the time when an AS policy was created. The time format complies with UTC.
- metadatas
Sequence[AsPolicy V2Metadata Args] 
- Provides additional information. The metadatastructure is documented below.
- region str
- scaling_policy_ Sequence[Asactions Policy V2Scaling Policy Action Args] 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- scaling_policy_ strname 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scaling_policy_ strtype 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- scaling_resource_ strid 
- The Scaling resource ID.
- scaling_resource_ strtype 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- scheduled_policies Sequence[AsPolicy V2Scheduled Policy Args] 
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
- alarmId String
- Specifies the alarm rule ID. This parameter is mandatory
when scaling_policy_typeis set toALARM.
- asPolicy StringV2Id 
- coolDown NumberTime 
- Specifies the cooldown period (in seconds).
- createTime String
- Specifies the time when an AS policy was created. The time format complies with UTC.
- metadatas List<Property Map>
- Provides additional information. The metadatastructure is documented below.
- region String
- scalingPolicy List<Property Map>Actions 
- The action of the AS policy. The scaling_policy_actionstructure is documented below.
- scalingPolicy StringName 
- The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scalingPolicy StringType 
- The AS policy type. The values can be:- ALARM- Indicates that the scaling action is triggered by an alarm. A value is returned for- alarm_id, and no value is returned for- scheduled_policy.
- SCHEDULED- Indicates that the scaling action is triggered as scheduled. A value is returned for- scheduled_policy, and no value is returned for- alarm_id,- recurrence_type,- recurrence_value,- start_time, or- end_time.
- RECURRENCE- Indicates that the scaling action is triggered periodically. Values are returned for- scheduled_policy,- recurrence_type,- recurrence_value,- start_time, and- end_time, and no value is returned for- alarm_id.
 
- scalingResource StringId 
- The Scaling resource ID.
- scalingResource StringType 
- Specifies the scaling resource type. Valid values are:- AS group: SCALING_GROUP
- Bandwidth: BANDWIDTH
 
- AS group: 
- scheduledPolicies List<Property Map>
- Specifies the periodic or scheduled AS policy.
This parameter is mandatory when scaling_policy_typeis set toSCHEDULEDorRECURRENCE. After this parameter is specified, the value ofalarm_iddoes not take effect. Thescheduled_policystructure is documented below.
Supporting Types
AsPolicyV2Metadata, AsPolicyV2MetadataArgs      
- string
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- EipAddress string
- Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- EipId string
- Specifies the EIP ID for the bandwidth in the bandwidth scaling policy.
- string
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- EipAddress string
- Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- EipId string
- Specifies the EIP ID for the bandwidth in the bandwidth scaling policy.
- String
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- eipAddress String
- Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- eipId String
- Specifies the EIP ID for the bandwidth in the bandwidth scaling policy.
- string
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- eipAddress string
- Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- eipId string
- Specifies the EIP ID for the bandwidth in the bandwidth scaling policy.
- str
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- eip_address str
- Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- eip_id str
- Specifies the EIP ID for the bandwidth in the bandwidth scaling policy.
- String
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- eipAddress String
- Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- eipId String
- Specifies the EIP ID for the bandwidth in the bandwidth scaling policy.
AsPolicyV2ScalingPolicyAction, AsPolicyV2ScalingPolicyActionArgs          
- Limits double
- Operation string
- The operation to be performed.
- Percentage double
- Size double
- Limits float64
- Operation string
- The operation to be performed.
- Percentage float64
- Size float64
- limits Double
- operation String
- The operation to be performed.
- percentage Double
- size Double
- limits number
- operation string
- The operation to be performed.
- percentage number
- size number
- limits float
- operation str
- The operation to be performed.
- percentage float
- size float
- limits Number
- operation String
- The operation to be performed.
- percentage Number
- size Number
AsPolicyV2ScheduledPolicy, AsPolicyV2ScheduledPolicyArgs        
- LaunchTime string
- The time when the scaling action is triggered. If scaling_policy_typeis set toSCHEDULED, the time format isYYYY-MM-DDThh:mmZ. Ifscaling_policy_typeis set toRECURRENCE, the time format ishh:mm.
- EndTime string
- The end time of the scaling action triggered periodically.
The time format complies with UTC. This argument is mandatory when scaling_policy_typeis set toRECURRENCE. The time format isYYYY-MM-DDThh:mmZ.
- RecurrenceType string
- The periodic triggering type. This argument is mandatory when
scaling_policy_typeis set toRECURRENCE. The options includeDaily,Weekly, andMonthly.
- RecurrenceValue string
- The frequency at which scaling actions are triggered. - When - recurrence_typeis set to- Daily, this parameter does not take effect.
- StartTime string
- The start time of the scaling action triggered periodically.
The time format complies with UTC. The current time is used by default. The time
format is YYYY-MM-DDThh:mmZ.
- LaunchTime string
- The time when the scaling action is triggered. If scaling_policy_typeis set toSCHEDULED, the time format isYYYY-MM-DDThh:mmZ. Ifscaling_policy_typeis set toRECURRENCE, the time format ishh:mm.
- EndTime string
- The end time of the scaling action triggered periodically.
The time format complies with UTC. This argument is mandatory when scaling_policy_typeis set toRECURRENCE. The time format isYYYY-MM-DDThh:mmZ.
- RecurrenceType string
- The periodic triggering type. This argument is mandatory when
scaling_policy_typeis set toRECURRENCE. The options includeDaily,Weekly, andMonthly.
- RecurrenceValue string
- The frequency at which scaling actions are triggered. - When - recurrence_typeis set to- Daily, this parameter does not take effect.
- StartTime string
- The start time of the scaling action triggered periodically.
The time format complies with UTC. The current time is used by default. The time
format is YYYY-MM-DDThh:mmZ.
- launchTime String
- The time when the scaling action is triggered. If scaling_policy_typeis set toSCHEDULED, the time format isYYYY-MM-DDThh:mmZ. Ifscaling_policy_typeis set toRECURRENCE, the time format ishh:mm.
- endTime String
- The end time of the scaling action triggered periodically.
The time format complies with UTC. This argument is mandatory when scaling_policy_typeis set toRECURRENCE. The time format isYYYY-MM-DDThh:mmZ.
- recurrenceType String
- The periodic triggering type. This argument is mandatory when
scaling_policy_typeis set toRECURRENCE. The options includeDaily,Weekly, andMonthly.
- recurrenceValue String
- The frequency at which scaling actions are triggered. - When - recurrence_typeis set to- Daily, this parameter does not take effect.
- startTime String
- The start time of the scaling action triggered periodically.
The time format complies with UTC. The current time is used by default. The time
format is YYYY-MM-DDThh:mmZ.
- launchTime string
- The time when the scaling action is triggered. If scaling_policy_typeis set toSCHEDULED, the time format isYYYY-MM-DDThh:mmZ. Ifscaling_policy_typeis set toRECURRENCE, the time format ishh:mm.
- endTime string
- The end time of the scaling action triggered periodically.
The time format complies with UTC. This argument is mandatory when scaling_policy_typeis set toRECURRENCE. The time format isYYYY-MM-DDThh:mmZ.
- recurrenceType string
- The periodic triggering type. This argument is mandatory when
scaling_policy_typeis set toRECURRENCE. The options includeDaily,Weekly, andMonthly.
- recurrenceValue string
- The frequency at which scaling actions are triggered. - When - recurrence_typeis set to- Daily, this parameter does not take effect.
- startTime string
- The start time of the scaling action triggered periodically.
The time format complies with UTC. The current time is used by default. The time
format is YYYY-MM-DDThh:mmZ.
- launch_time str
- The time when the scaling action is triggered. If scaling_policy_typeis set toSCHEDULED, the time format isYYYY-MM-DDThh:mmZ. Ifscaling_policy_typeis set toRECURRENCE, the time format ishh:mm.
- end_time str
- The end time of the scaling action triggered periodically.
The time format complies with UTC. This argument is mandatory when scaling_policy_typeis set toRECURRENCE. The time format isYYYY-MM-DDThh:mmZ.
- recurrence_type str
- The periodic triggering type. This argument is mandatory when
scaling_policy_typeis set toRECURRENCE. The options includeDaily,Weekly, andMonthly.
- recurrence_value str
- The frequency at which scaling actions are triggered. - When - recurrence_typeis set to- Daily, this parameter does not take effect.
- start_time str
- The start time of the scaling action triggered periodically.
The time format complies with UTC. The current time is used by default. The time
format is YYYY-MM-DDThh:mmZ.
- launchTime String
- The time when the scaling action is triggered. If scaling_policy_typeis set toSCHEDULED, the time format isYYYY-MM-DDThh:mmZ. Ifscaling_policy_typeis set toRECURRENCE, the time format ishh:mm.
- endTime String
- The end time of the scaling action triggered periodically.
The time format complies with UTC. This argument is mandatory when scaling_policy_typeis set toRECURRENCE. The time format isYYYY-MM-DDThh:mmZ.
- recurrenceType String
- The periodic triggering type. This argument is mandatory when
scaling_policy_typeis set toRECURRENCE. The options includeDaily,Weekly, andMonthly.
- recurrenceValue String
- The frequency at which scaling actions are triggered. - When - recurrence_typeis set to- Daily, this parameter does not take effect.
- startTime String
- The start time of the scaling action triggered periodically.
The time format complies with UTC. The current time is used by default. The time
format is YYYY-MM-DDThh:mmZ.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the opentelekomcloudTerraform Provider.