
src.notebooks.v2.Instance.scala Maven / Gradle / Ivy
package besom.api.googlenative.notebooks.v2
final case class Instance private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
createTime: besom.types.Output[String],
creator: besom.types.Output[String],
disableProxyAccess: besom.types.Output[Boolean],
gceSetup: besom.types.Output[besom.api.googlenative.notebooks.v2.outputs.GceSetupResponse],
healthInfo: besom.types.Output[scala.Predef.Map[String, String]],
healthState: besom.types.Output[String],
instanceId: besom.types.Output[String],
instanceOwners: besom.types.Output[scala.collection.immutable.List[String]],
labels: besom.types.Output[scala.Predef.Map[String, String]],
location: besom.types.Output[String],
name: besom.types.Output[String],
project: besom.types.Output[String],
proxyUri: besom.types.Output[String],
requestId: besom.types.Output[scala.Option[String]],
state: besom.types.Output[String],
updateTime: besom.types.Output[String],
upgradeHistory: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.notebooks.v2.outputs.UpgradeHistoryEntryResponse]]
) extends besom.CustomResource
object Instance extends besom.ResourceCompanion[Instance]:
/** Resource constructor for Instance.
*
* @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 [[InstanceArgs]] The configuration to use to create this resource.
*
* @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 = Instance(
* "my-resource",
* InstanceArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: InstanceArgs,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Instance] =
ctx.readOrRegisterResource[Instance, InstanceArgs]("google-native:notebooks/v2:Instance", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:notebooks/v2:Instance"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Instance] =
besom.internal.ResourceDecoder.derived[Instance]
given decoder(using besom.types.Context): besom.types.Decoder[Instance] =
besom.internal.Decoder.customResourceDecoder[Instance]
given outputOps: {} with
extension(output: besom.types.Output[Instance])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
def creator : besom.types.Output[String] = output.flatMap(_.creator)
def disableProxyAccess : besom.types.Output[Boolean] = output.flatMap(_.disableProxyAccess)
def gceSetup : besom.types.Output[besom.api.googlenative.notebooks.v2.outputs.GceSetupResponse] = output.flatMap(_.gceSetup)
def healthInfo : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.healthInfo)
def healthState : besom.types.Output[String] = output.flatMap(_.healthState)
def instanceId : besom.types.Output[String] = output.flatMap(_.instanceId)
def instanceOwners : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.instanceOwners)
def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
def location : besom.types.Output[String] = output.flatMap(_.location)
def name : besom.types.Output[String] = output.flatMap(_.name)
def project : besom.types.Output[String] = output.flatMap(_.project)
def proxyUri : besom.types.Output[String] = output.flatMap(_.proxyUri)
def requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
def state : besom.types.Output[String] = output.flatMap(_.state)
def updateTime : besom.types.Output[String] = output.flatMap(_.updateTime)
def upgradeHistory : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.notebooks.v2.outputs.UpgradeHistoryEntryResponse]] = output.flatMap(_.upgradeHistory)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy