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)
.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:
- Scaling
Policy stringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- Scaling
Policy stringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- Scaling
Resource stringId - The Scaling resource ID.
- Scaling
Resource stringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- Alarm
Id string - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - As
Policy stringV2Id - Cool
Down doubleTime - Specifies the cooldown period (in seconds).
- Region string
- Scaling
Policy List<AsActions Policy V2Scaling Policy Action> - The action of the AS policy. The
scaling_policy_action
structure is documented below. - Scheduled
Policies List<AsPolicy V2Scheduled Policy> - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
- Scaling
Policy stringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- Scaling
Policy stringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- Scaling
Resource stringId - The Scaling resource ID.
- Scaling
Resource stringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- Alarm
Id string - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - As
Policy stringV2Id - Cool
Down float64Time - Specifies the cooldown period (in seconds).
- Region string
- Scaling
Policy []AsActions Policy V2Scaling Policy Action Args - The action of the AS policy. The
scaling_policy_action
structure is documented below. - Scheduled
Policies []AsPolicy V2Scheduled Policy Args - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
- scaling
Policy StringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scaling
Policy StringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- scaling
Resource StringId - The Scaling resource ID.
- scaling
Resource StringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- alarm
Id String - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - as
Policy StringV2Id - cool
Down DoubleTime - Specifies the cooldown period (in seconds).
- region String
- scaling
Policy List<AsActions Policy V2Scaling Policy Action> - The action of the AS policy. The
scaling_policy_action
structure is documented below. - scheduled
Policies List<AsPolicy V2Scheduled Policy> - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
- scaling
Policy stringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scaling
Policy stringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- scaling
Resource stringId - The Scaling resource ID.
- scaling
Resource stringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- alarm
Id string - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - as
Policy stringV2Id - cool
Down numberTime - Specifies the cooldown period (in seconds).
- region string
- scaling
Policy AsActions Policy V2Scaling Policy Action[] - The action of the AS policy. The
scaling_policy_action
structure is documented below. - scheduled
Policies AsPolicy V2Scheduled Policy[] - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure 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 foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_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_type
is 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_action
structure is documented below. - scheduled_
policies Sequence[AsPolicy V2Scheduled Policy Args] - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
- scaling
Policy StringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scaling
Policy StringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- scaling
Resource StringId - The Scaling resource ID.
- scaling
Resource StringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- alarm
Id String - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - as
Policy StringV2Id - cool
Down NumberTime - Specifies the cooldown period (in seconds).
- region String
- scaling
Policy List<Property Map>Actions - The action of the AS policy. The
scaling_policy_action
structure is documented below. - scheduled
Policies List<Property Map> - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the AsPolicyV2 resource produces the following output properties:
- Create
Time 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<As
Policy V2Metadata> - Provides additional information. The
metadata
structure is documented below.
- Create
Time 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
[]As
Policy V2Metadata - Provides additional information. The
metadata
structure is documented below.
- create
Time 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<As
Policy V2Metadata> - Provides additional information. The
metadata
structure is documented below.
- create
Time 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
As
Policy V2Metadata[] - 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[As
Policy V2Metadata] - Provides additional information. The
metadata
structure is documented below.
- create
Time 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.
- Alarm
Id string - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - As
Policy stringV2Id - Cool
Down doubleTime - Specifies the cooldown period (in seconds).
- Create
Time string - Specifies the time when an AS policy was created. The time format complies with UTC.
- Metadatas
List<As
Policy V2Metadata> - Provides additional information. The
metadata
structure is documented below. - Region string
- Scaling
Policy List<AsActions Policy V2Scaling Policy Action> - The action of the AS policy. The
scaling_policy_action
structure is documented below. - Scaling
Policy stringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- Scaling
Policy stringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- Scaling
Resource stringId - The Scaling resource ID.
- Scaling
Resource stringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- Scheduled
Policies List<AsPolicy V2Scheduled Policy> - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
- Alarm
Id string - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - As
Policy stringV2Id - Cool
Down float64Time - Specifies the cooldown period (in seconds).
- Create
Time string - Specifies the time when an AS policy was created. The time format complies with UTC.
- Metadatas
[]As
Policy V2Metadata Args - Provides additional information. The
metadata
structure is documented below. - Region string
- Scaling
Policy []AsActions Policy V2Scaling Policy Action Args - The action of the AS policy. The
scaling_policy_action
structure is documented below. - Scaling
Policy stringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- Scaling
Policy stringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- Scaling
Resource stringId - The Scaling resource ID.
- Scaling
Resource stringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- Scheduled
Policies []AsPolicy V2Scheduled Policy Args - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
- alarm
Id String - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - as
Policy StringV2Id - cool
Down DoubleTime - Specifies the cooldown period (in seconds).
- create
Time String - Specifies the time when an AS policy was created. The time format complies with UTC.
- metadatas
List<As
Policy V2Metadata> - Provides additional information. The
metadata
structure is documented below. - region String
- scaling
Policy List<AsActions Policy V2Scaling Policy Action> - The action of the AS policy. The
scaling_policy_action
structure is documented below. - scaling
Policy StringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scaling
Policy StringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- scaling
Resource StringId - The Scaling resource ID.
- scaling
Resource StringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- scheduled
Policies List<AsPolicy V2Scheduled Policy> - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
- alarm
Id string - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - as
Policy stringV2Id - cool
Down numberTime - Specifies the cooldown period (in seconds).
- create
Time string - Specifies the time when an AS policy was created. The time format complies with UTC.
- metadatas
As
Policy V2Metadata[] - Provides additional information. The
metadata
structure is documented below. - region string
- scaling
Policy AsActions Policy V2Scaling Policy Action[] - The action of the AS policy. The
scaling_policy_action
structure is documented below. - scaling
Policy stringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scaling
Policy stringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- scaling
Resource stringId - The Scaling resource ID.
- scaling
Resource stringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- scheduled
Policies AsPolicy V2Scheduled Policy[] - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
- alarm_
id str - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is 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[As
Policy V2Metadata Args] - Provides additional information. The
metadata
structure is documented below. - region str
- scaling_
policy_ Sequence[Asactions Policy V2Scaling Policy Action Args] - The action of the AS policy. The
scaling_policy_action
structure 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 foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_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_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
- alarm
Id String - Specifies the alarm rule ID. This parameter is mandatory
when
scaling_policy_type
is set toALARM
. - as
Policy StringV2Id - cool
Down NumberTime - Specifies the cooldown period (in seconds).
- create
Time 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
- scaling
Policy List<Property Map>Actions - The action of the AS policy. The
scaling_policy_action
structure is documented below. - scaling
Policy StringName - The name of the AS policy. The name can contain letters, digits, underscores(_), and hyphens(-),and cannot exceed 64 characters.
- scaling
Policy StringType - The AS policy type. The values can be:
ALARM
- Indicates that the scaling action is triggered by an alarm. A value is returned foralarm_id
, and no value is returned forscheduled_policy
.SCHEDULED
- Indicates that the scaling action is triggered as scheduled. A value is returned forscheduled_policy
, and no value is returned foralarm_id
,recurrence_type
,recurrence_value
,start_time
, orend_time
.RECURRENCE
- Indicates that the scaling action is triggered periodically. Values are returned forscheduled_policy
,recurrence_type
,recurrence_value
,start_time
, andend_time
, and no value is returned foralarm_id
.
- scaling
Resource StringId - The Scaling resource ID.
- scaling
Resource StringType - Specifies the scaling resource type. Valid values are:
- AS group:
SCALING_GROUP
- Bandwidth:
BANDWIDTH
- AS group:
- scheduled
Policies List<Property Map> - Specifies the periodic or scheduled AS policy.
This parameter is mandatory when
scaling_policy_type
is set toSCHEDULED
orRECURRENCE
. After this parameter is specified, the value ofalarm_id
does not take effect. Thescheduled_policy
structure is documented below.
Supporting Types
AsPolicyV2Metadata, AsPolicyV2MetadataArgs
- string
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- Eip
Address string - Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- Eip
Id string - Specifies the EIP ID for the bandwidth in the bandwidth scaling policy.
- string
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- Eip
Address string - Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- Eip
Id string - Specifies the EIP ID for the bandwidth in the bandwidth scaling policy.
- String
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- eip
Address String - Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- eip
Id String - Specifies the EIP ID for the bandwidth in the bandwidth scaling policy.
- string
- Specifies the bandwidth sharing type in the bandwidth scaling policy.
- eip
Address string - Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- eip
Id 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.
- eip
Address String - Specifies the EIP for the bandwidth in the bandwidth scaling policy.
- eip
Id 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
- Launch
Time string - The time when the scaling action is triggered. If
scaling_policy_type
is set toSCHEDULED
, the time format isYYYY-MM-DDThh:mmZ
. Ifscaling_policy_type
is set toRECURRENCE
, the time format ishh:mm
. - End
Time 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 toRECURRENCE
. The time format isYYYY-MM-DDThh:mmZ
. - Recurrence
Type string - The periodic triggering type. This argument is mandatory when
scaling_policy_type
is set toRECURRENCE
. The options includeDaily
,Weekly
, andMonthly
. - Recurrence
Value string The frequency at which scaling actions are triggered.
When
recurrence_type
is set toDaily
, this parameter does not take effect.- Start
Time 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 string - The time when the scaling action is triggered. If
scaling_policy_type
is set toSCHEDULED
, the time format isYYYY-MM-DDThh:mmZ
. Ifscaling_policy_type
is set toRECURRENCE
, the time format ishh:mm
. - End
Time 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 toRECURRENCE
. The time format isYYYY-MM-DDThh:mmZ
. - Recurrence
Type string - The periodic triggering type. This argument is mandatory when
scaling_policy_type
is set toRECURRENCE
. The options includeDaily
,Weekly
, andMonthly
. - Recurrence
Value string The frequency at which scaling actions are triggered.
When
recurrence_type
is set toDaily
, this parameter does not take effect.- Start
Time 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 String - The time when the scaling action is triggered. If
scaling_policy_type
is set toSCHEDULED
, the time format isYYYY-MM-DDThh:mmZ
. Ifscaling_policy_type
is set toRECURRENCE
, the time format ishh:mm
. - end
Time 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 toRECURRENCE
. The time format isYYYY-MM-DDThh:mmZ
. - recurrence
Type String - The periodic triggering type. This argument is mandatory when
scaling_policy_type
is set toRECURRENCE
. The options includeDaily
,Weekly
, andMonthly
. - recurrence
Value String The frequency at which scaling actions are triggered.
When
recurrence_type
is set toDaily
, this parameter does not take effect.- start
Time 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 string - The time when the scaling action is triggered. If
scaling_policy_type
is set toSCHEDULED
, the time format isYYYY-MM-DDThh:mmZ
. Ifscaling_policy_type
is set toRECURRENCE
, the time format ishh:mm
. - end
Time 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 toRECURRENCE
. The time format isYYYY-MM-DDThh:mmZ
. - recurrence
Type string - The periodic triggering type. This argument is mandatory when
scaling_policy_type
is set toRECURRENCE
. The options includeDaily
,Weekly
, andMonthly
. - recurrence
Value string The frequency at which scaling actions are triggered.
When
recurrence_type
is set toDaily
, this parameter does not take effect.- start
Time 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 toSCHEDULED
, the time format isYYYY-MM-DDThh:mmZ
. Ifscaling_policy_type
is 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_type
is set toRECURRENCE
. The time format isYYYY-MM-DDThh:mmZ
. - recurrence_
type str - The periodic triggering type. This argument is mandatory when
scaling_policy_type
is set toRECURRENCE
. The options includeDaily
,Weekly
, andMonthly
. - recurrence_
value str The frequency at which scaling actions are triggered.
When
recurrence_type
is set toDaily
, 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
.
- launch
Time String - The time when the scaling action is triggered. If
scaling_policy_type
is set toSCHEDULED
, the time format isYYYY-MM-DDThh:mmZ
. Ifscaling_policy_type
is set toRECURRENCE
, the time format ishh:mm
. - end
Time 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 toRECURRENCE
. The time format isYYYY-MM-DDThh:mmZ
. - recurrence
Type String - The periodic triggering type. This argument is mandatory when
scaling_policy_type
is set toRECURRENCE
. The options includeDaily
,Weekly
, andMonthly
. - recurrence
Value String The frequency at which scaling actions are triggered.
When
recurrence_type
is set toDaily
, this parameter does not take effect.- start
Time 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.