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