io.burkard.cdk.services.applicationautoscaling.CfnScalingPolicyProps.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 CfnScalingPolicyProps {
def apply(
policyName: String,
policyType: String,
scalableDimension: Option[String] = None,
resourceId: Option[String] = None,
serviceNamespace: Option[String] = None,
stepScalingPolicyConfiguration: Option[software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.StepScalingPolicyConfigurationProperty] = None,
scalingTargetId: Option[String] = None,
targetTrackingScalingPolicyConfiguration: Option[software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.TargetTrackingScalingPolicyConfigurationProperty] = None
): software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicyProps =
(new software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicyProps.Builder)
.policyName(policyName)
.policyType(policyType)
.scalableDimension(scalableDimension.orNull)
.resourceId(resourceId.orNull)
.serviceNamespace(serviceNamespace.orNull)
.stepScalingPolicyConfiguration(stepScalingPolicyConfiguration.orNull)
.scalingTargetId(scalingTargetId.orNull)
.targetTrackingScalingPolicyConfiguration(targetTrackingScalingPolicyConfiguration.orNull)
.build()
}