
src.spanner.v1.InstanceConfig.scala Maven / Gradle / Ivy
package besom.api.googlenative.spanner.v1
final case class InstanceConfig private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
baseConfig: besom.types.Output[String],
configType: besom.types.Output[String],
displayName: besom.types.Output[String],
etag: besom.types.Output[String],
freeInstanceAvailability: besom.types.Output[String],
labels: besom.types.Output[scala.Predef.Map[String, String]],
leaderOptions: besom.types.Output[scala.collection.immutable.List[String]],
name: besom.types.Output[String],
optionalReplicas: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.spanner.v1.outputs.ReplicaInfoResponse]],
project: besom.types.Output[String],
reconciling: besom.types.Output[Boolean],
replicas: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.spanner.v1.outputs.ReplicaInfoResponse]],
state: besom.types.Output[String]
) extends besom.CustomResource
object InstanceConfig extends besom.ResourceCompanion[InstanceConfig]:
/** Resource constructor for InstanceConfig.
*
* @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 [[InstanceConfigArgs]] 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 = InstanceConfig(
* "my-resource",
* InstanceConfigArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: InstanceConfigArgs,
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[InstanceConfig] =
ctx.readOrRegisterResource[InstanceConfig, InstanceConfigArgs]("google-native:spanner/v1:InstanceConfig", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:spanner/v1:InstanceConfig"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[InstanceConfig] =
besom.internal.ResourceDecoder.derived[InstanceConfig]
given decoder(using besom.types.Context): besom.types.Decoder[InstanceConfig] =
besom.internal.Decoder.customResourceDecoder[InstanceConfig]
given outputOps: {} with
extension(output: besom.types.Output[InstanceConfig])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def baseConfig : besom.types.Output[String] = output.flatMap(_.baseConfig)
def configType : besom.types.Output[String] = output.flatMap(_.configType)
def displayName : besom.types.Output[String] = output.flatMap(_.displayName)
def etag : besom.types.Output[String] = output.flatMap(_.etag)
def freeInstanceAvailability : besom.types.Output[String] = output.flatMap(_.freeInstanceAvailability)
def labels : besom.types.Output[scala.Predef.Map[String, String]] = output.flatMap(_.labels)
def leaderOptions : besom.types.Output[scala.collection.immutable.List[String]] = output.flatMap(_.leaderOptions)
def name : besom.types.Output[String] = output.flatMap(_.name)
def optionalReplicas : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.spanner.v1.outputs.ReplicaInfoResponse]] = output.flatMap(_.optionalReplicas)
def project : besom.types.Output[String] = output.flatMap(_.project)
def reconciling : besom.types.Output[Boolean] = output.flatMap(_.reconciling)
def replicas : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.spanner.v1.outputs.ReplicaInfoResponse]] = output.flatMap(_.replicas)
def state : besom.types.Output[String] = output.flatMap(_.state)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy