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

src.index.IpPolicyRule.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 IpPolicyRule private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  action: besom.types.Output[scala.Option[String]],
  cidr: besom.types.Output[String],
  description: besom.types.Output[scala.Option[String]],
  ipPolicyId: besom.types.Output[String],
  metadata: besom.types.Output[scala.Option[String]]
) extends besom.CustomResource

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

  private[besom] def typeToken: besom.types.ResourceType = "ngrok:index/ipPolicyRule:IpPolicyRule"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[IpPolicyRule])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def action : besom.types.Output[scala.Option[String]] = output.flatMap(_.action)
      def cidr : besom.types.Output[String] = output.flatMap(_.cidr)
      def description : besom.types.Output[scala.Option[String]] = output.flatMap(_.description)
      def ipPolicyId : besom.types.Output[String] = output.flatMap(_.ipPolicyId)
      def metadata : besom.types.Output[scala.Option[String]] = output.flatMap(_.metadata)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy