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

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

The newest version!
package besom.api.akamai

final case class GtmDatacenter private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  city: besom.types.Output[scala.Option[String]],
  cloneOf: besom.types.Output[scala.Option[Int]],
  cloudServerHostHeaderOverride: besom.types.Output[scala.Option[Boolean]],
  cloudServerTargeting: besom.types.Output[scala.Option[Boolean]],
  continent: besom.types.Output[scala.Option[String]],
  country: besom.types.Output[scala.Option[String]],
  datacenterId: besom.types.Output[Int],
  defaultLoadObject: besom.types.Output[scala.Option[besom.api.akamai.outputs.GtmDatacenterDefaultLoadObject]],
  domain: besom.types.Output[String],
  latitude: besom.types.Output[scala.Option[Double]],
  longitude: besom.types.Output[scala.Option[Double]],
  nickname: besom.types.Output[scala.Option[String]],
  pingInterval: besom.types.Output[Int],
  pingPacketSize: besom.types.Output[Int],
  scorePenalty: besom.types.Output[Int],
  servermonitorLivenessCount: besom.types.Output[Int],
  servermonitorLoadCount: besom.types.Output[Int],
  servermonitorPool: besom.types.Output[String],
  stateOrProvince: besom.types.Output[scala.Option[String]],
  virtual: besom.types.Output[Boolean],
  waitOnComplete: besom.types.Output[scala.Option[Boolean]]
) extends besom.CustomResource

object GtmDatacenter extends besom.ResourceCompanion[GtmDatacenter]:
  /** Resource constructor for GtmDatacenter. 
    * 
    * @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 [[GtmDatacenterArgs]] 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 = GtmDatacenter(
    *          "my-resource",
    *          GtmDatacenterArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: GtmDatacenterArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[GtmDatacenter] =
    ctx.readOrRegisterResource[GtmDatacenter, GtmDatacenterArgs]("akamai:index/gtmDatacenter:GtmDatacenter", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "akamai:index/gtmDatacenter:GtmDatacenter"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[GtmDatacenter])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def city : besom.types.Output[scala.Option[String]] = output.flatMap(_.city)
      def cloneOf : besom.types.Output[scala.Option[Int]] = output.flatMap(_.cloneOf)
      def cloudServerHostHeaderOverride : besom.types.Output[scala.Option[Boolean]] = output.flatMap(_.cloudServerHostHeaderOverride)
      def cloudServerTargeting : besom.types.Output[scala.Option[Boolean]] = output.flatMap(_.cloudServerTargeting)
      def continent : besom.types.Output[scala.Option[String]] = output.flatMap(_.continent)
      def country : besom.types.Output[scala.Option[String]] = output.flatMap(_.country)
      def datacenterId : besom.types.Output[Int] = output.flatMap(_.datacenterId)
      def defaultLoadObject : besom.types.Output[scala.Option[besom.api.akamai.outputs.GtmDatacenterDefaultLoadObject]] = output.flatMap(_.defaultLoadObject)
      def domain : besom.types.Output[String] = output.flatMap(_.domain)
      def latitude : besom.types.Output[scala.Option[Double]] = output.flatMap(_.latitude)
      def longitude : besom.types.Output[scala.Option[Double]] = output.flatMap(_.longitude)
      def nickname : besom.types.Output[scala.Option[String]] = output.flatMap(_.nickname)
      def pingInterval : besom.types.Output[Int] = output.flatMap(_.pingInterval)
      def pingPacketSize : besom.types.Output[Int] = output.flatMap(_.pingPacketSize)
      def scorePenalty : besom.types.Output[Int] = output.flatMap(_.scorePenalty)
      def servermonitorLivenessCount : besom.types.Output[Int] = output.flatMap(_.servermonitorLivenessCount)
      def servermonitorLoadCount : besom.types.Output[Int] = output.flatMap(_.servermonitorLoadCount)
      def servermonitorPool : besom.types.Output[String] = output.flatMap(_.servermonitorPool)
      def stateOrProvince : besom.types.Output[scala.Option[String]] = output.flatMap(_.stateOrProvince)
      def virtual : besom.types.Output[Boolean] = output.flatMap(_.virtual)
      def waitOnComplete : besom.types.Output[scala.Option[Boolean]] = output.flatMap(_.waitOnComplete)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy