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

src.index.TlsCertificate.scala Maven / Gradle / Ivy

There is a newer version: 0.0.24-core.0.3
Show newest version
package besom.api.ngrok

final case class TlsCertificate private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  certificatePem: besom.types.Output[String],
  description: besom.types.Output[scala.Option[String]],
  metadata: besom.types.Output[scala.Option[String]],
  privateKeyPem: besom.types.Output[String],
  subjectAlternativeNames: besom.types.Output[scala.collection.immutable.List[besom.api.ngrok.outputs.TlsCertificateSubjectAlternativeName]]
) extends besom.CustomResource

object TlsCertificate extends besom.ResourceCompanion[TlsCertificate]:
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: TlsCertificateArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[TlsCertificate] =
    ctx.readOrRegisterResource[TlsCertificate, TlsCertificateArgs]("ngrok:index/tlsCertificate:TlsCertificate", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "ngrok:index/tlsCertificate:TlsCertificate"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[TlsCertificate])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def certificatePem : besom.types.Output[String] = output.flatMap(_.certificatePem)
      def description : besom.types.Output[scala.Option[String]] = output.flatMap(_.description)
      def metadata : besom.types.Output[scala.Option[String]] = output.flatMap(_.metadata)
      def privateKeyPem : besom.types.Output[String] = output.flatMap(_.privateKeyPem)
      def subjectAlternativeNames : besom.types.Output[scala.collection.immutable.List[besom.api.ngrok.outputs.TlsCertificateSubjectAlternativeName]] = output.flatMap(_.subjectAlternativeNames)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy