
src.dataproc.v1.Session.scala Maven / Gradle / Ivy
package besom.api.googlenative.dataproc.v1
final case class Session 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],
environmentConfig: besom.types.Output[besom.api.googlenative.dataproc.v1.outputs.EnvironmentConfigResponse],
jupyterSession: besom.types.Output[besom.api.googlenative.dataproc.v1.outputs.JupyterConfigResponse],
labels: besom.types.Output[scala.Predef.Map[String, String]],
location: besom.types.Output[String],
name: besom.types.Output[String],
project: besom.types.Output[String],
requestId: besom.types.Output[scala.Option[String]],
runtimeConfig: besom.types.Output[besom.api.googlenative.dataproc.v1.outputs.RuntimeConfigResponse],
runtimeInfo: besom.types.Output[besom.api.googlenative.dataproc.v1.outputs.RuntimeInfoResponse],
sessionId: besom.types.Output[String],
sessionTemplate: besom.types.Output[String],
state: besom.types.Output[String],
stateHistory: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.dataproc.v1.outputs.SessionStateHistoryResponse]],
stateMessage: besom.types.Output[String],
stateTime: besom.types.Output[String],
user: besom.types.Output[String],
uuid: besom.types.Output[String]
) extends besom.CustomResource
object Session extends besom.ResourceCompanion[Session]:
/** Resource constructor for Session.
*
* @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 [[SessionArgs]] 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 = Session(
* "my-resource",
* SessionArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: SessionArgs,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Session] =
ctx.readOrRegisterResource[Session, SessionArgs]("google-native:dataproc/v1:Session", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:dataproc/v1:Session"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Session] =
besom.internal.ResourceDecoder.derived[Session]
given decoder(using besom.types.Context): besom.types.Decoder[Session] =
besom.internal.Decoder.customResourceDecoder[Session]
given outputOps: {} with
extension(output: besom.types.Output[Session])
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 environmentConfig : besom.types.Output[besom.api.googlenative.dataproc.v1.outputs.EnvironmentConfigResponse] = output.flatMap(_.environmentConfig)
def jupyterSession : besom.types.Output[besom.api.googlenative.dataproc.v1.outputs.JupyterConfigResponse] = output.flatMap(_.jupyterSession)
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 requestId : besom.types.Output[scala.Option[String]] = output.flatMap(_.requestId)
def runtimeConfig : besom.types.Output[besom.api.googlenative.dataproc.v1.outputs.RuntimeConfigResponse] = output.flatMap(_.runtimeConfig)
def runtimeInfo : besom.types.Output[besom.api.googlenative.dataproc.v1.outputs.RuntimeInfoResponse] = output.flatMap(_.runtimeInfo)
def sessionId : besom.types.Output[String] = output.flatMap(_.sessionId)
def sessionTemplate : besom.types.Output[String] = output.flatMap(_.sessionTemplate)
def state : besom.types.Output[String] = output.flatMap(_.state)
def stateHistory : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.dataproc.v1.outputs.SessionStateHistoryResponse]] = output.flatMap(_.stateHistory)
def stateMessage : besom.types.Output[String] = output.flatMap(_.stateMessage)
def stateTime : besom.types.Output[String] = output.flatMap(_.stateTime)
def user : besom.types.Output[String] = output.flatMap(_.user)
def uuid : besom.types.Output[String] = output.flatMap(_.uuid)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy