All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.sqladmin.v1.SslCert.scala Maven / Gradle / Ivy

There is a newer version: 0.32.0-core.0.4
Show newest version
package besom.api.googlenative.sqladmin.v1

final case class SslCert private(
  urn: besom.types.Output[besom.types.URN],
  id: besom.types.Output[besom.types.ResourceId],
  cert: besom.types.Output[String],
  certSerialNumber: besom.types.Output[String],
  commonName: besom.types.Output[String],
  createTime: besom.types.Output[String],
  expirationTime: besom.types.Output[String],
  instance: besom.types.Output[String],
  kind: besom.types.Output[String],
  project: besom.types.Output[String],
  selfLink: besom.types.Output[String],
  sha1Fingerprint: besom.types.Output[String]
) extends besom.CustomResource

object SslCert extends besom.ResourceCompanion[SslCert]:
  /** Resource constructor for SslCert. 
    * 
    * @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 [[SslCertArgs]] 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 = SslCert(
    *          "my-resource",
    *          SslCertArgs(...), // your args
    *          opts(provider = myProvider)
    *        )
    *        }}}
    */
  def apply(using ctx: besom.types.Context)(
    name: besom.util.NonEmptyString,
    args: SslCertArgs,
    opts: besom.ResourceOptsVariant.Custom ?=> besom.CustomResourceOptions = besom.CustomResourceOptions()
  ): besom.types.Output[SslCert] =
    ctx.readOrRegisterResource[SslCert, SslCertArgs]("google-native:sqladmin/v1:SslCert", name, args, opts(using besom.ResourceOptsVariant.Custom))

  private[besom] def typeToken: besom.types.ResourceType = "google-native:sqladmin/v1:SslCert"

  given resourceDecoder(using besom.types.Context): besom.types.ResourceDecoder[SslCert] =
    besom.internal.ResourceDecoder.derived[SslCert]

  given decoder(using besom.types.Context): besom.types.Decoder[SslCert] =
    besom.internal.Decoder.customResourceDecoder[SslCert]


  given outputOps: {} with
    extension(output: besom.types.Output[SslCert])
      def urn : besom.types.Output[besom.types.URN] = output.flatMap(_.urn)
      def id : besom.types.Output[besom.types.ResourceId] = output.flatMap(_.id)
      def cert : besom.types.Output[String] = output.flatMap(_.cert)
      def certSerialNumber : besom.types.Output[String] = output.flatMap(_.certSerialNumber)
      def commonName : besom.types.Output[String] = output.flatMap(_.commonName)
      def createTime : besom.types.Output[String] = output.flatMap(_.createTime)
      def expirationTime : besom.types.Output[String] = output.flatMap(_.expirationTime)
      def instance : besom.types.Output[String] = output.flatMap(_.instance)
      def kind : besom.types.Output[String] = output.flatMap(_.kind)
      def project : besom.types.Output[String] = output.flatMap(_.project)
      def selfLink : besom.types.Output[String] = output.flatMap(_.selfLink)
      def sha1Fingerprint : besom.types.Output[String] = output.flatMap(_.sha1Fingerprint)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy