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

io.burkard.cdk.services.ram.CfnResourceShare.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnResourceShare {

  def apply(
    internalResourceId: String,
    name: String,
    principals: Option[List[String]] = None,
    allowExternalPrincipals: Option[Boolean] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    resourceArns: Option[List[String]] = None,
    permissionArns: Option[List[String]] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ram.CfnResourceShare =
    software.amazon.awscdk.services.ram.CfnResourceShare.Builder
      .create(stackCtx, internalResourceId)
      .name(name)
      .principals(principals.map(_.asJava).orNull)
      .allowExternalPrincipals(allowExternalPrincipals.map(Boolean.box).orNull)
      .tags(tags.map(_.asJava).orNull)
      .resourceArns(resourceArns.map(_.asJava).orNull)
      .permissionArns(permissionArns.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy