Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
oci.Autoscaling.AutoScalingConfiguration
Explore with Pulumi AI
This resource provides the Auto Scaling Configuration resource in Oracle Cloud Infrastructure Auto Scaling service.
Creates an autoscaling configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testAutoScalingConfiguration = new Oci.Autoscaling.AutoScalingConfiguration("testAutoScalingConfiguration", new()
{
AutoScalingResources = new Oci.Autoscaling.Inputs.AutoScalingConfigurationAutoScalingResourcesArgs
{
Id = @var.Auto_scaling_configuration_auto_scaling_resources_id,
Type = @var.Auto_scaling_configuration_auto_scaling_resources_type,
},
CompartmentId = @var.Compartment_id,
Policies = new[]
{
new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyArgs
{
PolicyType = @var.Auto_scaling_configuration_policies_policy_type,
Capacity = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyCapacityArgs
{
Initial = @var.Auto_scaling_configuration_policies_capacity_initial,
Max = @var.Auto_scaling_configuration_policies_capacity_max,
Min = @var.Auto_scaling_configuration_policies_capacity_min,
},
DisplayName = @var.Auto_scaling_configuration_policies_display_name,
ExecutionSchedule = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyExecutionScheduleArgs
{
Expression = @var.Auto_scaling_configuration_policies_execution_schedule_expression,
Timezone = @var.Auto_scaling_configuration_policies_execution_schedule_timezone,
Type = @var.Auto_scaling_configuration_policies_execution_schedule_type,
},
IsEnabled = @var.Auto_scaling_configuration_policies_is_enabled,
ResourceAction = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyResourceActionArgs
{
Action = @var.Auto_scaling_configuration_policies_resource_action_action,
ActionType = @var.Auto_scaling_configuration_policies_resource_action_action_type,
},
Rules = new[]
{
new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleArgs
{
Action = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleActionArgs
{
Type = @var.Auto_scaling_configuration_policies_rules_action_type,
Value = @var.Auto_scaling_configuration_policies_rules_action_value,
},
DisplayName = @var.Auto_scaling_configuration_policies_rules_display_name,
Metric = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleMetricArgs
{
MetricType = @var.Auto_scaling_configuration_policies_rules_metric_metric_type,
Threshold = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleMetricThresholdArgs
{
Operator = @var.Auto_scaling_configuration_policies_rules_metric_threshold_operator,
Value = @var.Auto_scaling_configuration_policies_rules_metric_threshold_value,
},
},
},
},
},
},
CoolDownInSeconds = @var.Auto_scaling_configuration_cool_down_in_seconds,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
DisplayName = @var.Auto_scaling_configuration_display_name,
FreeformTags =
{
{ "Department", "Finance" },
},
IsEnabled = @var.Auto_scaling_configuration_is_enabled,
});
});
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Autoscaling"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Autoscaling.NewAutoScalingConfiguration(ctx, "testAutoScalingConfiguration", &Autoscaling.AutoScalingConfigurationArgs{
AutoScalingResources: &autoscaling.AutoScalingConfigurationAutoScalingResourcesArgs{
Id: pulumi.Any(_var.Auto_scaling_configuration_auto_scaling_resources_id),
Type: pulumi.Any(_var.Auto_scaling_configuration_auto_scaling_resources_type),
},
CompartmentId: pulumi.Any(_var.Compartment_id),
Policies: autoscaling.AutoScalingConfigurationPolicyArray{
&autoscaling.AutoScalingConfigurationPolicyArgs{
PolicyType: pulumi.Any(_var.Auto_scaling_configuration_policies_policy_type),
Capacity: &autoscaling.AutoScalingConfigurationPolicyCapacityArgs{
Initial: pulumi.Any(_var.Auto_scaling_configuration_policies_capacity_initial),
Max: pulumi.Any(_var.Auto_scaling_configuration_policies_capacity_max),
Min: pulumi.Any(_var.Auto_scaling_configuration_policies_capacity_min),
},
DisplayName: pulumi.Any(_var.Auto_scaling_configuration_policies_display_name),
ExecutionSchedule: &autoscaling.AutoScalingConfigurationPolicyExecutionScheduleArgs{
Expression: pulumi.Any(_var.Auto_scaling_configuration_policies_execution_schedule_expression),
Timezone: pulumi.Any(_var.Auto_scaling_configuration_policies_execution_schedule_timezone),
Type: pulumi.Any(_var.Auto_scaling_configuration_policies_execution_schedule_type),
},
IsEnabled: pulumi.Any(_var.Auto_scaling_configuration_policies_is_enabled),
ResourceAction: &autoscaling.AutoScalingConfigurationPolicyResourceActionArgs{
Action: pulumi.Any(_var.Auto_scaling_configuration_policies_resource_action_action),
ActionType: pulumi.Any(_var.Auto_scaling_configuration_policies_resource_action_action_type),
},
Rules: autoscaling.AutoScalingConfigurationPolicyRuleArray{
&autoscaling.AutoScalingConfigurationPolicyRuleArgs{
Action: &autoscaling.AutoScalingConfigurationPolicyRuleActionArgs{
Type: pulumi.Any(_var.Auto_scaling_configuration_policies_rules_action_type),
Value: pulumi.Any(_var.Auto_scaling_configuration_policies_rules_action_value),
},
DisplayName: pulumi.Any(_var.Auto_scaling_configuration_policies_rules_display_name),
Metric: &autoscaling.AutoScalingConfigurationPolicyRuleMetricArgs{
MetricType: pulumi.Any(_var.Auto_scaling_configuration_policies_rules_metric_metric_type),
Threshold: &autoscaling.AutoScalingConfigurationPolicyRuleMetricThresholdArgs{
Operator: pulumi.Any(_var.Auto_scaling_configuration_policies_rules_metric_threshold_operator),
Value: pulumi.Any(_var.Auto_scaling_configuration_policies_rules_metric_threshold_value),
},
},
},
},
},
},
CoolDownInSeconds: pulumi.Any(_var.Auto_scaling_configuration_cool_down_in_seconds),
DefinedTags: pulumi.AnyMap{
"Operations.CostCenter": pulumi.Any("42"),
},
DisplayName: pulumi.Any(_var.Auto_scaling_configuration_display_name),
FreeformTags: pulumi.AnyMap{
"Department": pulumi.Any("Finance"),
},
IsEnabled: pulumi.Any(_var.Auto_scaling_configuration_is_enabled),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Autoscaling.AutoScalingConfiguration;
import com.pulumi.oci.Autoscaling.AutoScalingConfigurationArgs;
import com.pulumi.oci.Autoscaling.inputs.AutoScalingConfigurationAutoScalingResourcesArgs;
import com.pulumi.oci.Autoscaling.inputs.AutoScalingConfigurationPolicyArgs;
import com.pulumi.oci.Autoscaling.inputs.AutoScalingConfigurationPolicyCapacityArgs;
import com.pulumi.oci.Autoscaling.inputs.AutoScalingConfigurationPolicyExecutionScheduleArgs;
import com.pulumi.oci.Autoscaling.inputs.AutoScalingConfigurationPolicyResourceActionArgs;
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 testAutoScalingConfiguration = new AutoScalingConfiguration("testAutoScalingConfiguration", AutoScalingConfigurationArgs.builder()
.autoScalingResources(AutoScalingConfigurationAutoScalingResourcesArgs.builder()
.id(var_.auto_scaling_configuration_auto_scaling_resources_id())
.type(var_.auto_scaling_configuration_auto_scaling_resources_type())
.build())
.compartmentId(var_.compartment_id())
.policies(AutoScalingConfigurationPolicyArgs.builder()
.policyType(var_.auto_scaling_configuration_policies_policy_type())
.capacity(AutoScalingConfigurationPolicyCapacityArgs.builder()
.initial(var_.auto_scaling_configuration_policies_capacity_initial())
.max(var_.auto_scaling_configuration_policies_capacity_max())
.min(var_.auto_scaling_configuration_policies_capacity_min())
.build())
.displayName(var_.auto_scaling_configuration_policies_display_name())
.executionSchedule(AutoScalingConfigurationPolicyExecutionScheduleArgs.builder()
.expression(var_.auto_scaling_configuration_policies_execution_schedule_expression())
.timezone(var_.auto_scaling_configuration_policies_execution_schedule_timezone())
.type(var_.auto_scaling_configuration_policies_execution_schedule_type())
.build())
.isEnabled(var_.auto_scaling_configuration_policies_is_enabled())
.resourceAction(AutoScalingConfigurationPolicyResourceActionArgs.builder()
.action(var_.auto_scaling_configuration_policies_resource_action_action())
.actionType(var_.auto_scaling_configuration_policies_resource_action_action_type())
.build())
.rules(AutoScalingConfigurationPolicyRuleArgs.builder()
.action(AutoScalingConfigurationPolicyRuleActionArgs.builder()
.type(var_.auto_scaling_configuration_policies_rules_action_type())
.value(var_.auto_scaling_configuration_policies_rules_action_value())
.build())
.displayName(var_.auto_scaling_configuration_policies_rules_display_name())
.metric(AutoScalingConfigurationPolicyRuleMetricArgs.builder()
.metricType(var_.auto_scaling_configuration_policies_rules_metric_metric_type())
.threshold(AutoScalingConfigurationPolicyRuleMetricThresholdArgs.builder()
.operator(var_.auto_scaling_configuration_policies_rules_metric_threshold_operator())
.value(var_.auto_scaling_configuration_policies_rules_metric_threshold_value())
.build())
.build())
.build())
.build())
.coolDownInSeconds(var_.auto_scaling_configuration_cool_down_in_seconds())
.definedTags(Map.of("Operations.CostCenter", "42"))
.displayName(var_.auto_scaling_configuration_display_name())
.freeformTags(Map.of("Department", "Finance"))
.isEnabled(var_.auto_scaling_configuration_is_enabled())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_auto_scaling_configuration = oci.autoscaling.AutoScalingConfiguration("testAutoScalingConfiguration",
auto_scaling_resources=oci.autoscaling.AutoScalingConfigurationAutoScalingResourcesArgs(
id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
),
compartment_id=var["compartment_id"],
policies=[oci.autoscaling.AutoScalingConfigurationPolicyArgs(
policy_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
capacity=oci.autoscaling.AutoScalingConfigurationPolicyCapacityArgs(
initial=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
max=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
min=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
),
display_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
execution_schedule=oci.autoscaling.AutoScalingConfigurationPolicyExecutionScheduleArgs(
expression=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
timezone=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
),
is_enabled=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
resource_action=oci.autoscaling.AutoScalingConfigurationPolicyResourceActionArgs(
action=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
action_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
),
rules=[oci.autoscaling.AutoScalingConfigurationPolicyRuleArgs(
action=oci.autoscaling.AutoScalingConfigurationPolicyRuleActionArgs(
type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
value=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
),
display_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
metric=oci.autoscaling.AutoScalingConfigurationPolicyRuleMetricArgs(
metric_type=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
threshold=oci.autoscaling.AutoScalingConfigurationPolicyRuleMetricThresholdArgs(
operator=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
value=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
),
),
)],
)],
cool_down_in_seconds=var["auto_scaling_configuration_cool_down_in_seconds"],
defined_tags={
"Operations.CostCenter": "42",
},
display_name=var["auto_scaling_configuration_display_name"],
freeform_tags={
"Department": "Finance",
},
is_enabled=var["auto_scaling_configuration_is_enabled"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutoScalingConfiguration = new oci.autoscaling.AutoScalingConfiguration("testAutoScalingConfiguration", {
autoScalingResources: {
id: _var.auto_scaling_configuration_auto_scaling_resources_id,
type: _var.auto_scaling_configuration_auto_scaling_resources_type,
},
compartmentId: _var.compartment_id,
policies: [{
policyType: _var.auto_scaling_configuration_policies_policy_type,
capacity: {
initial: _var.auto_scaling_configuration_policies_capacity_initial,
max: _var.auto_scaling_configuration_policies_capacity_max,
min: _var.auto_scaling_configuration_policies_capacity_min,
},
displayName: _var.auto_scaling_configuration_policies_display_name,
executionSchedule: {
expression: _var.auto_scaling_configuration_policies_execution_schedule_expression,
timezone: _var.auto_scaling_configuration_policies_execution_schedule_timezone,
type: _var.auto_scaling_configuration_policies_execution_schedule_type,
},
isEnabled: _var.auto_scaling_configuration_policies_is_enabled,
resourceAction: {
action: _var.auto_scaling_configuration_policies_resource_action_action,
actionType: _var.auto_scaling_configuration_policies_resource_action_action_type,
},
rules: [{
action: {
type: _var.auto_scaling_configuration_policies_rules_action_type,
value: _var.auto_scaling_configuration_policies_rules_action_value,
},
displayName: _var.auto_scaling_configuration_policies_rules_display_name,
metric: {
metricType: _var.auto_scaling_configuration_policies_rules_metric_metric_type,
threshold: {
operator: _var.auto_scaling_configuration_policies_rules_metric_threshold_operator,
value: _var.auto_scaling_configuration_policies_rules_metric_threshold_value,
},
},
}],
}],
coolDownInSeconds: _var.auto_scaling_configuration_cool_down_in_seconds,
definedTags: {
"Operations.CostCenter": "42",
},
displayName: _var.auto_scaling_configuration_display_name,
freeformTags: {
Department: "Finance",
},
isEnabled: _var.auto_scaling_configuration_is_enabled,
});
resources:
testAutoScalingConfiguration:
type: oci:Autoscaling:AutoScalingConfiguration
properties:
autoScalingResources:
id: ${var.auto_scaling_configuration_auto_scaling_resources_id}
type: ${var.auto_scaling_configuration_auto_scaling_resources_type}
compartmentId: ${var.compartment_id}
policies:
- policyType: ${var.auto_scaling_configuration_policies_policy_type}
capacity:
initial: ${var.auto_scaling_configuration_policies_capacity_initial}
max: ${var.auto_scaling_configuration_policies_capacity_max}
min: ${var.auto_scaling_configuration_policies_capacity_min}
displayName: ${var.auto_scaling_configuration_policies_display_name}
executionSchedule:
expression: ${var.auto_scaling_configuration_policies_execution_schedule_expression}
timezone: ${var.auto_scaling_configuration_policies_execution_schedule_timezone}
type: ${var.auto_scaling_configuration_policies_execution_schedule_type}
isEnabled: ${var.auto_scaling_configuration_policies_is_enabled}
resourceAction:
action: ${var.auto_scaling_configuration_policies_resource_action_action}
actionType: ${var.auto_scaling_configuration_policies_resource_action_action_type}
rules:
- action:
type: ${var.auto_scaling_configuration_policies_rules_action_type}
value: ${var.auto_scaling_configuration_policies_rules_action_value}
displayName: ${var.auto_scaling_configuration_policies_rules_display_name}
metric:
metricType: ${var.auto_scaling_configuration_policies_rules_metric_metric_type}
threshold:
operator: ${var.auto_scaling_configuration_policies_rules_metric_threshold_operator}
value: ${var.auto_scaling_configuration_policies_rules_metric_threshold_value}
#Optional
coolDownInSeconds: ${var.auto_scaling_configuration_cool_down_in_seconds}
definedTags:
Operations.CostCenter: '42'
displayName: ${var.auto_scaling_configuration_display_name}
freeformTags:
Department: Finance
isEnabled: ${var.auto_scaling_configuration_is_enabled}
Create AutoScalingConfiguration Resource
new AutoScalingConfiguration(name: string, args: AutoScalingConfigurationArgs, opts?: CustomResourceOptions);
@overload
def AutoScalingConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_scaling_resources: Optional[_autoscaling.AutoScalingConfigurationAutoScalingResourcesArgs] = None,
compartment_id: Optional[str] = None,
cool_down_in_seconds: Optional[int] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
is_enabled: Optional[bool] = None,
policies: Optional[Sequence[_autoscaling.AutoScalingConfigurationPolicyArgs]] = None)
@overload
def AutoScalingConfiguration(resource_name: str,
args: AutoScalingConfigurationArgs,
opts: Optional[ResourceOptions] = None)
func NewAutoScalingConfiguration(ctx *Context, name string, args AutoScalingConfigurationArgs, opts ...ResourceOption) (*AutoScalingConfiguration, error)
public AutoScalingConfiguration(string name, AutoScalingConfigurationArgs args, CustomResourceOptions? opts = null)
public AutoScalingConfiguration(String name, AutoScalingConfigurationArgs args)
public AutoScalingConfiguration(String name, AutoScalingConfigurationArgs args, CustomResourceOptions options)
type: oci:Autoscaling:AutoScalingConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutoScalingConfigurationArgs
- 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 AutoScalingConfigurationArgs
- 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 AutoScalingConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutoScalingConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AutoScalingConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AutoScalingConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AutoScalingConfiguration resource accepts the following input properties:
- Auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- Compartment
Id string (Updatable) The OCID of the compartment containing the autoscaling configuration.
- Policies
List<Auto
Scaling Configuration Policy Args> Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- Cool
Down intIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, object>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Enabled bool Whether the autoscaling policy is enabled.
- Auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- Compartment
Id string (Updatable) The OCID of the compartment containing the autoscaling configuration.
- Policies
[]Auto
Scaling Configuration Policy Args Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- Cool
Down intIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]interface{}
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Enabled bool Whether the autoscaling policy is enabled.
- auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id String (Updatable) The OCID of the compartment containing the autoscaling configuration.
- policies
List<Auto
Scaling Configuration Policy Args> Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- cool
Down IntegerIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,Object>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Enabled Boolean Whether the autoscaling policy is enabled.
- auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id string (Updatable) The OCID of the compartment containing the autoscaling configuration.
- policies
Auto
Scaling Configuration Policy Args[] Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- cool
Down numberIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: any}
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Enabled boolean Whether the autoscaling policy is enabled.
- auto_
scaling_ Autoresources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment_
id str (Updatable) The OCID of the compartment containing the autoscaling configuration.
- policies
Auto
Scaling Configuration Policy Args] Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- cool_
down_ intin_ seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, Any]
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is_
enabled bool Whether the autoscaling policy is enabled.
- auto
Scaling Property MapResources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id String (Updatable) The OCID of the compartment containing the autoscaling configuration.
- policies List<Property Map>
Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- cool
Down NumberIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<Any>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Enabled Boolean Whether the autoscaling policy is enabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the AutoScalingConfiguration resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Max
Resource intCount The maximum number of resources to scale out to.
- Min
Resource intCount The minimum number of resources to scale in to.
- Time
Created string The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Id string
The provider-assigned unique ID for this managed resource.
- Max
Resource intCount The maximum number of resources to scale out to.
- Min
Resource intCount The minimum number of resources to scale in to.
- Time
Created string The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id String
The provider-assigned unique ID for this managed resource.
- max
Resource IntegerCount The maximum number of resources to scale out to.
- min
Resource IntegerCount The minimum number of resources to scale in to.
- time
Created String The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id string
The provider-assigned unique ID for this managed resource.
- max
Resource numberCount The maximum number of resources to scale out to.
- min
Resource numberCount The minimum number of resources to scale in to.
- time
Created string The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id str
The provider-assigned unique ID for this managed resource.
- max_
resource_ intcount The maximum number of resources to scale out to.
- min_
resource_ intcount The minimum number of resources to scale in to.
- time_
created str The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id String
The provider-assigned unique ID for this managed resource.
- max
Resource NumberCount The maximum number of resources to scale out to.
- min
Resource NumberCount The minimum number of resources to scale in to.
- time
Created String The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Look up Existing AutoScalingConfiguration Resource
Get an existing AutoScalingConfiguration 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?: AutoScalingConfigurationState, opts?: CustomResourceOptions): AutoScalingConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_scaling_resources: Optional[_autoscaling.AutoScalingConfigurationAutoScalingResourcesArgs] = None,
compartment_id: Optional[str] = None,
cool_down_in_seconds: Optional[int] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
is_enabled: Optional[bool] = None,
max_resource_count: Optional[int] = None,
min_resource_count: Optional[int] = None,
policies: Optional[Sequence[_autoscaling.AutoScalingConfigurationPolicyArgs]] = None,
time_created: Optional[str] = None) -> AutoScalingConfiguration
func GetAutoScalingConfiguration(ctx *Context, name string, id IDInput, state *AutoScalingConfigurationState, opts ...ResourceOption) (*AutoScalingConfiguration, error)
public static AutoScalingConfiguration Get(string name, Input<string> id, AutoScalingConfigurationState? state, CustomResourceOptions? opts = null)
public static AutoScalingConfiguration get(String name, Output<String> id, AutoScalingConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- Compartment
Id string (Updatable) The OCID of the compartment containing the autoscaling configuration.
- Cool
Down intIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, object>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Enabled bool Whether the autoscaling policy is enabled.
- Max
Resource intCount The maximum number of resources to scale out to.
- Min
Resource intCount The minimum number of resources to scale in to.
- Policies
List<Auto
Scaling Configuration Policy Args> Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- Time
Created string The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- Compartment
Id string (Updatable) The OCID of the compartment containing the autoscaling configuration.
- Cool
Down intIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]interface{}
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Enabled bool Whether the autoscaling policy is enabled.
- Max
Resource intCount The maximum number of resources to scale out to.
- Min
Resource intCount The minimum number of resources to scale in to.
- Policies
[]Auto
Scaling Configuration Policy Args Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- Time
Created string The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id String (Updatable) The OCID of the compartment containing the autoscaling configuration.
- cool
Down IntegerIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,Object>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Enabled Boolean Whether the autoscaling policy is enabled.
- max
Resource IntegerCount The maximum number of resources to scale out to.
- min
Resource IntegerCount The minimum number of resources to scale in to.
- policies
List<Auto
Scaling Configuration Policy Args> Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- time
Created String The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id string (Updatable) The OCID of the compartment containing the autoscaling configuration.
- cool
Down numberIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: any}
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Enabled boolean Whether the autoscaling policy is enabled.
- max
Resource numberCount The maximum number of resources to scale out to.
- min
Resource numberCount The minimum number of resources to scale in to.
- policies
Auto
Scaling Configuration Policy Args[] Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- time
Created string The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- auto_
scaling_ Autoresources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment_
id str (Updatable) The OCID of the compartment containing the autoscaling configuration.
- cool_
down_ intin_ seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, Any]
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is_
enabled bool Whether the autoscaling policy is enabled.
- max_
resource_ intcount The maximum number of resources to scale out to.
- min_
resource_ intcount The minimum number of resources to scale in to.
- policies
Auto
Scaling Configuration Policy Args] Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- time_
created str The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- auto
Scaling Property MapResources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id String (Updatable) The OCID of the compartment containing the autoscaling configuration.
- cool
Down NumberIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<Any>
(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Enabled Boolean Whether the autoscaling policy is enabled.
- max
Resource NumberCount The maximum number of resources to scale out to.
- min
Resource NumberCount The minimum number of resources to scale in to.
- policies List<Property Map>
Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- time
Created String The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Supporting Types
AutoScalingConfigurationAutoScalingResources
AutoScalingConfigurationPolicy
- Policy
Type string The type of autoscaling policy.
- Capacity
Auto
Scaling Configuration Policy Capacity The capacity requirements of the autoscaling policy.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Execution
Schedule AutoScaling Configuration Policy Execution Schedule An execution schedule for an autoscaling policy.
- Id string
The OCID of the resource that is managed by the autoscaling configuration.
- Is
Enabled bool Whether the autoscaling policy is enabled.
- Resource
Action AutoScaling Configuration Policy Resource Action An action that can be executed against a resource.
- Rules
List<Auto
Scaling Configuration Policy Rule> - Time
Created string The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Policy
Type string The type of autoscaling policy.
- Capacity
Auto
Scaling Configuration Policy Capacity The capacity requirements of the autoscaling policy.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Execution
Schedule AutoScaling Configuration Policy Execution Schedule An execution schedule for an autoscaling policy.
- Id string
The OCID of the resource that is managed by the autoscaling configuration.
- Is
Enabled bool Whether the autoscaling policy is enabled.
- Resource
Action AutoScaling Configuration Policy Resource Action An action that can be executed against a resource.
- Rules
[]Auto
Scaling Configuration Policy Rule - Time
Created string The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- policy
Type String The type of autoscaling policy.
- capacity
Auto
Scaling Configuration Policy Capacity The capacity requirements of the autoscaling policy.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- execution
Schedule AutoScaling Configuration Policy Execution Schedule An execution schedule for an autoscaling policy.
- id String
The OCID of the resource that is managed by the autoscaling configuration.
- is
Enabled Boolean Whether the autoscaling policy is enabled.
- resource
Action AutoScaling Configuration Policy Resource Action An action that can be executed against a resource.
- rules
List<Auto
Scaling Configuration Policy Rule> - time
Created String The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- policy
Type string The type of autoscaling policy.
- capacity
Auto
Scaling Configuration Policy Capacity The capacity requirements of the autoscaling policy.
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- execution
Schedule AutoScaling Configuration Policy Execution Schedule An execution schedule for an autoscaling policy.
- id string
The OCID of the resource that is managed by the autoscaling configuration.
- is
Enabled boolean Whether the autoscaling policy is enabled.
- resource
Action AutoScaling Configuration Policy Resource Action An action that can be executed against a resource.
- rules
Auto
Scaling Configuration Policy Rule[] - time
Created string The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- policy_
type str The type of autoscaling policy.
- capacity
Auto
Scaling Configuration Policy Capacity The capacity requirements of the autoscaling policy.
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- execution_
schedule AutoScaling Configuration Policy Execution Schedule An execution schedule for an autoscaling policy.
- id str
The OCID of the resource that is managed by the autoscaling configuration.
- is_
enabled bool Whether the autoscaling policy is enabled.
- resource_
action AutoScaling Configuration Policy Resource Action An action that can be executed against a resource.
- rules
Auto
Scaling Configuration Policy Rule] - time_
created str The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- policy
Type String The type of autoscaling policy.
- capacity Property Map
The capacity requirements of the autoscaling policy.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- execution
Schedule Property Map An execution schedule for an autoscaling policy.
- id String
The OCID of the resource that is managed by the autoscaling configuration.
- is
Enabled Boolean Whether the autoscaling policy is enabled.
- resource
Action Property Map An action that can be executed against a resource.
- rules List<Property Map>
- time
Created String The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
AutoScalingConfigurationPolicyCapacity
- Initial int
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule that's defined in the autoscaling policy.
- Max int
For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).
For a schedule-based autoscaling policy, this value is not used.
- Min int
For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).
For a schedule-based autoscaling policy, this value is not used.
- Initial int
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule that's defined in the autoscaling policy.
- Max int
For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).
For a schedule-based autoscaling policy, this value is not used.
- Min int
For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).
For a schedule-based autoscaling policy, this value is not used.
- initial Integer
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule that's defined in the autoscaling policy.
- max Integer
For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).
For a schedule-based autoscaling policy, this value is not used.
- min Integer
For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).
For a schedule-based autoscaling policy, this value is not used.
- initial number
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule that's defined in the autoscaling policy.
- max number
For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).
For a schedule-based autoscaling policy, this value is not used.
- min number
For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).
For a schedule-based autoscaling policy, this value is not used.
- initial int
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule that's defined in the autoscaling policy.
- max int
For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).
For a schedule-based autoscaling policy, this value is not used.
- min int
For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).
For a schedule-based autoscaling policy, this value is not used.
- initial Number
For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule that's defined in the autoscaling policy.
- max Number
For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).
For a schedule-based autoscaling policy, this value is not used.
- min Number
For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).
For a schedule-based autoscaling policy, this value is not used.
AutoScalingConfigurationPolicyExecutionSchedule
- Expression string
A cron expression that represents the time at which to execute the autoscaling policy.
Cron expressions have this format:
<second> <minute> <hour> <day of month> <month> <day of week> <year>
You can use special characters that are supported with the Quartz cron implementation.
You must specify
0
as the value for seconds.Example:
0 15 10 ? * *
- Timezone string
The time zone for the execution schedule.
- Type string
The type of action to take.
- Expression string
A cron expression that represents the time at which to execute the autoscaling policy.
Cron expressions have this format:
<second> <minute> <hour> <day of month> <month> <day of week> <year>
You can use special characters that are supported with the Quartz cron implementation.
You must specify
0
as the value for seconds.Example:
0 15 10 ? * *
- Timezone string
The time zone for the execution schedule.
- Type string
The type of action to take.
- expression String
A cron expression that represents the time at which to execute the autoscaling policy.
Cron expressions have this format:
<second> <minute> <hour> <day of month> <month> <day of week> <year>
You can use special characters that are supported with the Quartz cron implementation.
You must specify
0
as the value for seconds.Example:
0 15 10 ? * *
- timezone String
The time zone for the execution schedule.
- type String
The type of action to take.
- expression string
A cron expression that represents the time at which to execute the autoscaling policy.
Cron expressions have this format:
<second> <minute> <hour> <day of month> <month> <day of week> <year>
You can use special characters that are supported with the Quartz cron implementation.
You must specify
0
as the value for seconds.Example:
0 15 10 ? * *
- timezone string
The time zone for the execution schedule.
- type string
The type of action to take.
- expression str
A cron expression that represents the time at which to execute the autoscaling policy.
Cron expressions have this format:
<second> <minute> <hour> <day of month> <month> <day of week> <year>
You can use special characters that are supported with the Quartz cron implementation.
You must specify
0
as the value for seconds.Example:
0 15 10 ? * *
- timezone str
The time zone for the execution schedule.
- type str
The type of action to take.
- expression String
A cron expression that represents the time at which to execute the autoscaling policy.
Cron expressions have this format:
<second> <minute> <hour> <day of month> <month> <day of week> <year>
You can use special characters that are supported with the Quartz cron implementation.
You must specify
0
as the value for seconds.Example:
0 15 10 ? * *
- timezone String
The time zone for the execution schedule.
- type String
The type of action to take.
AutoScalingConfigurationPolicyResourceAction
- Action string
The action to take when autoscaling is triggered.
- Action
Type string The type of resource action.
- Action string
The action to take when autoscaling is triggered.
- Action
Type string The type of resource action.
- action String
The action to take when autoscaling is triggered.
- action
Type String The type of resource action.
- action string
The action to take when autoscaling is triggered.
- action
Type string The type of resource action.
- action str
The action to take when autoscaling is triggered.
- action_
type str The type of resource action.
- action String
The action to take when autoscaling is triggered.
- action
Type String The type of resource action.
AutoScalingConfigurationPolicyRule
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Action
Auto
Scaling Configuration Policy Rule Action The action to take when autoscaling is triggered.
- Id string
The OCID of the resource that is managed by the autoscaling configuration.
- Metric
Auto
Scaling Configuration Policy Rule Metric Metric and threshold details for triggering an autoscaling action.
- Display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Action
Auto
Scaling Configuration Policy Rule Action The action to take when autoscaling is triggered.
- Id string
The OCID of the resource that is managed by the autoscaling configuration.
- Metric
Auto
Scaling Configuration Policy Rule Metric Metric and threshold details for triggering an autoscaling action.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- action
Auto
Scaling Configuration Policy Rule Action The action to take when autoscaling is triggered.
- id String
The OCID of the resource that is managed by the autoscaling configuration.
- metric
Auto
Scaling Configuration Policy Rule Metric Metric and threshold details for triggering an autoscaling action.
- display
Name string A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- action
Auto
Scaling Configuration Policy Rule Action The action to take when autoscaling is triggered.
- id string
The OCID of the resource that is managed by the autoscaling configuration.
- metric
Auto
Scaling Configuration Policy Rule Metric Metric and threshold details for triggering an autoscaling action.
- display_
name str A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- action
Auto
Scaling Configuration Policy Rule Action The action to take when autoscaling is triggered.
- id str
The OCID of the resource that is managed by the autoscaling configuration.
- metric
Auto
Scaling Configuration Policy Rule Metric Metric and threshold details for triggering an autoscaling action.
- display
Name String A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- action Property Map
The action to take when autoscaling is triggered.
- id String
The OCID of the resource that is managed by the autoscaling configuration.
- metric Property Map
Metric and threshold details for triggering an autoscaling action.
AutoScalingConfigurationPolicyRuleAction
AutoScalingConfigurationPolicyRuleMetric
- metric
Type String - threshold Property Map
AutoScalingConfigurationPolicyRuleMetricThreshold
- Operator string
The comparison operator to use. Options are greater than (
GT
), greater than or equal to (GTE
), less than (LT
), and less than or equal to (LTE
).- Value int
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Operator string
The comparison operator to use. Options are greater than (
GT
), greater than or equal to (GTE
), less than (LT
), and less than or equal to (LTE
).- Value int
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- operator String
The comparison operator to use. Options are greater than (
GT
), greater than or equal to (GTE
), less than (LT
), and less than or equal to (LTE
).- value Integer
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- operator string
The comparison operator to use. Options are greater than (
GT
), greater than or equal to (GTE
), less than (LT
), and less than or equal to (LTE
).- value number
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- operator str
The comparison operator to use. Options are greater than (
GT
), greater than or equal to (GTE
), less than (LT
), and less than or equal to (LTE
).- value int
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- operator String
The comparison operator to use. Options are greater than (
GT
), greater than or equal to (GTE
), less than (LT
), and less than or equal to (LTE
).- value Number
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
AutoScalingConfigurations can be imported using the id
, e.g.
$ pulumi import oci:Autoscaling/autoScalingConfiguration:AutoScalingConfiguration test_auto_scaling_configuration "id"
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.