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

src.index.GtmResource.scala Maven / Gradle / Ivy

The newest version!
package besom.api.akamai

final case class GtmResource private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  aggregationType: besom.types.Output[String],
  constrainedProperty: besom.types.Output[scala.Option[String]],
  decayRate: besom.types.Output[scala.Option[Double]],
  description: besom.types.Output[scala.Option[String]],
  domain: besom.types.Output[String],
  hostHeader: besom.types.Output[scala.Option[String]],
  leaderString: besom.types.Output[scala.Option[String]],
  leastSquaresDecay: besom.types.Output[scala.Option[Double]],
  loadImbalancePercentage: besom.types.Output[scala.Option[Double]],
  maxUMultiplicativeIncrement: besom.types.Output[scala.Option[Double]],
  name: besom.types.Output[String],
  resourceInstances: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.akamai.outputs.GtmResourceResourceInstance]]],
  `type`: besom.types.Output[String],
  upperBound: besom.types.Output[scala.Option[Int]],
  waitOnComplete: besom.types.Output[scala.Option[Boolean]]
) extends besom.CustomResource

object GtmResource extends besom.ResourceCompanion[GtmResource]:
  /** Resource constructor for GtmResource. 
    * 
    * @param name [[besom.util.NonEmptyString]] The unique (stack-wise) name of the resource in Pulumi state (not on provider's side).
    *        NonEmptyString is inferred automatically from non-empty string literals, even when interpolated. If you encounter any
    *        issues with this, please try using `: NonEmptyString` type annotation. If you need to convert a dynamically generated
    *        string to NonEmptyString, use `NonEmptyString.apply` method - `NonEmptyString(str): Option[NonEmptyString]`.
    *
    * @param args [[GtmResourceArgs]] The configuration to use to create this resource. 
    *
    * @param opts [[besom.CustomResourceOptions]] Resource options to use for this resource. 
    *        Defaults to empty options. If you need to set some options, use [[besom.opts]] function to create them, for example:
    *  
    *        {{{
    *        val res = GtmResource(
    *          "my-resource",
    *          GtmResourceArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: GtmResourceArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[GtmResource] =
    ctx.readOrRegisterResource[GtmResource, GtmResourceArgs]("akamai:index/gtmResource:GtmResource", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "akamai:index/gtmResource:GtmResource"

  given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[GtmResource] =
    besom.internal.ResourceDecoder.derived[GtmResource]

  given decoder(using besom.types.Context): besom.types.Decoder[GtmResource] =
    besom.internal.Decoder.customResourceDecoder[GtmResource]


  given outputOps: {} with
    extension(output: besom.types.Output[GtmResource])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def aggregationType : besom.types.Output[String] = output.flatMap(_.aggregationType)
      def constrainedProperty : besom.types.Output[scala.Option[String]] = output.flatMap(_.constrainedProperty)
      def decayRate : besom.types.Output[scala.Option[Double]] = output.flatMap(_.decayRate)
      def description : besom.types.Output[scala.Option[String]] = output.flatMap(_.description)
      def domain : besom.types.Output[String] = output.flatMap(_.domain)
      def hostHeader : besom.types.Output[scala.Option[String]] = output.flatMap(_.hostHeader)
      def leaderString : besom.types.Output[scala.Option[String]] = output.flatMap(_.leaderString)
      def leastSquaresDecay : besom.types.Output[scala.Option[Double]] = output.flatMap(_.leastSquaresDecay)
      def loadImbalancePercentage : besom.types.Output[scala.Option[Double]] = output.flatMap(_.loadImbalancePercentage)
      def maxUMultiplicativeIncrement : besom.types.Output[scala.Option[Double]] = output.flatMap(_.maxUMultiplicativeIncrement)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def resourceInstances : besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.akamai.outputs.GtmResourceResourceInstance]]] = output.flatMap(_.resourceInstances)
      def `type` : besom.types.Output[String] = output.flatMap(_.`type`)
      def upperBound : besom.types.Output[scala.Option[Int]] = output.flatMap(_.upperBound)
      def waitOnComplete : besom.types.Output[scala.Option[Boolean]] = output.flatMap(_.waitOnComplete)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy