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

io.burkard.cdk.services.ssm.CfnMaintenanceWindowTask.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

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

  def apply(
    internalResourceId: String,
    priority: Number,
    windowId: String,
    taskArn: String,
    taskType: String,
    name: Option[String] = None,
    targets: Option[List[_]] = None,
    maxConcurrency: Option[String] = None,
    taskInvocationParameters: Option[software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.TaskInvocationParametersProperty] = None,
    description: Option[String] = None,
    serviceRoleArn: Option[String] = None,
    cutoffBehavior: Option[String] = None,
    maxErrors: Option[String] = None,
    taskParameters: Option[AnyRef] = None,
    loggingInfo: Option[software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.LoggingInfoProperty] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask =
    software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTask.Builder
      .create(stackCtx, internalResourceId)
      .priority(priority)
      .windowId(windowId)
      .taskArn(taskArn)
      .taskType(taskType)
      .name(name.orNull)
      .targets(targets.map(_.asJava).orNull)
      .maxConcurrency(maxConcurrency.orNull)
      .taskInvocationParameters(taskInvocationParameters.orNull)
      .description(description.orNull)
      .serviceRoleArn(serviceRoleArn.orNull)
      .cutoffBehavior(cutoffBehavior.orNull)
      .maxErrors(maxErrors.orNull)
      .taskParameters(taskParameters.orNull)
      .loggingInfo(loggingInfo.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy