io.burkard.cdk.services.fms.CfnPolicy.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.fms
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnPolicy {
def apply(
internalResourceId: String,
resourceType: String,
securityServicePolicyData: AnyRef,
remediationEnabled: Boolean,
policyName: String,
excludeResourceTags: Boolean,
tags: Option[List[_ <: software.amazon.awscdk.services.fms.CfnPolicy.PolicyTagProperty]] = None,
excludeMap: Option[software.amazon.awscdk.services.fms.CfnPolicy.IEMapProperty] = None,
includeMap: Option[software.amazon.awscdk.services.fms.CfnPolicy.IEMapProperty] = None,
resourceTags: Option[List[_]] = None,
resourcesCleanUp: Option[Boolean] = None,
deleteAllPolicyResources: Option[Boolean] = None,
resourceTypeList: Option[List[String]] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.fms.CfnPolicy =
software.amazon.awscdk.services.fms.CfnPolicy.Builder
.create(stackCtx, internalResourceId)
.resourceType(resourceType)
.securityServicePolicyData(securityServicePolicyData)
.remediationEnabled(remediationEnabled)
.policyName(policyName)
.excludeResourceTags(excludeResourceTags)
.tags(tags.map(_.asJava).orNull)
.excludeMap(excludeMap.orNull)
.includeMap(includeMap.orNull)
.resourceTags(resourceTags.map(_.asJava).orNull)
.resourcesCleanUp(resourcesCleanUp.map(Boolean.box).orNull)
.deleteAllPolicyResources(deleteAllPolicyResources.map(Boolean.box).orNull)
.resourceTypeList(resourceTypeList.map(_.asJava).orNull)
.build()
}