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