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

io.burkard.cdk.services.secretsmanager.RotationScheduleProps.scala Maven / Gradle / Ivy

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

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

  def apply(
    secret: software.amazon.awscdk.services.secretsmanager.ISecret,
    automaticallyAfter: Option[software.amazon.awscdk.Duration] = None,
    hostedRotation: Option[software.amazon.awscdk.services.secretsmanager.HostedRotation] = None,
    rotationLambda: Option[software.amazon.awscdk.services.lambda.IFunction] = None
  ): software.amazon.awscdk.services.secretsmanager.RotationScheduleProps =
    (new software.amazon.awscdk.services.secretsmanager.RotationScheduleProps.Builder)
      .secret(secret)
      .automaticallyAfter(automaticallyAfter.orNull)
      .hostedRotation(hostedRotation.orNull)
      .rotationLambda(rotationLambda.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy