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

io.burkard.cdk.services.synthetics.CfnCanaryProps.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnCanaryProps {

  def apply(
    name: String,
    artifactS3Location: String,
    code: software.amazon.awscdk.services.synthetics.CfnCanary.CodeProperty,
    runtimeVersion: String,
    executionRoleArn: String,
    schedule: software.amazon.awscdk.services.synthetics.CfnCanary.ScheduleProperty,
    startCanaryAfterCreation: Boolean,
    successRetentionPeriod: Option[Number] = None,
    visualReference: Option[software.amazon.awscdk.services.synthetics.CfnCanary.VisualReferenceProperty] = None,
    runConfig: Option[software.amazon.awscdk.services.synthetics.CfnCanary.RunConfigProperty] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    failureRetentionPeriod: Option[Number] = None,
    vpcConfig: Option[software.amazon.awscdk.services.synthetics.CfnCanary.VPCConfigProperty] = None,
    artifactConfig: Option[software.amazon.awscdk.services.synthetics.CfnCanary.ArtifactConfigProperty] = None,
    deleteLambdaResourcesOnCanaryDeletion: Option[Boolean] = None
  ): software.amazon.awscdk.services.synthetics.CfnCanaryProps =
    (new software.amazon.awscdk.services.synthetics.CfnCanaryProps.Builder)
      .name(name)
      .artifactS3Location(artifactS3Location)
      .code(code)
      .runtimeVersion(runtimeVersion)
      .executionRoleArn(executionRoleArn)
      .schedule(schedule)
      .startCanaryAfterCreation(startCanaryAfterCreation)
      .successRetentionPeriod(successRetentionPeriod.orNull)
      .visualReference(visualReference.orNull)
      .runConfig(runConfig.orNull)
      .tags(tags.map(_.asJava).orNull)
      .failureRetentionPeriod(failureRetentionPeriod.orNull)
      .vpcConfig(vpcConfig.orNull)
      .artifactConfig(artifactConfig.orNull)
      .deleteLambdaResourcesOnCanaryDeletion(deleteLambdaResourcesOnCanaryDeletion.map(Boolean.box).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy