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

src.cloudfunctions.v2.Function.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.cloudfunctions.v2

final case class Function private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  buildConfig: besom.types.Output[besom.api.googlenative.cloudfunctions.v2.outputs.BuildConfigResponse],
  description: besom.types.Output[String],
  environment: besom.types.Output[String],
  eventTrigger: besom.types.Output[besom.api.googlenative.cloudfunctions.v2.outputs.EventTriggerResponse],
  functionId: besom.types.Output[scala.Option[String]],
  kmsKeyName: besom.types.Output[String],
  labels: besom.types.Output[scala.Predef.Map[String, String]],
  location: besom.types.Output[String],
  name: besom.types.Output[String],
  project: besom.types.Output[String],
  satisfiesPzs: besom.types.Output[Boolean],
  serviceConfig: besom.types.Output[besom.api.googlenative.cloudfunctions.v2.outputs.ServiceConfigResponse],
  state: besom.types.Output[String],
  stateMessages: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.cloudfunctions.v2.outputs.GoogleCloudFunctionsV2StateMessageResponse]],
  updateTime: besom.types.Output[String],
  url: besom.types.Output[String]
) extends besom.CustomResource

object Function extends besom.ResourceCompanion[Function]:
  /** Resource constructor for Function. 
    * 
    * @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 [[FunctionArgs]] The configuration to use to create this resource. This resource has a default configuration.
    *
    * @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 = Function(
    *          "my-resource",
    *          FunctionArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: FunctionArgs = FunctionArgs(),
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[Function] =
    ctx.readOrRegisterResource[Function, FunctionArgs]("google-native:cloudfunctions/v2:Function", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:cloudfunctions/v2:Function"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[Function])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def buildConfig : besom.types.Output[besom.api.googlenative.cloudfunctions.v2.outputs.BuildConfigResponse] = output.flatMap(_.buildConfig)
      def description : besom.types.Output[String] = output.flatMap(_.description)
      def environment : besom.types.Output[String] = output.flatMap(_.environment)
      def eventTrigger : besom.types.Output[besom.api.googlenative.cloudfunctions.v2.outputs.EventTriggerResponse] = output.flatMap(_.eventTrigger)
      def functionId : besom.types.Output[scala.Option[String]] = output.flatMap(_.functionId)
      def kmsKeyName : besom.types.Output[String] = output.flatMap(_.kmsKeyName)
      def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
      def location : besom.types.Output[String] = output.flatMap(_.location)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def satisfiesPzs : besom.types.Output[Boolean] = output.flatMap(_.satisfiesPzs)
      def serviceConfig : besom.types.Output[besom.api.googlenative.cloudfunctions.v2.outputs.ServiceConfigResponse] = output.flatMap(_.serviceConfig)
      def state : besom.types.Output[String] = output.flatMap(_.state)
      def stateMessages : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.cloudfunctions.v2.outputs.GoogleCloudFunctionsV2StateMessageResponse]] = output.flatMap(_.stateMessages)
      def updateTime : besom.types.Output[String] = output.flatMap(_.updateTime)
      def url : besom.types.Output[String] = output.flatMap(_.url)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy