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