src.index.EventDestination.scala Maven / Gradle / Ivy
package besom.api.ngrok
final case class EventDestination private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
description: besom.types.Output[scala.Option[String]],
format: besom.types.Output[scala.Option[String]],
metadata: besom.types.Output[scala.Option[String]],
targets: besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.ngrok.outputs.EventDestinationTarget]]],
verifyWithTestEvent: besom.types.Output[scala.Option[Boolean]]
) extends besom.CustomResource
object EventDestination extends besom.ResourceCompanion[EventDestination]:
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: EventDestinationArgs = EventDestinationArgs(),
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[EventDestination] =
ctx.readOrRegisterResource[EventDestination, EventDestinationArgs]("ngrok:index/eventDestination:EventDestination", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "ngrok:index/eventDestination:EventDestination"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[EventDestination] =
besom.internal.ResourceDecoder.derived[EventDestination]
given decoder(using besom.types.Context): besom.types.Decoder[EventDestination] =
besom.internal.Decoder.customResourceDecoder[EventDestination]
given outputOps: {} with
extension(output: besom.types.Output[EventDestination])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def description : besom.types.Output[scala.Option[String]] = output.flatMap(_.description)
def format : besom.types.Output[scala.Option[String]] = output.flatMap(_.format)
def metadata : besom.types.Output[scala.Option[String]] = output.flatMap(_.metadata)
def targets : besom.types.Output[scala.Option[scala.collection.immutable.List[besom.api.ngrok.outputs.EventDestinationTarget]]] = output.flatMap(_.targets)
def verifyWithTestEvent : besom.types.Output[scala.Option[Boolean]] = output.flatMap(_.verifyWithTestEvent)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy