AutoscalingPolicyArgs

data class AutoscalingPolicyArgs(val basicAlgorithm: Output<BasicAutoscalingAlgorithmArgs>? = null, val id: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val project: Output<String>? = null, val secondaryWorkerConfig: Output<InstanceGroupAutoscalingPolicyConfigArgs>? = null, val workerConfig: Output<InstanceGroupAutoscalingPolicyConfigArgs>? = null) : ConvertibleToJava<AutoscalingPolicyArgs>

Creates new autoscaling policy. Auto-naming is currently not supported for this resource.

Constructors

Link copied to clipboard
fun AutoscalingPolicyArgs(basicAlgorithm: Output<BasicAutoscalingAlgorithmArgs>? = null, id: Output<String>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, project: Output<String>? = null, secondaryWorkerConfig: Output<InstanceGroupAutoscalingPolicyConfigArgs>? = null, workerConfig: Output<InstanceGroupAutoscalingPolicyConfigArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AutoscalingPolicyArgs

Properties

Link copied to clipboard
Link copied to clipboard
val id: Output<String>? = null

The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Optional. The labels to associate with this autoscaling policy. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling policy.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard

Optional. Describes how the autoscaler will operate for secondary workers.

Link copied to clipboard

Describes how the autoscaler will operate for primary workers.