io.burkard.cdk.services.ssm.CfnPatchBaseline.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 CfnPatchBaseline {
def apply(
internalResourceId: String,
name: String,
approvedPatchesEnableNonSecurity: Option[Boolean] = None,
approvalRules: Option[software.amazon.awscdk.services.ssm.CfnPatchBaseline.RuleGroupProperty] = None,
description: Option[String] = None,
globalFilters: Option[software.amazon.awscdk.services.ssm.CfnPatchBaseline.PatchFilterGroupProperty] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
approvedPatchesComplianceLevel: Option[String] = None,
approvedPatches: Option[List[String]] = None,
rejectedPatchesAction: Option[String] = None,
operatingSystem: Option[String] = None,
patchGroups: Option[List[String]] = None,
rejectedPatches: Option[List[String]] = None,
sources: Option[List[_]] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ssm.CfnPatchBaseline =
software.amazon.awscdk.services.ssm.CfnPatchBaseline.Builder
.create(stackCtx, internalResourceId)
.name(name)
.approvedPatchesEnableNonSecurity(approvedPatchesEnableNonSecurity.map(Boolean.box).orNull)
.approvalRules(approvalRules.orNull)
.description(description.orNull)
.globalFilters(globalFilters.orNull)
.tags(tags.map(_.asJava).orNull)
.approvedPatchesComplianceLevel(approvedPatchesComplianceLevel.orNull)
.approvedPatches(approvedPatches.map(_.asJava).orNull)
.rejectedPatchesAction(rejectedPatchesAction.orNull)
.operatingSystem(operatingSystem.orNull)
.patchGroups(patchGroups.map(_.asJava).orNull)
.rejectedPatches(rejectedPatches.map(_.asJava).orNull)
.sources(sources.map(_.asJava).orNull)
.build()
}