
src.dns.v1beta2.ResponsePolicy.scala Maven / Gradle / Ivy
package besom.api.googlenative.dns.v1beta2
final case class ResponsePolicy private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
clientOperationId: besom.types.Output[scala.Option[String]],
description: besom.types.Output[String],
gkeClusters: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.dns.v1beta2.outputs.ResponsePolicyGkeClusterResponse]],
kind: besom.types.Output[String],
labels: besom.types.Output[scala.Predef.Map[String, String]],
networks: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.dns.v1beta2.outputs.ResponsePolicyNetworkResponse]],
project: besom.types.Output[String],
responsePolicyName: besom.types.Output[String]
) extends besom.CustomResource
object ResponsePolicy extends besom.ResourceCompanion[ResponsePolicy]:
/** Resource constructor for ResponsePolicy.
*
* @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 [[ResponsePolicyArgs]] 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 = ResponsePolicy(
* "my-resource",
* ResponsePolicyArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: ResponsePolicyArgs = ResponsePolicyArgs(),
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[ResponsePolicy] =
ctx.readOrRegisterResource[ResponsePolicy, ResponsePolicyArgs]("google-native:dns/v1beta2:ResponsePolicy", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:dns/v1beta2:ResponsePolicy"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[ResponsePolicy] =
besom.internal.ResourceDecoder.derived[ResponsePolicy]
given decoder(using besom.types.Context): besom.types.Decoder[ResponsePolicy] =
besom.internal.Decoder.customResourceDecoder[ResponsePolicy]
given outputOps: {} with
extension(output: besom.types.Output[ResponsePolicy])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def clientOperationId : besom.types.Output[scala.Option[String]] = output.flatMap(_.clientOperationId)
def description : besom.types.Output[String] = output.flatMap(_.description)
def gkeClusters : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.dns.v1beta2.outputs.ResponsePolicyGkeClusterResponse]] = output.flatMap(_.gkeClusters)
def kind : besom.types.Output[String] = output.flatMap(_.kind)
def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
def networks : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.dns.v1beta2.outputs.ResponsePolicyNetworkResponse]] = output.flatMap(_.networks)
def project : besom.types.Output[String] = output.flatMap(_.project)
def responsePolicyName : besom.types.Output[String] = output.flatMap(_.responsePolicyName)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy