com.pulumi.googlenative.firebasehosting.v1beta1.kotlin.Site.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.firebasehosting.v1beta1.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
/**
* Builder for [Site].
*/
@PulumiTagMarker
public class SiteResourceBuilder internal constructor() {
public var name: String? = null
public var args: SiteArgs = SiteArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend SiteArgsBuilder.() -> Unit) {
val builder = SiteArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Site {
val builtJavaResource =
com.pulumi.googlenative.firebasehosting.v1beta1.Site(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Site(builtJavaResource)
}
}
/**
* Creates a new Hosting Site in the specified parent Firebase project. Note that Hosting sites can take several minutes to propagate through Firebase systems.
* Auto-naming is currently not supported for this resource.
*/
public class Site internal constructor(
override val javaResource: com.pulumi.googlenative.firebasehosting.v1beta1.Site,
) : KotlinCustomResource(javaResource, SiteMapper) {
/**
* Optional. The [ID of a Web App](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the Hosting site.
*/
public val appId: Output
get() = javaResource.appId().applyValue({ args0 -> args0 })
/**
* The default URL for the Hosting site.
*/
public val defaultUrl: Output
get() = javaResource.defaultUrl().applyValue({ args0 -> args0 })
/**
* Optional. User-specified labels for the Hosting site.
*/
public val labels: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy