1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Autoscaling
  5. AutoScalingConfiguration
Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi

oci.Autoscaling.AutoScalingConfiguration

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.12.0 published on Friday, Oct 11, 2024 by Pulumi

    This resource provides the Auto Scaling Configuration resource in Oracle Cloud Infrastructure Auto Scaling service.

    Creates an autoscaling configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutoScalingConfiguration = new oci.autoscaling.AutoScalingConfiguration("test_auto_scaling_configuration", {
        autoScalingResources: {
            id: autoScalingConfigurationAutoScalingResourcesId,
            type: autoScalingConfigurationAutoScalingResourcesType,
        },
        compartmentId: compartmentId,
        policies: [{
            policyType: autoScalingConfigurationPoliciesPolicyType,
            capacity: {
                initial: autoScalingConfigurationPoliciesCapacityInitial,
                max: autoScalingConfigurationPoliciesCapacityMax,
                min: autoScalingConfigurationPoliciesCapacityMin,
            },
            displayName: autoScalingConfigurationPoliciesDisplayName,
            executionSchedule: {
                expression: autoScalingConfigurationPoliciesExecutionScheduleExpression,
                timezone: autoScalingConfigurationPoliciesExecutionScheduleTimezone,
                type: autoScalingConfigurationPoliciesExecutionScheduleType,
            },
            isEnabled: autoScalingConfigurationPoliciesIsEnabled,
            resourceAction: {
                action: autoScalingConfigurationPoliciesResourceActionAction,
                actionType: autoScalingConfigurationPoliciesResourceActionActionType,
            },
            rules: [{
                action: {
                    type: autoScalingConfigurationPoliciesRulesActionType,
                    value: autoScalingConfigurationPoliciesRulesActionValue,
                },
                displayName: autoScalingConfigurationPoliciesRulesDisplayName,
                metric: {
                    metricType: autoScalingConfigurationPoliciesRulesMetricMetricType,
                    threshold: {
                        operator: autoScalingConfigurationPoliciesRulesMetricThresholdOperator,
                        value: autoScalingConfigurationPoliciesRulesMetricThresholdValue,
                    },
                },
            }],
        }],
        coolDownInSeconds: autoScalingConfigurationCoolDownInSeconds,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: autoScalingConfigurationDisplayName,
        freeformTags: {
            Department: "Finance",
        },
        isEnabled: autoScalingConfigurationIsEnabled,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_auto_scaling_configuration = oci.autoscaling.AutoScalingConfiguration("test_auto_scaling_configuration",
        auto_scaling_resources={
            "id": auto_scaling_configuration_auto_scaling_resources_id,
            "type": auto_scaling_configuration_auto_scaling_resources_type,
        },
        compartment_id=compartment_id,
        policies=[{
            "policy_type": auto_scaling_configuration_policies_policy_type,
            "capacity": {
                "initial": auto_scaling_configuration_policies_capacity_initial,
                "max": auto_scaling_configuration_policies_capacity_max,
                "min": auto_scaling_configuration_policies_capacity_min,
            },
            "display_name": auto_scaling_configuration_policies_display_name,
            "execution_schedule": {
                "expression": auto_scaling_configuration_policies_execution_schedule_expression,
                "timezone": auto_scaling_configuration_policies_execution_schedule_timezone,
                "type": auto_scaling_configuration_policies_execution_schedule_type,
            },
            "is_enabled": auto_scaling_configuration_policies_is_enabled,
            "resource_action": {
                "action": auto_scaling_configuration_policies_resource_action_action,
                "action_type": auto_scaling_configuration_policies_resource_action_action_type,
            },
            "rules": [{
                "action": {
                    "type": auto_scaling_configuration_policies_rules_action_type,
                    "value": auto_scaling_configuration_policies_rules_action_value,
                },
                "display_name": auto_scaling_configuration_policies_rules_display_name,
                "metric": {
                    "metric_type": auto_scaling_configuration_policies_rules_metric_metric_type,
                    "threshold": {
                        "operator": auto_scaling_configuration_policies_rules_metric_threshold_operator,
                        "value": auto_scaling_configuration_policies_rules_metric_threshold_value,
                    },
                },
            }],
        }],
        cool_down_in_seconds=auto_scaling_configuration_cool_down_in_seconds,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=auto_scaling_configuration_display_name,
        freeform_tags={
            "Department": "Finance",
        },
        is_enabled=auto_scaling_configuration_is_enabled)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Autoscaling"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Autoscaling.NewAutoScalingConfiguration(ctx, "test_auto_scaling_configuration", &Autoscaling.AutoScalingConfigurationArgs{
    			AutoScalingResources: &autoscaling.AutoScalingConfigurationAutoScalingResourcesArgs{
    				Id:   pulumi.Any(autoScalingConfigurationAutoScalingResourcesId),
    				Type: pulumi.Any(autoScalingConfigurationAutoScalingResourcesType),
    			},
    			CompartmentId: pulumi.Any(compartmentId),
    			Policies: autoscaling.AutoScalingConfigurationPolicyArray{
    				&autoscaling.AutoScalingConfigurationPolicyArgs{
    					PolicyType: pulumi.Any(autoScalingConfigurationPoliciesPolicyType),
    					Capacity: &autoscaling.AutoScalingConfigurationPolicyCapacityArgs{
    						Initial: pulumi.Any(autoScalingConfigurationPoliciesCapacityInitial),
    						Max:     pulumi.Any(autoScalingConfigurationPoliciesCapacityMax),
    						Min:     pulumi.Any(autoScalingConfigurationPoliciesCapacityMin),
    					},
    					DisplayName: pulumi.Any(autoScalingConfigurationPoliciesDisplayName),
    					ExecutionSchedule: &autoscaling.AutoScalingConfigurationPolicyExecutionScheduleArgs{
    						Expression: pulumi.Any(autoScalingConfigurationPoliciesExecutionScheduleExpression),
    						Timezone:   pulumi.Any(autoScalingConfigurationPoliciesExecutionScheduleTimezone),
    						Type:       pulumi.Any(autoScalingConfigurationPoliciesExecutionScheduleType),
    					},
    					IsEnabled: pulumi.Any(autoScalingConfigurationPoliciesIsEnabled),
    					ResourceAction: &autoscaling.AutoScalingConfigurationPolicyResourceActionArgs{
    						Action:     pulumi.Any(autoScalingConfigurationPoliciesResourceActionAction),
    						ActionType: pulumi.Any(autoScalingConfigurationPoliciesResourceActionActionType),
    					},
    					Rules: autoscaling.AutoScalingConfigurationPolicyRuleArray{
    						&autoscaling.AutoScalingConfigurationPolicyRuleArgs{
    							Action: &autoscaling.AutoScalingConfigurationPolicyRuleActionArgs{
    								Type:  pulumi.Any(autoScalingConfigurationPoliciesRulesActionType),
    								Value: pulumi.Any(autoScalingConfigurationPoliciesRulesActionValue),
    							},
    							DisplayName: pulumi.Any(autoScalingConfigurationPoliciesRulesDisplayName),
    							Metric: &autoscaling.AutoScalingConfigurationPolicyRuleMetricArgs{
    								MetricType: pulumi.Any(autoScalingConfigurationPoliciesRulesMetricMetricType),
    								Threshold: &autoscaling.AutoScalingConfigurationPolicyRuleMetricThresholdArgs{
    									Operator: pulumi.Any(autoScalingConfigurationPoliciesRulesMetricThresholdOperator),
    									Value:    pulumi.Any(autoScalingConfigurationPoliciesRulesMetricThresholdValue),
    								},
    							},
    						},
    					},
    				},
    			},
    			CoolDownInSeconds: pulumi.Any(autoScalingConfigurationCoolDownInSeconds),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			DisplayName: pulumi.Any(autoScalingConfigurationDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			IsEnabled: pulumi.Any(autoScalingConfigurationIsEnabled),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAutoScalingConfiguration = new Oci.Autoscaling.AutoScalingConfiguration("test_auto_scaling_configuration", new()
        {
            AutoScalingResources = new Oci.Autoscaling.Inputs.AutoScalingConfigurationAutoScalingResourcesArgs
            {
                Id = autoScalingConfigurationAutoScalingResourcesId,
                Type = autoScalingConfigurationAutoScalingResourcesType,
            },
            CompartmentId = compartmentId,
            Policies = new[]
            {
                new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyArgs
                {
                    PolicyType = autoScalingConfigurationPoliciesPolicyType,
                    Capacity = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyCapacityArgs
                    {
                        Initial = autoScalingConfigurationPoliciesCapacityInitial,
                        Max = autoScalingConfigurationPoliciesCapacityMax,
                        Min = autoScalingConfigurationPoliciesCapacityMin,
                    },
                    DisplayName = autoScalingConfigurationPoliciesDisplayName,
                    ExecutionSchedule = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyExecutionScheduleArgs
                    {
                        Expression = autoScalingConfigurationPoliciesExecutionScheduleExpression,
                        Timezone = autoScalingConfigurationPoliciesExecutionScheduleTimezone,
                        Type = autoScalingConfigurationPoliciesExecutionScheduleType,
                    },
                    IsEnabled = autoScalingConfigurationPoliciesIsEnabled,
                    ResourceAction = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyResourceActionArgs
                    {
                        Action = autoScalingConfigurationPoliciesResourceActionAction,
                        ActionType = autoScalingConfigurationPoliciesResourceActionActionType,
                    },
                    Rules = new[]
                    {
                        new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleArgs
                        {
                            Action = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleActionArgs
                            {
                                Type = autoScalingConfigurationPoliciesRulesActionType,
                                Value = autoScalingConfigurationPoliciesRulesActionValue,
                            },
                            DisplayName = autoScalingConfigurationPoliciesRulesDisplayName,
                            Metric = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleMetricArgs
                            {
                                MetricType = autoScalingConfigurationPoliciesRulesMetricMetricType,
                                Threshold = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleMetricThresholdArgs
                                {
                                    Operator = autoScalingConfigurationPoliciesRulesMetricThresholdOperator,
                                    Value = autoScalingConfigurationPoliciesRulesMetricThresholdValue,
                                },
                            },
                        },
                    },
                },
            },
            CoolDownInSeconds = autoScalingConfigurationCoolDownInSeconds,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = autoScalingConfigurationDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            IsEnabled = autoScalingConfigurationIsEnabled,
        });
    
    });
    
    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(autoScalingConfigurationAutoScalingResourcesId)
                    .type(autoScalingConfigurationAutoScalingResourcesType)
                    .build())
                .compartmentId(compartmentId)
                .policies(AutoScalingConfigurationPolicyArgs.builder()
                    .policyType(autoScalingConfigurationPoliciesPolicyType)
                    .capacity(AutoScalingConfigurationPolicyCapacityArgs.builder()
                        .initial(autoScalingConfigurationPoliciesCapacityInitial)
                        .max(autoScalingConfigurationPoliciesCapacityMax)
                        .min(autoScalingConfigurationPoliciesCapacityMin)
                        .build())
                    .displayName(autoScalingConfigurationPoliciesDisplayName)
                    .executionSchedule(AutoScalingConfigurationPolicyExecutionScheduleArgs.builder()
                        .expression(autoScalingConfigurationPoliciesExecutionScheduleExpression)
                        .timezone(autoScalingConfigurationPoliciesExecutionScheduleTimezone)
                        .type(autoScalingConfigurationPoliciesExecutionScheduleType)
                        .build())
                    .isEnabled(autoScalingConfigurationPoliciesIsEnabled)
                    .resourceAction(AutoScalingConfigurationPolicyResourceActionArgs.builder()
                        .action(autoScalingConfigurationPoliciesResourceActionAction)
                        .actionType(autoScalingConfigurationPoliciesResourceActionActionType)
                        .build())
                    .rules(AutoScalingConfigurationPolicyRuleArgs.builder()
                        .action(AutoScalingConfigurationPolicyRuleActionArgs.builder()
                            .type(autoScalingConfigurationPoliciesRulesActionType)
                            .value(autoScalingConfigurationPoliciesRulesActionValue)
                            .build())
                        .displayName(autoScalingConfigurationPoliciesRulesDisplayName)
                        .metric(AutoScalingConfigurationPolicyRuleMetricArgs.builder()
                            .metricType(autoScalingConfigurationPoliciesRulesMetricMetricType)
                            .threshold(AutoScalingConfigurationPolicyRuleMetricThresholdArgs.builder()
                                .operator(autoScalingConfigurationPoliciesRulesMetricThresholdOperator)
                                .value(autoScalingConfigurationPoliciesRulesMetricThresholdValue)
                                .build())
                            .build())
                        .build())
                    .build())
                .coolDownInSeconds(autoScalingConfigurationCoolDownInSeconds)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(autoScalingConfigurationDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .isEnabled(autoScalingConfigurationIsEnabled)
                .build());
    
        }
    }
    
    resources:
      testAutoScalingConfiguration:
        type: oci:Autoscaling:AutoScalingConfiguration
        name: test_auto_scaling_configuration
        properties:
          autoScalingResources:
            id: ${autoScalingConfigurationAutoScalingResourcesId}
            type: ${autoScalingConfigurationAutoScalingResourcesType}
          compartmentId: ${compartmentId}
          policies:
            - policyType: ${autoScalingConfigurationPoliciesPolicyType}
              capacity:
                initial: ${autoScalingConfigurationPoliciesCapacityInitial}
                max: ${autoScalingConfigurationPoliciesCapacityMax}
                min: ${autoScalingConfigurationPoliciesCapacityMin}
              displayName: ${autoScalingConfigurationPoliciesDisplayName}
              executionSchedule:
                expression: ${autoScalingConfigurationPoliciesExecutionScheduleExpression}
                timezone: ${autoScalingConfigurationPoliciesExecutionScheduleTimezone}
                type: ${autoScalingConfigurationPoliciesExecutionScheduleType}
              isEnabled: ${autoScalingConfigurationPoliciesIsEnabled}
              resourceAction:
                action: ${autoScalingConfigurationPoliciesResourceActionAction}
                actionType: ${autoScalingConfigurationPoliciesResourceActionActionType}
              rules:
                - action:
                    type: ${autoScalingConfigurationPoliciesRulesActionType}
                    value: ${autoScalingConfigurationPoliciesRulesActionValue}
                  displayName: ${autoScalingConfigurationPoliciesRulesDisplayName}
                  metric:
                    metricType: ${autoScalingConfigurationPoliciesRulesMetricMetricType}
                    threshold:
                      operator: ${autoScalingConfigurationPoliciesRulesMetricThresholdOperator}
                      value: ${autoScalingConfigurationPoliciesRulesMetricThresholdValue}
          coolDownInSeconds: ${autoScalingConfigurationCoolDownInSeconds}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${autoScalingConfigurationDisplayName}
          freeformTags:
            Department: Finance
          isEnabled: ${autoScalingConfigurationIsEnabled}
    

    Create AutoScalingConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AutoScalingConfiguration(name: string, args: AutoScalingConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def AutoScalingConfiguration(resource_name: str,
                                 args: AutoScalingConfigurationArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def AutoScalingConfiguration(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 auto_scaling_resources: Optional[_autoscaling.AutoScalingConfigurationAutoScalingResourcesArgs] = None,
                                 compartment_id: Optional[str] = None,
                                 policies: Optional[Sequence[_autoscaling.AutoScalingConfigurationPolicyArgs]] = None,
                                 cool_down_in_seconds: Optional[int] = None,
                                 defined_tags: Optional[Mapping[str, str]] = None,
                                 display_name: Optional[str] = None,
                                 freeform_tags: Optional[Mapping[str, str]] = None,
                                 is_enabled: Optional[bool] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var autoScalingConfigurationResource = new Oci.Autoscaling.AutoScalingConfiguration("autoScalingConfigurationResource", new()
    {
        AutoScalingResources = new Oci.Autoscaling.Inputs.AutoScalingConfigurationAutoScalingResourcesArgs
        {
            Id = "string",
            Type = "string",
        },
        CompartmentId = "string",
        Policies = new[]
        {
            new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyArgs
            {
                PolicyType = "string",
                Capacity = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyCapacityArgs
                {
                    Initial = 0,
                    Max = 0,
                    Min = 0,
                },
                DisplayName = "string",
                ExecutionSchedule = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyExecutionScheduleArgs
                {
                    Expression = "string",
                    Timezone = "string",
                    Type = "string",
                },
                Id = "string",
                IsEnabled = false,
                ResourceAction = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyResourceActionArgs
                {
                    Action = "string",
                    ActionType = "string",
                },
                Rules = new[]
                {
                    new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleArgs
                    {
                        DisplayName = "string",
                        Action = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleActionArgs
                        {
                            Type = "string",
                            Value = 0,
                        },
                        Id = "string",
                        Metric = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleMetricArgs
                        {
                            MetricType = "string",
                            Threshold = new Oci.Autoscaling.Inputs.AutoScalingConfigurationPolicyRuleMetricThresholdArgs
                            {
                                Operator = "string",
                                Value = 0,
                            },
                        },
                    },
                },
                TimeCreated = "string",
            },
        },
        CoolDownInSeconds = 0,
        DefinedTags = 
        {
            { "string", "string" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        IsEnabled = false,
    });
    
    example, err := Autoscaling.NewAutoScalingConfiguration(ctx, "autoScalingConfigurationResource", &Autoscaling.AutoScalingConfigurationArgs{
    	AutoScalingResources: &autoscaling.AutoScalingConfigurationAutoScalingResourcesArgs{
    		Id:   pulumi.String("string"),
    		Type: pulumi.String("string"),
    	},
    	CompartmentId: pulumi.String("string"),
    	Policies: autoscaling.AutoScalingConfigurationPolicyArray{
    		&autoscaling.AutoScalingConfigurationPolicyArgs{
    			PolicyType: pulumi.String("string"),
    			Capacity: &autoscaling.AutoScalingConfigurationPolicyCapacityArgs{
    				Initial: pulumi.Int(0),
    				Max:     pulumi.Int(0),
    				Min:     pulumi.Int(0),
    			},
    			DisplayName: pulumi.String("string"),
    			ExecutionSchedule: &autoscaling.AutoScalingConfigurationPolicyExecutionScheduleArgs{
    				Expression: pulumi.String("string"),
    				Timezone:   pulumi.String("string"),
    				Type:       pulumi.String("string"),
    			},
    			Id:        pulumi.String("string"),
    			IsEnabled: pulumi.Bool(false),
    			ResourceAction: &autoscaling.AutoScalingConfigurationPolicyResourceActionArgs{
    				Action:     pulumi.String("string"),
    				ActionType: pulumi.String("string"),
    			},
    			Rules: autoscaling.AutoScalingConfigurationPolicyRuleArray{
    				&autoscaling.AutoScalingConfigurationPolicyRuleArgs{
    					DisplayName: pulumi.String("string"),
    					Action: &autoscaling.AutoScalingConfigurationPolicyRuleActionArgs{
    						Type:  pulumi.String("string"),
    						Value: pulumi.Int(0),
    					},
    					Id: pulumi.String("string"),
    					Metric: &autoscaling.AutoScalingConfigurationPolicyRuleMetricArgs{
    						MetricType: pulumi.String("string"),
    						Threshold: &autoscaling.AutoScalingConfigurationPolicyRuleMetricThresholdArgs{
    							Operator: pulumi.String("string"),
    							Value:    pulumi.Int(0),
    						},
    					},
    				},
    			},
    			TimeCreated: pulumi.String("string"),
    		},
    	},
    	CoolDownInSeconds: pulumi.Int(0),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	IsEnabled: pulumi.Bool(false),
    })
    
    var autoScalingConfigurationResource = new AutoScalingConfiguration("autoScalingConfigurationResource", AutoScalingConfigurationArgs.builder()
        .autoScalingResources(AutoScalingConfigurationAutoScalingResourcesArgs.builder()
            .id("string")
            .type("string")
            .build())
        .compartmentId("string")
        .policies(AutoScalingConfigurationPolicyArgs.builder()
            .policyType("string")
            .capacity(AutoScalingConfigurationPolicyCapacityArgs.builder()
                .initial(0)
                .max(0)
                .min(0)
                .build())
            .displayName("string")
            .executionSchedule(AutoScalingConfigurationPolicyExecutionScheduleArgs.builder()
                .expression("string")
                .timezone("string")
                .type("string")
                .build())
            .id("string")
            .isEnabled(false)
            .resourceAction(AutoScalingConfigurationPolicyResourceActionArgs.builder()
                .action("string")
                .actionType("string")
                .build())
            .rules(AutoScalingConfigurationPolicyRuleArgs.builder()
                .displayName("string")
                .action(AutoScalingConfigurationPolicyRuleActionArgs.builder()
                    .type("string")
                    .value(0)
                    .build())
                .id("string")
                .metric(AutoScalingConfigurationPolicyRuleMetricArgs.builder()
                    .metricType("string")
                    .threshold(AutoScalingConfigurationPolicyRuleMetricThresholdArgs.builder()
                        .operator("string")
                        .value(0)
                        .build())
                    .build())
                .build())
            .timeCreated("string")
            .build())
        .coolDownInSeconds(0)
        .definedTags(Map.of("string", "string"))
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .isEnabled(false)
        .build());
    
    auto_scaling_configuration_resource = oci.autoscaling.AutoScalingConfiguration("autoScalingConfigurationResource",
        auto_scaling_resources=oci.autoscaling.AutoScalingConfigurationAutoScalingResourcesArgs(
            id="string",
            type="string",
        ),
        compartment_id="string",
        policies=[oci.autoscaling.AutoScalingConfigurationPolicyArgs(
            policy_type="string",
            capacity=oci.autoscaling.AutoScalingConfigurationPolicyCapacityArgs(
                initial=0,
                max=0,
                min=0,
            ),
            display_name="string",
            execution_schedule=oci.autoscaling.AutoScalingConfigurationPolicyExecutionScheduleArgs(
                expression="string",
                timezone="string",
                type="string",
            ),
            id="string",
            is_enabled=False,
            resource_action=oci.autoscaling.AutoScalingConfigurationPolicyResourceActionArgs(
                action="string",
                action_type="string",
            ),
            rules=[oci.autoscaling.AutoScalingConfigurationPolicyRuleArgs(
                display_name="string",
                action=oci.autoscaling.AutoScalingConfigurationPolicyRuleActionArgs(
                    type="string",
                    value=0,
                ),
                id="string",
                metric=oci.autoscaling.AutoScalingConfigurationPolicyRuleMetricArgs(
                    metric_type="string",
                    threshold=oci.autoscaling.AutoScalingConfigurationPolicyRuleMetricThresholdArgs(
                        operator="string",
                        value=0,
                    ),
                ),
            )],
            time_created="string",
        )],
        cool_down_in_seconds=0,
        defined_tags={
            "string": "string",
        },
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        is_enabled=False)
    
    const autoScalingConfigurationResource = new oci.autoscaling.AutoScalingConfiguration("autoScalingConfigurationResource", {
        autoScalingResources: {
            id: "string",
            type: "string",
        },
        compartmentId: "string",
        policies: [{
            policyType: "string",
            capacity: {
                initial: 0,
                max: 0,
                min: 0,
            },
            displayName: "string",
            executionSchedule: {
                expression: "string",
                timezone: "string",
                type: "string",
            },
            id: "string",
            isEnabled: false,
            resourceAction: {
                action: "string",
                actionType: "string",
            },
            rules: [{
                displayName: "string",
                action: {
                    type: "string",
                    value: 0,
                },
                id: "string",
                metric: {
                    metricType: "string",
                    threshold: {
                        operator: "string",
                        value: 0,
                    },
                },
            }],
            timeCreated: "string",
        }],
        coolDownInSeconds: 0,
        definedTags: {
            string: "string",
        },
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        isEnabled: false,
    });
    
    type: oci:Autoscaling:AutoScalingConfiguration
    properties:
        autoScalingResources:
            id: string
            type: string
        compartmentId: string
        coolDownInSeconds: 0
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        isEnabled: false
        policies:
            - capacity:
                initial: 0
                max: 0
                min: 0
              displayName: string
              executionSchedule:
                expression: string
                timezone: string
                type: string
              id: string
              isEnabled: false
              policyType: string
              resourceAction:
                action: string
                actionType: string
              rules:
                - action:
                    type: string
                    value: 0
                  displayName: string
                  id: string
                  metric:
                    metricType: string
                    threshold:
                        operator: string
                        value: 0
              timeCreated: string
    

    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, string>
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (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
    (Updatable) Whether the autoscaling configuration 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]string
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    (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
    (Updatable) Whether the autoscaling configuration 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,String>
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    (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
    (Updatable) Whether the autoscaling configuration 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]: string}
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (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
    (Updatable) Whether the autoscaling configuration is enabled.
    auto_scaling_resources autoscaling.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 Sequence[autoscaling.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, str]
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (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
    (Updatable) Whether the autoscaling configuration 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<String>
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    (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
    (Updatable) Whether the autoscaling configuration 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, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = 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, string>
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    (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
    (Updatable) Whether the autoscaling configuration 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]string
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    (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
    (Updatable) Whether the autoscaling configuration 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,String>
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    (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
    (Updatable) Whether the autoscaling configuration 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]: string}
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    (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
    (Updatable) Whether the autoscaling configuration 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 autoscaling.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, str]
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    (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
    (Updatable) Whether the autoscaling configuration 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 Sequence[autoscaling.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<String>
    (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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    (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
    (Updatable) Whether the autoscaling configuration 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 resource.
    Id string
    The OCID of the resource that is managed by the autoscaling configuration.
    Type string
    The type of resource.
    id String
    The OCID of the resource that is managed by the autoscaling configuration.
    type String
    The type of resource.
    id string
    The OCID of the resource that is managed by the autoscaling configuration.
    type string
    The type of resource.
    id str
    The OCID of the resource that is managed by the autoscaling configuration.
    type str
    The type of resource.
    id String
    The OCID of the resource that is managed by the autoscaling configuration.
    type String
    The type of resource.

    AutoScalingConfigurationPolicy, AutoScalingConfigurationPolicyArgs

    PolicyType string
    The type of autoscaling policy.
    Capacity AutoScalingConfigurationPolicyCapacity
    The capacity requirements of the autoscaling policy.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    ExecutionSchedule AutoScalingConfigurationPolicyExecutionSchedule
    An execution schedule for an autoscaling policy.
    Id string
    ID of the condition that is assigned after creation.
    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
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    ExecutionSchedule AutoScalingConfigurationPolicyExecutionSchedule
    An execution schedule for an autoscaling policy.
    Id string
    ID of the condition that is assigned after creation.
    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
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    executionSchedule AutoScalingConfigurationPolicyExecutionSchedule
    An execution schedule for an autoscaling policy.
    id String
    ID of the condition that is assigned after creation.
    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
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    executionSchedule AutoScalingConfigurationPolicyExecutionSchedule
    An execution schedule for an autoscaling policy.
    id string
    ID of the condition that is assigned after creation.
    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 autoscaling.AutoScalingConfigurationPolicyCapacity
    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.AutoScalingConfigurationPolicyExecutionSchedule
    An execution schedule for an autoscaling policy.
    id str
    ID of the condition that is assigned after creation.
    is_enabled bool
    Whether the autoscaling policy is enabled.
    resource_action autoscaling.AutoScalingConfigurationPolicyResourceAction
    An action that can be executed against a resource.
    rules Sequence[autoscaling.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
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    executionSchedule Property Map
    An execution schedule for an autoscaling policy.
    id String
    ID of the condition that is assigned after creation.
    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 execution schedule.
    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 execution schedule.
    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 execution schedule.
    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 execution schedule.
    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 execution schedule.
    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 execution schedule.

    AutoScalingConfigurationPolicyResourceAction, AutoScalingConfigurationPolicyResourceActionArgs

    Action string
    ActionType string
    The type of resource action.
    Action string
    ActionType string
    The type of resource action.
    action String
    actionType String
    The type of resource action.
    action string
    actionType string
    The type of resource action.
    action str
    action_type str
    The type of resource action.
    action String
    actionType String
    The type of resource action.

    AutoScalingConfigurationPolicyRule, AutoScalingConfigurationPolicyRuleArgs

    DisplayName string
    Action AutoScalingConfigurationPolicyRuleAction
    The action to take when autoscaling is triggered.
    Id string
    ID of the condition that is assigned after creation.
    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
    ID of the condition that is assigned after creation.
    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
    ID of the condition that is assigned after creation.
    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
    ID of the condition that is assigned after creation.
    metric AutoScalingConfigurationPolicyRuleMetric
    Metric and threshold details for triggering an autoscaling action.
    display_name str
    action autoscaling.AutoScalingConfigurationPolicyRuleAction
    The action to take when autoscaling is triggered.
    id str
    ID of the condition that is assigned after creation.
    metric autoscaling.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
    ID of the condition that is assigned after creation.
    metric Property Map
    Metric and threshold details for triggering an autoscaling action.

    AutoScalingConfigurationPolicyRuleAction, AutoScalingConfigurationPolicyRuleActionArgs

    Type string
    The type of action to take.
    Value int
    To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of instances), provide a negative value.
    Type string
    The type of action to take.
    Value int
    To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of instances), provide a negative value.
    type String
    The type of action to take.
    value Integer
    To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of instances), provide a negative value.
    type string
    The type of action to take.
    value number
    To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of instances), provide a negative value.
    type str
    The type of action to take.
    value int
    To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of instances), provide a negative value.
    type String
    The type of action to take.
    value Number
    To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of instances), provide a negative value.

    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"
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v2.12.0 published on Friday, Oct 11, 2024 by Pulumi