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