oci.Autoscaling.AutoScalingConfiguration
Explore with Pulumi AI
This resource provides the Auto Scaling Configuration resource in Oracle Cloud Infrastructure Auto Scaling service.
Creates an autoscaling configuration.
Example Usage
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={
"id": "string",
"type": "string",
},
compartment_id="string",
policies=[{
"policy_type": "string",
"capacity": {
"initial": 0,
"max": 0,
"min": 0,
},
"display_name": "string",
"execution_schedule": {
"expression": "string",
"timezone": "string",
"type": "string",
},
"id": "string",
"is_enabled": False,
"resource_action": {
"action": "string",
"action_type": "string",
},
"rules": [{
"display_name": "string",
"action": {
"type": "string",
"value": 0,
},
"id": "string",
"metric": {
"metric_type": "string",
"threshold": {
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AutoScalingConfiguration resource accepts the following input properties:
- Auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- Policies
List<Auto
Scaling Configuration Policy> - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- Cool
Down intIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Dictionary<string, 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Is
Enabled bool - (Updatable) Whether the autoscaling configuration is enabled.
- Auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- Policies
[]Auto
Scaling Configuration Policy Args - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- Cool
Down intIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- map[string]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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Is
Enabled bool - (Updatable) Whether the autoscaling configuration is enabled.
- auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id String - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- policies
List<Auto
Scaling Configuration Policy> - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- cool
Down IntegerIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Map<String,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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- is
Enabled Boolean - (Updatable) Whether the autoscaling configuration is enabled.
- auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id string - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- policies
Auto
Scaling Configuration Policy[] - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- cool
Down numberIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- {[key: string]: 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"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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"}
- is
Enabled boolean - (Updatable) Whether the autoscaling configuration is enabled.
- auto_
scaling_ autoscaling.resources Auto Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment_
id str - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- policies
Sequence[autoscaling.
Auto Scaling Configuration Policy Args] - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- cool_
down_ intin_ seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Mapping[str, 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.
- 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.
- auto
Scaling Property MapResources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id String - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- policies List<Property Map>
- Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- cool
Down NumberIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Map<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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- is
Enabled 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.
- Max
Resource intCount - The maximum number of resources to scale out to.
- Min
Resource intCount - The minimum number of resources to scale in to.
- Time
Created string - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Resource intCount - The maximum number of resources to scale out to.
- Min
Resource intCount - The minimum number of resources to scale in to.
- Time
Created string - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- max
Resource IntegerCount - The maximum number of resources to scale out to.
- min
Resource IntegerCount - The minimum number of resources to scale in to.
- time
Created String - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id string
- The provider-assigned unique ID for this managed resource.
- max
Resource numberCount - The maximum number of resources to scale out to.
- min
Resource numberCount - The minimum number of resources to scale in to.
- time
Created string - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id str
- The provider-assigned unique ID for this managed resource.
- max_
resource_ intcount - The maximum number of resources to scale out to.
- min_
resource_ intcount - The minimum number of resources to scale in to.
- time_
created str - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- id String
- The provider-assigned unique ID for this managed resource.
- max
Resource NumberCount - The maximum number of resources to scale out to.
- min
Resource NumberCount - The minimum number of resources to scale in to.
- time
Created String - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Look up Existing AutoScalingConfiguration Resource
Get an existing AutoScalingConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AutoScalingConfigurationState, opts?: CustomResourceOptions): AutoScalingConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_scaling_resources: Optional[_autoscaling.AutoScalingConfigurationAutoScalingResourcesArgs] = None,
compartment_id: Optional[str] = None,
cool_down_in_seconds: Optional[int] = None,
defined_tags: Optional[Mapping[str, 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.
- Auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- Cool
Down intIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Dictionary<string, 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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Is
Enabled bool - (Updatable) Whether the autoscaling configuration is enabled.
- Max
Resource intCount - The maximum number of resources to scale out to.
- Min
Resource intCount - The minimum number of resources to scale in to.
- Policies
List<Auto
Scaling Configuration Policy> - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- Time
Created string - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- Compartment
Id string - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- Cool
Down intIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- map[string]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"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Is
Enabled bool - (Updatable) Whether the autoscaling configuration is enabled.
- Max
Resource intCount - The maximum number of resources to scale out to.
- Min
Resource intCount - The minimum number of resources to scale in to.
- Policies
[]Auto
Scaling Configuration Policy Args - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- Time
Created string - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id String - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- cool
Down IntegerIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Map<String,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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- is
Enabled Boolean - (Updatable) Whether the autoscaling configuration is enabled.
- max
Resource IntegerCount - The maximum number of resources to scale out to.
- min
Resource IntegerCount - The minimum number of resources to scale in to.
- policies
List<Auto
Scaling Configuration Policy> - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- time
Created String - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- auto
Scaling AutoResources Scaling Configuration Auto Scaling Resources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id string - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- cool
Down numberIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- {[key: string]: 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"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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"}
- is
Enabled boolean - (Updatable) Whether the autoscaling configuration is enabled.
- max
Resource numberCount - The maximum number of resources to scale out to.
- min
Resource numberCount - The minimum number of resources to scale in to.
- policies
Auto
Scaling Configuration Policy[] - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- time
Created string - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- auto_
scaling_ autoscaling.resources Auto Scaling Configuration Auto Scaling Resources Args A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment_
id str - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- cool_
down_ intin_ seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Mapping[str, 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.
- 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_ intcount - The maximum number of resources to scale out to.
- min_
resource_ intcount - The minimum number of resources to scale in to.
- policies
Sequence[autoscaling.
Auto Scaling Configuration Policy Args] - Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- time_
created str - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- auto
Scaling Property MapResources A resource that is managed by an autoscaling configuration. The only supported type is
instancePool
.Each instance pool can have one autoscaling configuration.
- compartment
Id String - (Updatable) The OCID of the compartment containing the autoscaling configuration.
- cool
Down NumberIn Seconds (Updatable) For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.
For schedule-based autoscaling policies, this value is not used.
- Map<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"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- is
Enabled Boolean - (Updatable) Whether the autoscaling configuration is enabled.
- max
Resource NumberCount - The maximum number of resources to scale out to.
- min
Resource NumberCount - The minimum number of resources to scale in to.
- policies List<Property Map>
- Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.
- time
Created String - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
Supporting Types
AutoScalingConfigurationAutoScalingResources, AutoScalingConfigurationAutoScalingResourcesArgs
AutoScalingConfigurationPolicy, AutoScalingConfigurationPolicyArgs
- Policy
Type string - The type of autoscaling policy.
- Capacity
Auto
Scaling Configuration Policy Capacity - The capacity requirements of the autoscaling policy.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Execution
Schedule AutoScaling Configuration Policy Execution Schedule - An execution schedule for an autoscaling policy.
- Id string
- ID of the condition that is assigned after creation.
- Is
Enabled bool - Whether the autoscaling policy is enabled.
- Resource
Action AutoScaling Configuration Policy Resource Action - An action that can be executed against a resource.
- Rules
List<Auto
Scaling Configuration Policy Rule> - Time
Created string - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Policy
Type string - The type of autoscaling policy.
- Capacity
Auto
Scaling Configuration Policy Capacity - The capacity requirements of the autoscaling policy.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Execution
Schedule AutoScaling Configuration Policy Execution Schedule - An execution schedule for an autoscaling policy.
- Id string
- ID of the condition that is assigned after creation.
- Is
Enabled bool - Whether the autoscaling policy is enabled.
- Resource
Action AutoScaling Configuration Policy Resource Action - An action that can be executed against a resource.
- Rules
[]Auto
Scaling Configuration Policy Rule - Time
Created string - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- policy
Type String - The type of autoscaling policy.
- capacity
Auto
Scaling Configuration Policy Capacity - The capacity requirements of the autoscaling policy.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- execution
Schedule AutoScaling Configuration Policy Execution Schedule - An execution schedule for an autoscaling policy.
- id String
- ID of the condition that is assigned after creation.
- is
Enabled Boolean - Whether the autoscaling policy is enabled.
- resource
Action AutoScaling Configuration Policy Resource Action - An action that can be executed against a resource.
- rules
List<Auto
Scaling Configuration Policy Rule> - time
Created String - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- policy
Type string - The type of autoscaling policy.
- capacity
Auto
Scaling Configuration Policy Capacity - The capacity requirements of the autoscaling policy.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- execution
Schedule AutoScaling Configuration Policy Execution Schedule - An execution schedule for an autoscaling policy.
- id string
- ID of the condition that is assigned after creation.
- is
Enabled boolean - Whether the autoscaling policy is enabled.
- resource
Action AutoScaling Configuration Policy Resource Action - An action that can be executed against a resource.
- rules
Auto
Scaling Configuration Policy Rule[] - time
Created string - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- policy_
type str - The type of autoscaling policy.
- capacity
autoscaling.
Auto Scaling Configuration Policy Capacity - The capacity requirements of the autoscaling policy.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- execution_
schedule autoscaling.Auto Scaling Configuration Policy Execution Schedule - 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.Auto Scaling Configuration Policy Resource Action - An action that can be executed against a resource.
- rules
Sequence[autoscaling.
Auto Scaling Configuration Policy Rule] - time_
created str - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- policy
Type String - The type of autoscaling policy.
- capacity Property Map
- The capacity requirements of the autoscaling policy.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- execution
Schedule Property Map - An execution schedule for an autoscaling policy.
- id String
- ID of the condition that is assigned after creation.
- is
Enabled Boolean - Whether the autoscaling policy is enabled.
- resource
Action Property Map - An action that can be executed against a resource.
- rules List<Property Map>
- time
Created String - The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
AutoScalingConfigurationPolicyCapacity, 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
- Action
Type string - The type of resource action.
- Action string
- Action
Type string - The type of resource action.
- action String
- action
Type String - The type of resource action.
- action string
- action
Type string - The type of resource action.
- action str
- action_
type str - The type of resource action.
- action String
- action
Type String - The type of resource action.
AutoScalingConfigurationPolicyRule, AutoScalingConfigurationPolicyRuleArgs
- Display
Name string - Action
Auto
Scaling Configuration Policy Rule Action - The action to take when autoscaling is triggered.
- Id string
- ID of the condition that is assigned after creation.
- Metric
Auto
Scaling Configuration Policy Rule Metric - Metric and threshold details for triggering an autoscaling action.
- Display
Name string - Action
Auto
Scaling Configuration Policy Rule Action - The action to take when autoscaling is triggered.
- Id string
- ID of the condition that is assigned after creation.
- Metric
Auto
Scaling Configuration Policy Rule Metric - Metric and threshold details for triggering an autoscaling action.
- display
Name String - action
Auto
Scaling Configuration Policy Rule Action - The action to take when autoscaling is triggered.
- id String
- ID of the condition that is assigned after creation.
- metric
Auto
Scaling Configuration Policy Rule Metric - Metric and threshold details for triggering an autoscaling action.
- display
Name string - action
Auto
Scaling Configuration Policy Rule Action - The action to take when autoscaling is triggered.
- id string
- ID of the condition that is assigned after creation.
- metric
Auto
Scaling Configuration Policy Rule Metric - Metric and threshold details for triggering an autoscaling action.
- display_
name str - action
autoscaling.
Auto Scaling Configuration Policy Rule Action - The action to take when autoscaling is triggered.
- id str
- ID of the condition that is assigned after creation.
- metric
autoscaling.
Auto Scaling Configuration Policy Rule Metric - Metric and threshold details for triggering an autoscaling action.
- display
Name 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
AutoScalingConfigurationPolicyRuleMetric, AutoScalingConfigurationPolicyRuleMetricArgs
- metric
Type String - threshold Property Map
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.