1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Autoscaling
  5. AutoScalingConfiguration
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.Autoscaling.AutoScalingConfiguration

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    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.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Auto_scaling_configuration_display_name),
    			FreeformTags: pulumi.Map{
    				"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=var["auto_scaling_configuration_auto_scaling_resources_id"],
            type=var["auto_scaling_configuration_auto_scaling_resources_type"],
        ),
        compartment_id=var["compartment_id"],
        policies=[oci.autoscaling.AutoScalingConfigurationPolicyArgs(
            policy_type=var["auto_scaling_configuration_policies_policy_type"],
            capacity=oci.autoscaling.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"],
            ),
            display_name=var["auto_scaling_configuration_policies_display_name"],
            execution_schedule=oci.autoscaling.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"],
            ),
            is_enabled=var["auto_scaling_configuration_policies_is_enabled"],
            resource_action=oci.autoscaling.AutoScalingConfigurationPolicyResourceActionArgs(
                action=var["auto_scaling_configuration_policies_resource_action_action"],
                action_type=var["auto_scaling_configuration_policies_resource_action_action_type"],
            ),
            rules=[oci.autoscaling.AutoScalingConfigurationPolicyRuleArgs(
                action=oci.autoscaling.AutoScalingConfigurationPolicyRuleActionArgs(
                    type=var["auto_scaling_configuration_policies_rules_action_type"],
                    value=var["auto_scaling_configuration_policies_rules_action_value"],
                ),
                display_name=var["auto_scaling_configuration_policies_rules_display_name"],
                metric=oci.autoscaling.AutoScalingConfigurationPolicyRuleMetricArgs(
                    metric_type=var["auto_scaling_configuration_policies_rules_metric_metric_type"],
                    threshold=oci.autoscaling.AutoScalingConfigurationPolicyRuleMetricThresholdArgs(
                        operator=var["auto_scaling_configuration_policies_rules_metric_threshold_operator"],
                        value=var["auto_scaling_configuration_policies_rules_metric_threshold_value"],
                    ),
                ),
            )],
        )],
        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:

    AutoScalingResources AutoScalingConfigurationAutoScalingResources

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    CompartmentId string
    (Updatable) The OCID of the compartment containing the autoscaling configuration.
    Policies List<AutoScalingConfigurationPolicy>
    Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
    CoolDownInSeconds int

    (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.

    DefinedTags 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"}
    DisplayName string
    FreeformTags 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"}
    IsEnabled bool
    Whether the autoscaling policy is enabled.
    AutoScalingResources AutoScalingConfigurationAutoScalingResourcesArgs

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    CompartmentId string
    (Updatable) The OCID of the compartment containing the autoscaling configuration.
    Policies []AutoScalingConfigurationPolicyArgs
    Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
    CoolDownInSeconds int

    (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.

    DefinedTags 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"}
    DisplayName string
    FreeformTags 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"}
    IsEnabled bool
    Whether the autoscaling policy is enabled.
    autoScalingResources AutoScalingConfigurationAutoScalingResources

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    compartmentId String
    (Updatable) The OCID of the compartment containing the autoscaling configuration.
    policies List<AutoScalingConfigurationPolicy>
    Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
    coolDownInSeconds Integer

    (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.

    definedTags 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"}
    displayName String
    freeformTags 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"}
    isEnabled Boolean
    Whether the autoscaling policy is enabled.
    autoScalingResources AutoScalingConfigurationAutoScalingResources

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    compartmentId string
    (Updatable) The OCID of the compartment containing the autoscaling configuration.
    policies AutoScalingConfigurationPolicy[]
    Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
    coolDownInSeconds number

    (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.

    definedTags {[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"}
    displayName string
    freeformTags {[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"}
    isEnabled boolean
    Whether the autoscaling policy is enabled.
    auto_scaling_resources AutoScalingConfigurationAutoScalingResourcesArgs

    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 AutoScalingConfigurationPolicyArgs]
    Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
    cool_down_in_seconds int

    (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.

    defined_tags 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
    freeform_tags 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.
    autoScalingResources Property Map

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    compartmentId 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.
    coolDownInSeconds Number

    (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.

    definedTags 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"}
    displayName String
    freeformTags 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"}
    isEnabled 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.
    MaxResourceCount int
    The maximum number of resources to scale out to.
    MinResourceCount int
    The minimum number of resources to scale in to.
    TimeCreated 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.
    MaxResourceCount int
    The maximum number of resources to scale out to.
    MinResourceCount int
    The minimum number of resources to scale in to.
    TimeCreated 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.
    maxResourceCount Integer
    The maximum number of resources to scale out to.
    minResourceCount Integer
    The minimum number of resources to scale in to.
    timeCreated 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.
    maxResourceCount number
    The maximum number of resources to scale out to.
    minResourceCount number
    The minimum number of resources to scale in to.
    timeCreated 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_count int
    The maximum number of resources to scale out to.
    min_resource_count int
    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.
    maxResourceCount Number
    The maximum number of resources to scale out to.
    minResourceCount Number
    The minimum number of resources to scale in to.
    timeCreated 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.
    The following state arguments are supported:
    AutoScalingResources AutoScalingConfigurationAutoScalingResources

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    CompartmentId string
    (Updatable) The OCID of the compartment containing the autoscaling configuration.
    CoolDownInSeconds int

    (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.

    DefinedTags 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"}
    DisplayName string
    FreeformTags 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"}
    IsEnabled bool
    Whether the autoscaling policy is enabled.
    MaxResourceCount int
    The maximum number of resources to scale out to.
    MinResourceCount int
    The minimum number of resources to scale in to.
    Policies List<AutoScalingConfigurationPolicy>
    Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
    TimeCreated string
    The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    AutoScalingResources AutoScalingConfigurationAutoScalingResourcesArgs

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    CompartmentId string
    (Updatable) The OCID of the compartment containing the autoscaling configuration.
    CoolDownInSeconds int

    (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.

    DefinedTags 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"}
    DisplayName string
    FreeformTags 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"}
    IsEnabled bool
    Whether the autoscaling policy is enabled.
    MaxResourceCount int
    The maximum number of resources to scale out to.
    MinResourceCount int
    The minimum number of resources to scale in to.
    Policies []AutoScalingConfigurationPolicyArgs
    Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
    TimeCreated string
    The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    autoScalingResources AutoScalingConfigurationAutoScalingResources

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    compartmentId String
    (Updatable) The OCID of the compartment containing the autoscaling configuration.
    coolDownInSeconds Integer

    (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.

    definedTags 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"}
    displayName String
    freeformTags 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"}
    isEnabled Boolean
    Whether the autoscaling policy is enabled.
    maxResourceCount Integer
    The maximum number of resources to scale out to.
    minResourceCount Integer
    The minimum number of resources to scale in to.
    policies List<AutoScalingConfigurationPolicy>
    Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
    timeCreated String
    The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    autoScalingResources AutoScalingConfigurationAutoScalingResources

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    compartmentId string
    (Updatable) The OCID of the compartment containing the autoscaling configuration.
    coolDownInSeconds number

    (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.

    definedTags {[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"}
    displayName string
    freeformTags {[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"}
    isEnabled boolean
    Whether the autoscaling policy is enabled.
    maxResourceCount number
    The maximum number of resources to scale out to.
    minResourceCount number
    The minimum number of resources to scale in to.
    policies AutoScalingConfigurationPolicy[]
    Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
    timeCreated 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_resources AutoScalingConfigurationAutoScalingResourcesArgs

    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_in_seconds int

    (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.

    defined_tags 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
    freeform_tags 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_count int
    The maximum number of resources to scale out to.
    min_resource_count int
    The minimum number of resources to scale in to.
    policies AutoScalingConfigurationPolicyArgs]
    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
    autoScalingResources Property Map

    A resource that is managed by an autoscaling configuration. The only supported type is instancePool.

    Each instance pool can have one autoscaling configuration.

    compartmentId String
    (Updatable) The OCID of the compartment containing the autoscaling configuration.
    coolDownInSeconds Number

    (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.

    definedTags 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"}
    displayName String
    freeformTags 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"}
    isEnabled Boolean
    Whether the autoscaling policy is enabled.
    maxResourceCount Number
    The maximum number of resources to scale out to.
    minResourceCount Number
    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.
    timeCreated 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, AutoScalingConfigurationAutoScalingResourcesArgs

    Id string
    The OCID of the resource that is managed by the autoscaling configuration.
    Type string
    The type of action to take.
    Id string
    The OCID of the resource that is managed by the autoscaling configuration.
    Type string
    The type of action to take.
    id String
    The OCID of the resource that is managed by the autoscaling configuration.
    type String
    The type of action to take.
    id string
    The OCID of the resource that is managed by the autoscaling configuration.
    type string
    The type of action to take.
    id str
    The OCID of the resource that is managed by the autoscaling configuration.
    type str
    The type of action to take.
    id String
    The OCID of the resource that is managed by the autoscaling configuration.
    type String
    The type of action to take.

    AutoScalingConfigurationPolicy, AutoScalingConfigurationPolicyArgs

    PolicyType string
    The type of autoscaling policy.
    Capacity AutoScalingConfigurationPolicyCapacity
    The capacity requirements of the autoscaling policy.
    DisplayName string
    ExecutionSchedule AutoScalingConfigurationPolicyExecutionSchedule
    An execution schedule for an autoscaling policy.
    Id string
    The OCID of the resource that is managed by the autoscaling configuration.
    IsEnabled bool
    Whether the autoscaling policy is enabled.
    ResourceAction AutoScalingConfigurationPolicyResourceAction
    An action that can be executed against a resource.
    Rules List<AutoScalingConfigurationPolicyRule>
    TimeCreated string
    The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    PolicyType string
    The type of autoscaling policy.
    Capacity AutoScalingConfigurationPolicyCapacity
    The capacity requirements of the autoscaling policy.
    DisplayName string
    ExecutionSchedule AutoScalingConfigurationPolicyExecutionSchedule
    An execution schedule for an autoscaling policy.
    Id string
    The OCID of the resource that is managed by the autoscaling configuration.
    IsEnabled bool
    Whether the autoscaling policy is enabled.
    ResourceAction AutoScalingConfigurationPolicyResourceAction
    An action that can be executed against a resource.
    Rules []AutoScalingConfigurationPolicyRule
    TimeCreated string
    The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    policyType String
    The type of autoscaling policy.
    capacity AutoScalingConfigurationPolicyCapacity
    The capacity requirements of the autoscaling policy.
    displayName String
    executionSchedule AutoScalingConfigurationPolicyExecutionSchedule
    An execution schedule for an autoscaling policy.
    id String
    The OCID of the resource that is managed by the autoscaling configuration.
    isEnabled Boolean
    Whether the autoscaling policy is enabled.
    resourceAction AutoScalingConfigurationPolicyResourceAction
    An action that can be executed against a resource.
    rules List<AutoScalingConfigurationPolicyRule>
    timeCreated String
    The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    policyType string
    The type of autoscaling policy.
    capacity AutoScalingConfigurationPolicyCapacity
    The capacity requirements of the autoscaling policy.
    displayName string
    executionSchedule AutoScalingConfigurationPolicyExecutionSchedule
    An execution schedule for an autoscaling policy.
    id string
    The OCID of the resource that is managed by the autoscaling configuration.
    isEnabled boolean
    Whether the autoscaling policy is enabled.
    resourceAction AutoScalingConfigurationPolicyResourceAction
    An action that can be executed against a resource.
    rules AutoScalingConfigurationPolicyRule[]
    timeCreated 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 AutoScalingConfigurationPolicyCapacity
    The capacity requirements of the autoscaling policy.
    display_name str
    execution_schedule AutoScalingConfigurationPolicyExecutionSchedule
    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 AutoScalingConfigurationPolicyResourceAction
    An action that can be executed against a resource.
    rules AutoScalingConfigurationPolicyRule]
    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
    policyType String
    The type of autoscaling policy.
    capacity Property Map
    The capacity requirements of the autoscaling policy.
    displayName String
    executionSchedule Property Map
    An execution schedule for an autoscaling policy.
    id String
    The OCID of the resource that is managed by the autoscaling configuration.
    isEnabled Boolean
    Whether the autoscaling policy is enabled.
    resourceAction Property Map
    An action that can be executed against a resource.
    rules List<Property Map>
    timeCreated String
    The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

    AutoScalingConfigurationPolicyCapacity, AutoScalingConfigurationPolicyCapacityArgs

    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, AutoScalingConfigurationPolicyExecutionScheduleArgs

    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, AutoScalingConfigurationPolicyResourceActionArgs

    Action string
    The action to take when autoscaling is triggered.
    ActionType string
    The type of resource action.
    Action string
    The action to take when autoscaling is triggered.
    ActionType string
    The type of resource action.
    action String
    The action to take when autoscaling is triggered.
    actionType String
    The type of resource action.
    action string
    The action to take when autoscaling is triggered.
    actionType 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.
    actionType String
    The type of resource action.

    AutoScalingConfigurationPolicyRule, AutoScalingConfigurationPolicyRuleArgs

    DisplayName string
    Action AutoScalingConfigurationPolicyRuleAction
    The action to take when autoscaling is triggered.
    Id string
    The OCID of the resource that is managed by the autoscaling configuration.
    Metric AutoScalingConfigurationPolicyRuleMetric
    Metric and threshold details for triggering an autoscaling action.
    DisplayName string
    Action AutoScalingConfigurationPolicyRuleAction
    The action to take when autoscaling is triggered.
    Id string
    The OCID of the resource that is managed by the autoscaling configuration.
    Metric AutoScalingConfigurationPolicyRuleMetric
    Metric and threshold details for triggering an autoscaling action.
    displayName String
    action AutoScalingConfigurationPolicyRuleAction
    The action to take when autoscaling is triggered.
    id String
    The OCID of the resource that is managed by the autoscaling configuration.
    metric AutoScalingConfigurationPolicyRuleMetric
    Metric and threshold details for triggering an autoscaling action.
    displayName string
    action AutoScalingConfigurationPolicyRuleAction
    The action to take when autoscaling is triggered.
    id string
    The OCID of the resource that is managed by the autoscaling configuration.
    metric AutoScalingConfigurationPolicyRuleMetric
    Metric and threshold details for triggering an autoscaling action.
    display_name str
    action AutoScalingConfigurationPolicyRuleAction
    The action to take when autoscaling is triggered.
    id str
    The OCID of the resource that is managed by the autoscaling configuration.
    metric AutoScalingConfigurationPolicyRuleMetric
    Metric and threshold details for triggering an autoscaling action.
    displayName String
    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, AutoScalingConfigurationPolicyRuleActionArgs

    Type string
    The type of action to take.
    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
    Type string
    The type of action to take.
    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
    type String
    The type of action to take.
    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
    type string
    The type of action to take.
    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
    type str
    The type of action to take.
    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
    type String
    The type of action to take.
    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

    AutoScalingConfigurationPolicyRuleMetric, AutoScalingConfigurationPolicyRuleMetricArgs

    AutoScalingConfigurationPolicyRuleMetricThreshold, AutoScalingConfigurationPolicyRuleMetricThresholdArgs

    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.
    oci logo
    Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi