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

io.burkard.cdk.services.secretsmanager.ResourcePolicy.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 ResourcePolicy {

  def apply(
    internalResourceId: String,
    secret: software.amazon.awscdk.services.secretsmanager.ISecret
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.secretsmanager.ResourcePolicy =
    software.amazon.awscdk.services.secretsmanager.ResourcePolicy.Builder
      .create(stackCtx, internalResourceId)
      .secret(secret)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy