CreateAutoScalingConfigurationDetails¶
- class oci.autoscaling.models.CreateAutoScalingConfigurationDetails(**kwargs)¶
Bases:
objectCreation details for an autoscaling configuration.
Methods:
__init__(**kwargs)Initializes a new CreateAutoScalingConfigurationDetails object with values from keyword arguments.
Attributes:
[Required] Gets the compartment_id of this CreateAutoScalingConfigurationDetails.
Gets the cool_down_in_seconds of this CreateAutoScalingConfigurationDetails.
Gets the defined_tags of this CreateAutoScalingConfigurationDetails.
Gets the display_name of this CreateAutoScalingConfigurationDetails.
Gets the freeform_tags of this CreateAutoScalingConfigurationDetails.
Gets the is_enabled of this CreateAutoScalingConfigurationDetails.
[Required] Gets the policies of this CreateAutoScalingConfigurationDetails.
[Required] Gets the resource of this CreateAutoScalingConfigurationDetails.
- __init__(**kwargs)¶
Initializes a new CreateAutoScalingConfigurationDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
compartment_id (str) – The value to assign to the compartment_id property of this CreateAutoScalingConfigurationDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateAutoScalingConfigurationDetails.
display_name (str) – The value to assign to the display_name property of this CreateAutoScalingConfigurationDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateAutoScalingConfigurationDetails.
cool_down_in_seconds (int) – The value to assign to the cool_down_in_seconds property of this CreateAutoScalingConfigurationDetails.
is_enabled (bool) – The value to assign to the is_enabled property of this CreateAutoScalingConfigurationDetails.
policies (list[oci.autoscaling.models.CreateAutoScalingPolicyDetails]) – The value to assign to the policies property of this CreateAutoScalingConfigurationDetails.
resource (oci.autoscaling.models.Resource) – The value to assign to the resource property of this CreateAutoScalingConfigurationDetails.
- property compartment_id¶
[Required] Gets the compartment_id of this CreateAutoScalingConfigurationDetails. The OCID of the compartment containing the autoscaling configuration.
- Returns
The compartment_id of this CreateAutoScalingConfigurationDetails.
- Return type
str
- property cool_down_in_seconds¶
Gets the cool_down_in_seconds of this CreateAutoScalingConfigurationDetails. 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.
- Returns
The cool_down_in_seconds of this CreateAutoScalingConfigurationDetails.
- Return type
int
- property defined_tags¶
Gets the defined_tags of this CreateAutoScalingConfigurationDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this CreateAutoScalingConfigurationDetails.
- Return type
dict(str, dict(str, object))
- property display_name¶
Gets the display_name of this CreateAutoScalingConfigurationDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Returns
The display_name of this CreateAutoScalingConfigurationDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateAutoScalingConfigurationDetails. 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”}
- Returns
The freeform_tags of this CreateAutoScalingConfigurationDetails.
- Return type
dict(str, str)
- property is_enabled¶
Gets the is_enabled of this CreateAutoScalingConfigurationDetails. Whether the autoscaling configuration is enabled.
- Returns
The is_enabled of this CreateAutoScalingConfigurationDetails.
- Return type
bool
- property policies¶
[Required] Gets the policies of this CreateAutoScalingConfigurationDetails.
- Returns
The policies of this CreateAutoScalingConfigurationDetails.
- Return type
- property resource¶
[Required] Gets the resource of this CreateAutoScalingConfigurationDetails.
- Returns
The resource of this CreateAutoScalingConfigurationDetails.
- Return type