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

io.burkard.cdk.services.iotsitewise.CfnAsset.scala Maven / Gradle / Ivy

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

import scala.collection.JavaConverters._

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

  def apply(
    internalResourceId: String,
    assetModelId: String,
    assetName: String,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    assetDescription: Option[String] = None,
    assetHierarchies: Option[List[_]] = None,
    assetProperties: Option[List[_]] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.iotsitewise.CfnAsset =
    software.amazon.awscdk.services.iotsitewise.CfnAsset.Builder
      .create(stackCtx, internalResourceId)
      .assetModelId(assetModelId)
      .assetName(assetName)
      .tags(tags.map(_.asJava).orNull)
      .assetDescription(assetDescription.orNull)
      .assetHierarchies(assetHierarchies.map(_.asJava).orNull)
      .assetProperties(assetProperties.map(_.asJava).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy