
src.compute.v1.Firewall.scala Maven / Gradle / Ivy
package besom.api.googlenative.compute.v1
final case class Firewall private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
allowed: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.FirewallAllowedItemResponse]],
creationTimestamp: besom.types.Output[String],
denied: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.FirewallDeniedItemResponse]],
description: besom.types.Output[String],
destinationRanges: besom.types.Output[scala.collection.immutable.List[String]],
direction: besom.types.Output[String],
disabled: besom.types.Output[Boolean],
kind: besom.types.Output[String],
logConfig: besom.types.Output[besom.api.googlenative.compute.v1.outputs.FirewallLogConfigResponse],
name: besom.types.Output[String],
network: besom.types.Output[String],
priority: besom.types.Output[Int],
project: besom.types.Output[String],
requestId: besom.types.Output[scala.Option[String]],
selfLink: besom.types.Output[String],
sourceRanges: besom.types.Output[scala.collection.immutable.List[String]],
sourceServiceAccounts: besom.types.Output[scala.collection.immutable.List[String]],
sourceTags: besom.types.Output[scala.collection.immutable.List[String]],
targetServiceAccounts: besom.types.Output[scala.collection.immutable.List[String]],
targetTags: besom.types.Output[scala.collection.immutable.List[String]]
) extends besom.CustomResource
object Firewall extends besom.ResourceCompanion[Firewall]:
/** Resource constructor for Firewall.
*
* @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 [[FirewallArgs]] 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 = Firewall(
* "my-resource",
* FirewallArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: FirewallArgs = FirewallArgs(),
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Firewall] =
ctx.readOrRegisterResource[Firewall, FirewallArgs]("google-native:compute/v1:Firewall", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:compute/v1:Firewall"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Firewall] =
besom.internal.ResourceDecoder.derived[Firewall]
given decoder(using besom.types.Context): besom.types.Decoder[Firewall] =
besom.internal.Decoder.customResourceDecoder[Firewall]
given outputOps: {} with
extension(output: besom.types.Output[Firewall])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def allowed : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.FirewallAllowedItemResponse]] = output.flatMap(_.allowed)
def creationTimestamp : besom.types.Output[String] = output.flatMap(_.creationTimestamp)
def denied : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.compute.v1.outputs.FirewallDeniedItemResponse]] = output.flatMap(_.denied)
def description : besom.types.Output[String] = output.flatMap(_.description)
def destinationRanges : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.destinationRanges)
def direction : besom.types.Output[String] = output.flatMap(_.direction)
def disabled : besom.types.Output[Boolean] = output.flatMap(_.disabled)
def kind : besom.types.Output[String] = output.flatMap(_.kind)
def logConfig : besom.types.Output[besom.api.googlenative.compute.v1.outputs.FirewallLogConfigResponse] = output.flatMap(_.logConfig)
def name : besom.types.Output[String] = output.flatMap(_.name)
def network : besom.types.Output[String] = output.flatMap(_.network)
def priority : besom.types.Output[Int] = output.flatMap(_.priority)
def project : besom.types.Output[String] = output.flatMap(_.project)
def requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
def selfLink : besom.types.Output[String] = output.flatMap(_.selfLink)
def sourceRanges : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.sourceRanges)
def sourceServiceAccounts : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.sourceServiceAccounts)
def sourceTags : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.sourceTags)
def targetServiceAccounts : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.targetServiceAccounts)
def targetTags : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.targetTags)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy