
src.gkehub.v1alpha.Feature.scala Maven / Gradle / Ivy
package besom.api.googlenative.gkehub.v1alpha
final case class Feature private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
createTime: besom.types.Output[String],
deleteTime: besom.types.Output[String],
featureId: besom.types.Output[scala.Option[String]],
fleetDefaultMemberConfig: besom.types.Output[besom.api.googlenative.gkehub.v1alpha.outputs.CommonFleetDefaultMemberConfigSpecResponse],
labels: besom.types.Output[scala.Predef.Map[String, String]],
location: besom.types.Output[String],
membershipSpecs: besom.types.Output[scala.Predef.Map[String, String]],
membershipStates: besom.types.Output[scala.Predef.Map[String, String]],
name: besom.types.Output[String],
project: besom.types.Output[String],
requestId: besom.types.Output[scala.Option[String]],
resourceState: besom.types.Output[besom.api.googlenative.gkehub.v1alpha.outputs.FeatureResourceStateResponse],
scopeSpecs: besom.types.Output[scala.Predef.Map[String, String]],
scopeStates: besom.types.Output[scala.Predef.Map[String, String]],
spec: besom.types.Output[besom.api.googlenative.gkehub.v1alpha.outputs.CommonFeatureSpecResponse],
state: besom.types.Output[besom.api.googlenative.gkehub.v1alpha.outputs.CommonFeatureStateResponse],
updateTime: besom.types.Output[String]
) extends besom.CustomResource
object Feature extends besom.ResourceCompanion[Feature]:
/** Resource constructor for Feature.
*
* @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 [[FeatureArgs]] 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 = Feature(
* "my-resource",
* FeatureArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: FeatureArgs = FeatureArgs(),
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Feature] =
ctx.readOrRegisterResource[Feature, FeatureArgs]("google-native:gkehub/v1alpha:Feature", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:gkehub/v1alpha:Feature"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Feature] =
besom.internal.ResourceDecoder.derived[Feature]
given decoder(using besom.types.Context): besom.types.Decoder[Feature] =
besom.internal.Decoder.customResourceDecoder[Feature]
given outputOps: {} with
extension(output: besom.types.Output[Feature])
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 deleteTime : besom.types.Output[String] = output.flatMap(_.deleteTime)
def featureId : besom.types.Output[scala.Option[String]] = output.flatMap(_.featureId)
def fleetDefaultMemberConfig : besom.types.Output[besom.api.googlenative.gkehub.v1alpha.outputs.CommonFleetDefaultMemberConfigSpecResponse] = output.flatMap(_.fleetDefaultMemberConfig)
def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
def location : besom.types.Output[String] = output.flatMap(_.location)
def membershipSpecs : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.membershipSpecs)
def membershipStates : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.membershipStates)
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 resourceState : besom.types.Output[besom.api.googlenative.gkehub.v1alpha.outputs.FeatureResourceStateResponse] = output.flatMap(_.resourceState)
def scopeSpecs : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.scopeSpecs)
def scopeStates : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.scopeStates)
def spec : besom.types.Output[besom.api.googlenative.gkehub.v1alpha.outputs.CommonFeatureSpecResponse] = output.flatMap(_.spec)
def state : besom.types.Output[besom.api.googlenative.gkehub.v1alpha.outputs.CommonFeatureStateResponse] = output.flatMap(_.state)
def updateTime : besom.types.Output[String] = output.flatMap(_.updateTime)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy