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

src.dns.v1.Policy.scala Maven / Gradle / Ivy

The newest version!
package besom.api.googlenative.dns.v1

final case class Policy private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  alternativeNameServerConfig: besom.types.Output[besom.api.googlenative.dns.v1.outputs.PolicyAlternativeNameServerConfigResponse],
  clientOperationId: besom.types.Output[scala.Option[String]],
  description: besom.types.Output[String],
  enableInboundForwarding: besom.types.Output[Boolean],
  enableLogging: besom.types.Output[Boolean],
  kind: besom.types.Output[String],
  name: besom.types.Output[String],
  networks: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.dns.v1.outputs.PolicyNetworkResponse]],
  project: besom.types.Output[String]
) extends besom.CustomResource

object Policy extends besom.ResourceCompanion[Policy]:
  /** Resource constructor for Policy. 
    * 
    * @param name [[besom.util.NonEmptyString]] The unique (stack-wise) name of the resource in Pulumi state (not on provider's side).
    *        NonEmptyString is inferred automatically from non-empty string literals, even when interpolated. If you encounter any
    *        issues with this, please try using `: NonEmptyString` type annotation. If you need to convert a dynamically generated
    *        string to NonEmptyString, use `NonEmptyString.apply` method - `NonEmptyString(str): Option[NonEmptyString]`.
    *
    * @param args [[PolicyArgs]] The configuration to use to create this resource. This resource has a default configuration.
    *
    * @param opts [[besom.CustomResourceOptions]] Resource options to use for this resource. 
    *        Defaults to empty options. If you need to set some options, use [[besom.opts]] function to create them, for example:
    *  
    *        {{{
    *        val res = Policy(
    *          "my-resource",
    *          PolicyArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: PolicyArgs = PolicyArgs(),
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[Policy] =
    ctx.readOrRegisterResource[Policy, PolicyArgs]("google-native:dns/v1:Policy", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:dns/v1:Policy"

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

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


  given outputOps: {} with
    extension(output: besom.types.Output[Policy])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def alternativeNameServerConfig : besom.types.Output[besom.api.googlenative.dns.v1.outputs.PolicyAlternativeNameServerConfigResponse] = output.flatMap(_.alternativeNameServerConfig)
      def clientOperationId : besom.types.Output[scala.Option[String]] = output.flatMap(_.clientOperationId)
      def description : besom.types.Output[String] = output.flatMap(_.description)
      def enableInboundForwarding : besom.types.Output[Boolean] = output.flatMap(_.enableInboundForwarding)
      def enableLogging : besom.types.Output[Boolean] = output.flatMap(_.enableLogging)
      def kind : besom.types.Output[String] = output.flatMap(_.kind)
      def name : besom.types.Output[String] = output.flatMap(_.name)
      def networks : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.dns.v1.outputs.PolicyNetworkResponse]] = output.flatMap(_.networks)
      def project : besom.types.Output[String] = output.flatMap(_.project)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy