1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. AsPolicyV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.AsPolicyV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    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)
        .region("string")
        .scalingPolicyActions(AsPolicyV2ScalingPolicyActionArgs.builder()
            .limits(0)
            .operation("string")
            .percentage(0)
            .size(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:

    ScalingPolicyName string
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    ScalingPolicyType string
    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.
    ScalingResourceId string
    The Scaling resource ID.
    ScalingResourceType string
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    AlarmId string
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    AsPolicyV2Id string
    CoolDownTime double
    Specifies the cooldown period (in seconds).
    Region string
    ScalingPolicyActions List<AsPolicyV2ScalingPolicyAction>
    The action of the AS policy. The scaling_policy_action structure is documented below.
    ScheduledPolicies List<AsPolicyV2ScheduledPolicy>
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    ScalingPolicyName string
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    ScalingPolicyType string
    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.
    ScalingResourceId string
    The Scaling resource ID.
    ScalingResourceType string
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    AlarmId string
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    AsPolicyV2Id string
    CoolDownTime float64
    Specifies the cooldown period (in seconds).
    Region string
    ScalingPolicyActions []AsPolicyV2ScalingPolicyActionArgs
    The action of the AS policy. The scaling_policy_action structure is documented below.
    ScheduledPolicies []AsPolicyV2ScheduledPolicyArgs
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    scalingPolicyName String
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    scalingPolicyType String
    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.
    scalingResourceId String
    The Scaling resource ID.
    scalingResourceType String
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    alarmId String
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    asPolicyV2Id String
    coolDownTime Double
    Specifies the cooldown period (in seconds).
    region String
    scalingPolicyActions List<AsPolicyV2ScalingPolicyAction>
    The action of the AS policy. The scaling_policy_action structure is documented below.
    scheduledPolicies List<AsPolicyV2ScheduledPolicy>
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    scalingPolicyName string
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    scalingPolicyType string
    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.
    scalingResourceId string
    The Scaling resource ID.
    scalingResourceType string
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    alarmId string
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    asPolicyV2Id string
    coolDownTime number
    Specifies the cooldown period (in seconds).
    region string
    scalingPolicyActions AsPolicyV2ScalingPolicyAction[]
    The action of the AS policy. The scaling_policy_action structure is documented below.
    scheduledPolicies AsPolicyV2ScheduledPolicy[]
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    scaling_policy_name str
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    scaling_policy_type str
    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_id str
    The Scaling resource ID.
    scaling_resource_type str
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    alarm_id str
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    as_policy_v2_id str
    cool_down_time float
    Specifies the cooldown period (in seconds).
    region str
    scaling_policy_actions Sequence[AsPolicyV2ScalingPolicyActionArgs]
    The action of the AS policy. The scaling_policy_action structure is documented below.
    scheduled_policies Sequence[AsPolicyV2ScheduledPolicyArgs]
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    scalingPolicyName String
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    scalingPolicyType String
    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.
    scalingResourceId String
    The Scaling resource ID.
    scalingResourceType String
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    alarmId String
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    asPolicyV2Id String
    coolDownTime Number
    Specifies the cooldown period (in seconds).
    region String
    scalingPolicyActions List<Property Map>
    The action of the AS policy. The scaling_policy_action structure is documented below.
    scheduledPolicies List<Property Map>
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure 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<AsPolicyV2Metadata>
    Provides additional information. The metadata structure 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 []AsPolicyV2Metadata
    Provides additional information. The metadata structure 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<AsPolicyV2Metadata>
    Provides additional information. The metadata structure 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 AsPolicyV2Metadata[]
    Provides additional information. The metadata structure 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[AsPolicyV2Metadata]
    Provides additional information. The metadata structure 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 metadata structure 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) -> AsPolicyV2
    func 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.
    The following state arguments are supported:
    AlarmId string
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    AsPolicyV2Id string
    CoolDownTime double
    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<AsPolicyV2Metadata>
    Provides additional information. The metadata structure is documented below.
    Region string
    ScalingPolicyActions List<AsPolicyV2ScalingPolicyAction>
    The action of the AS policy. The scaling_policy_action structure is documented below.
    ScalingPolicyName string
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    ScalingPolicyType string
    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.
    ScalingResourceId string
    The Scaling resource ID.
    ScalingResourceType string
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    ScheduledPolicies List<AsPolicyV2ScheduledPolicy>
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    AlarmId string
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    AsPolicyV2Id string
    CoolDownTime float64
    Specifies the cooldown period (in seconds).
    CreateTime string
    Specifies the time when an AS policy was created. The time format complies with UTC.
    Metadatas []AsPolicyV2MetadataArgs
    Provides additional information. The metadata structure is documented below.
    Region string
    ScalingPolicyActions []AsPolicyV2ScalingPolicyActionArgs
    The action of the AS policy. The scaling_policy_action structure is documented below.
    ScalingPolicyName string
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    ScalingPolicyType string
    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.
    ScalingResourceId string
    The Scaling resource ID.
    ScalingResourceType string
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    ScheduledPolicies []AsPolicyV2ScheduledPolicyArgs
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    alarmId String
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    asPolicyV2Id String
    coolDownTime Double
    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<AsPolicyV2Metadata>
    Provides additional information. The metadata structure is documented below.
    region String
    scalingPolicyActions List<AsPolicyV2ScalingPolicyAction>
    The action of the AS policy. The scaling_policy_action structure is documented below.
    scalingPolicyName String
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    scalingPolicyType String
    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.
    scalingResourceId String
    The Scaling resource ID.
    scalingResourceType String
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    scheduledPolicies List<AsPolicyV2ScheduledPolicy>
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    alarmId string
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    asPolicyV2Id string
    coolDownTime number
    Specifies the cooldown period (in seconds).
    createTime string
    Specifies the time when an AS policy was created. The time format complies with UTC.
    metadatas AsPolicyV2Metadata[]
    Provides additional information. The metadata structure is documented below.
    region string
    scalingPolicyActions AsPolicyV2ScalingPolicyAction[]
    The action of the AS policy. The scaling_policy_action structure is documented below.
    scalingPolicyName string
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    scalingPolicyType string
    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.
    scalingResourceId string
    The Scaling resource ID.
    scalingResourceType string
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    scheduledPolicies AsPolicyV2ScheduledPolicy[]
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    alarm_id str
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    as_policy_v2_id str
    cool_down_time float
    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[AsPolicyV2MetadataArgs]
    Provides additional information. The metadata structure is documented below.
    region str
    scaling_policy_actions Sequence[AsPolicyV2ScalingPolicyActionArgs]
    The action of the AS policy. The scaling_policy_action structure is documented below.
    scaling_policy_name str
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    scaling_policy_type str
    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_id str
    The Scaling resource ID.
    scaling_resource_type str
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    scheduled_policies Sequence[AsPolicyV2ScheduledPolicyArgs]
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.
    alarmId String
    Specifies the alarm rule ID. This parameter is mandatory when scaling_policy_type is set to ALARM.
    asPolicyV2Id String
    coolDownTime Number
    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 metadata structure is documented below.
    region String
    scalingPolicyActions List<Property Map>
    The action of the AS policy. The scaling_policy_action structure is documented below.
    scalingPolicyName String
    The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
    scalingPolicyType String
    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.
    scalingResourceId String
    The Scaling resource ID.
    scalingResourceType String
    Specifies the scaling resource type. Valid values are:

    • AS group: SCALING_GROUP
    • Bandwidth: BANDWIDTH
    scheduledPolicies List<Property Map>
    Specifies the periodic or scheduled AS policy. This parameter is mandatory when scaling_policy_type is set to SCHEDULED or RECURRENCE. After this parameter is specified, the value of alarm_id does not take effect. The scheduled_policy structure is documented below.

    Supporting Types

    AsPolicyV2Metadata, AsPolicyV2MetadataArgs

    BandwidthShareType 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.
    BandwidthShareType 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.
    bandwidthShareType 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.
    bandwidthShareType 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.
    bandwidth_share_type 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.
    bandwidthShareType 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_type is set to SCHEDULED, the time format is YYYY-MM-DDThh:mmZ. If scaling_policy_type is set to RECURRENCE, the time format is hh: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_type is set to RECURRENCE. The time format is YYYY-MM-DDThh:mmZ.
    RecurrenceType string
    The periodic triggering type. This argument is mandatory when scaling_policy_type is set to RECURRENCE. The options include Daily, Weekly, and Monthly.
    RecurrenceValue string

    The frequency at which scaling actions are triggered.

    When recurrence_type is 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_type is set to SCHEDULED, the time format is YYYY-MM-DDThh:mmZ. If scaling_policy_type is set to RECURRENCE, the time format is hh: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_type is set to RECURRENCE. The time format is YYYY-MM-DDThh:mmZ.
    RecurrenceType string
    The periodic triggering type. This argument is mandatory when scaling_policy_type is set to RECURRENCE. The options include Daily, Weekly, and Monthly.
    RecurrenceValue string

    The frequency at which scaling actions are triggered.

    When recurrence_type is 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_type is set to SCHEDULED, the time format is YYYY-MM-DDThh:mmZ. If scaling_policy_type is set to RECURRENCE, the time format is hh: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_type is set to RECURRENCE. The time format is YYYY-MM-DDThh:mmZ.
    recurrenceType String
    The periodic triggering type. This argument is mandatory when scaling_policy_type is set to RECURRENCE. The options include Daily, Weekly, and Monthly.
    recurrenceValue String

    The frequency at which scaling actions are triggered.

    When recurrence_type is 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_type is set to SCHEDULED, the time format is YYYY-MM-DDThh:mmZ. If scaling_policy_type is set to RECURRENCE, the time format is hh: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_type is set to RECURRENCE. The time format is YYYY-MM-DDThh:mmZ.
    recurrenceType string
    The periodic triggering type. This argument is mandatory when scaling_policy_type is set to RECURRENCE. The options include Daily, Weekly, and Monthly.
    recurrenceValue string

    The frequency at which scaling actions are triggered.

    When recurrence_type is 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_type is set to SCHEDULED, the time format is YYYY-MM-DDThh:mmZ. If scaling_policy_type is set to RECURRENCE, the time format is hh: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_type is set to RECURRENCE. The time format is YYYY-MM-DDThh:mmZ.
    recurrence_type str
    The periodic triggering type. This argument is mandatory when scaling_policy_type is set to RECURRENCE. The options include Daily, Weekly, and Monthly.
    recurrence_value str

    The frequency at which scaling actions are triggered.

    When recurrence_type is 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_type is set to SCHEDULED, the time format is YYYY-MM-DDThh:mmZ. If scaling_policy_type is set to RECURRENCE, the time format is hh: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_type is set to RECURRENCE. The time format is YYYY-MM-DDThh:mmZ.
    recurrenceType String
    The periodic triggering type. This argument is mandatory when scaling_policy_type is set to RECURRENCE. The options include Daily, Weekly, and Monthly.
    recurrenceValue String

    The frequency at which scaling actions are triggered.

    When recurrence_type is 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 opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud