io.burkard.cdk.services.resiliencehub.CfnResiliencyPolicy.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.resiliencehub
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnResiliencyPolicy {
def apply(
internalResourceId: String,
tier: String,
policyName: String,
policy: Map[String, _],
tags: Option[Map[String, String]] = None,
dataLocationConstraint: Option[String] = None,
policyDescription: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.resiliencehub.CfnResiliencyPolicy =
software.amazon.awscdk.services.resiliencehub.CfnResiliencyPolicy.Builder
.create(stackCtx, internalResourceId)
.tier(tier)
.policyName(policyName)
.policy(policy.asJava)
.tags(tags.map(_.asJava).orNull)
.dataLocationConstraint(dataLocationConstraint.orNull)
.policyDescription(policyDescription.orNull)
.build()
}