
src.cloudiot.v1.Registry.scala Maven / Gradle / Ivy
package besom.api.googlenative.cloudiot.v1
final case class Registry private(
urn: besom.types.Output[besom.types.URN],
id: besom.types.Output[besom.types.ResourceId],
credentials: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.cloudiot.v1.outputs.RegistryCredentialResponse]],
eventNotificationConfigs: besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.cloudiot.v1.outputs.EventNotificationConfigResponse]],
httpConfig: besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.HttpConfigResponse],
location: besom.types.Output[String],
logLevel: besom.types.Output[String],
mqttConfig: besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.MqttConfigResponse],
name: besom.types.Output[String],
project: besom.types.Output[String],
stateNotificationConfig: besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.StateNotificationConfigResponse]
) extends besom.CustomResource
object Registry extends besom.ResourceCompanion[Registry]:
/** Resource constructor for Registry.
*
* @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 [[RegistryArgs]] 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 = Registry(
* "my-resource",
* RegistryArgs(...), // your args
* opts(provider = myProvider)
* )
* }}}
*/
def apply(using ctx: besom.types.Context)(
name: besom.util.NonEmptyString,
args: RegistryArgs = RegistryArgs(),
opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
): besom.types.Output[Registry] =
ctx.readOrRegisterResource[Registry, RegistryArgs]("google-native:cloudiot/v1:Registry", name, args, opts(using besom.ResourceOptsVariant.Custom))
private[besom] def typeToken: besom.types.ResourceType = "google-native:cloudiot/v1:Registry"
given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[Registry] =
besom.internal.ResourceDecoder.derived[Registry]
given decoder(using besom.types.Context): besom.types.Decoder[Registry] =
besom.internal.Decoder.customResourceDecoder[Registry]
given outputOps: {} with
extension(output: besom.types.Output[Registry])
def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
def credentials : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.cloudiot.v1.outputs.RegistryCredentialResponse]] = output.flatMap(_.credentials)
def eventNotificationConfigs : besom.types.Output[scala.collection.immutable.List[besom.api.googlenative.cloudiot.v1.outputs.EventNotificationConfigResponse]] = output.flatMap(_.eventNotificationConfigs)
def httpConfig : besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.HttpConfigResponse] = output.flatMap(_.httpConfig)
def location : besom.types.Output[String] = output.flatMap(_.location)
def logLevel : besom.types.Output[String] = output.flatMap(_.logLevel)
def mqttConfig : besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.MqttConfigResponse] = output.flatMap(_.mqttConfig)
def name : besom.types.Output[String] = output.flatMap(_.name)
def project : besom.types.Output[String] = output.flatMap(_.project)
def stateNotificationConfig : besom.types.Output[besom.api.googlenative.cloudiot.v1.outputs.StateNotificationConfigResponse] = output.flatMap(_.stateNotificationConfig)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy