
src.logging.v2.Metric.scala Maven / Gradle / Ivy
package besom.api.googlenative.logging.v2
final case class Metric private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
bucketName: besom.types.Output[String],
bucketOptions: besom.types.Output[besom.api.googlenative.logging.v2.outputs.BucketOptionsResponse],
createTime: besom.types.Output[String],
description: besom.types.Output[String],
disabled: besom.types.Output[Boolean],
filter: besom.types.Output[String],
labelExtractors: besom.types.Output[scala.Predef.Map[String, String]],
metricDescriptor: besom.types.Output[besom.api.googlenative.logging.v2.outputs.MetricDescriptorResponse],
name: besom.types.Output[String],
project: besom.types.Output[String],
updateTime: besom.types.Output[String],
valueExtractor: besom.types.Output[String],
version: besom.types.Output[String]
) extends besom.CustomResource
object Metric extends besom.ResourceCompanion[Metric]:
/** Resource constructor for Metric.
*
* @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 [[MetricArgs]] 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 = Metric(
* "my-resource",
* MetricArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: MetricArgs,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Metric] =
ctx.readOrRegisterResource[Metric, MetricArgs]("google-native:logging/v2:Metric", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:logging/v2:Metric"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Metric] =
besom.internal.ResourceDecoder.derived[Metric]
given decoder(using besom.types.Context): besom.types.Decoder[Metric] =
besom.internal.Decoder.customResourceDecoder[Metric]
given outputOps: {} with
extension(output: besom.types.Output[Metric])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def bucketName : besom.types.Output[String] = output.flatMap(_.bucketName)
def bucketOptions : besom.types.Output[besom.api.googlenative.logging.v2.outputs.BucketOptionsResponse] = output.flatMap(_.bucketOptions)
def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
def description : besom.types.Output[String] = output.flatMap(_.description)
def disabled : besom.types.Output[Boolean] = output.flatMap(_.disabled)
def filter : besom.types.Output[String] = output.flatMap(_.filter)
def labelExtractors : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labelExtractors)
def metricDescriptor : besom.types.Output[besom.api.googlenative.logging.v2.outputs.MetricDescriptorResponse] = output.flatMap(_.metricDescriptor)
def name : besom.types.Output[String] = output.flatMap(_.name)
def project : besom.types.Output[String] = output.flatMap(_.project)
def updateTime : besom.types.Output[String] = output.flatMap(_.updateTime)
def valueExtractor : besom.types.Output[String] = output.flatMap(_.valueExtractor)
def version : besom.types.Output[String] = output.flatMap(_.version)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy