io.burkard.cdk.services.secretsmanager.CfnSecret.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.secretsmanager
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnSecret {
def apply(
internalResourceId: String,
replicaRegions: Option[List[_]] = None,
name: Option[String] = None,
description: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
generateSecretString: Option[software.amazon.awscdk.services.secretsmanager.CfnSecret.GenerateSecretStringProperty] = None,
secretString: Option[String] = None,
kmsKeyId: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.secretsmanager.CfnSecret =
software.amazon.awscdk.services.secretsmanager.CfnSecret.Builder
.create(stackCtx, internalResourceId)
.replicaRegions(replicaRegions.map(_.asJava).orNull)
.name(name.orNull)
.description(description.orNull)
.tags(tags.map(_.asJava).orNull)
.generateSecretString(generateSecretString.orNull)
.secretString(secretString.orNull)
.kmsKeyId(kmsKeyId.orNull)
.build()
}