All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.applicationautoscaling.ScalingSchedule.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.applicationautoscaling

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object ScalingSchedule {

  def apply(
    schedule: software.amazon.awscdk.services.applicationautoscaling.Schedule,
    maxCapacity: Option[Number] = None,
    startTime: Option[java.time.Instant] = None,
    endTime: Option[java.time.Instant] = None,
    minCapacity: Option[Number] = None
  ): software.amazon.awscdk.services.applicationautoscaling.ScalingSchedule =
    (new software.amazon.awscdk.services.applicationautoscaling.ScalingSchedule.Builder)
      .schedule(schedule)
      .maxCapacity(maxCapacity.orNull)
      .startTime(startTime.orNull)
      .endTime(endTime.orNull)
      .minCapacity(minCapacity.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy