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

io.burkard.cdk.services.ram.CfnResourceShareProps.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 CfnResourceShareProps {

  def apply(
    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
  ): software.amazon.awscdk.services.ram.CfnResourceShareProps =
    (new software.amazon.awscdk.services.ram.CfnResourceShareProps.Builder)
      .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