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

io.burkard.cdk.services.secretsmanager.SecretTargetAttachment.scala Maven / Gradle / Ivy

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

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object SecretTargetAttachment {

  def apply(
    internalResourceId: String,
    secret: software.amazon.awscdk.services.secretsmanager.ISecret,
    target: Option[software.amazon.awscdk.services.secretsmanager.ISecretAttachmentTarget] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.secretsmanager.SecretTargetAttachment =
    software.amazon.awscdk.services.secretsmanager.SecretTargetAttachment.Builder
      .create(stackCtx, internalResourceId)
      .secret(secret)
      .target(target.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy