com.pulumi.googlenative.logging.v2.kotlin.BillingAccountBucketView.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.logging.v2.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
/**
* Builder for [BillingAccountBucketView].
*/
@PulumiTagMarker
public class BillingAccountBucketViewResourceBuilder internal constructor() {
public var name: String? = null
public var args: BillingAccountBucketViewArgs = BillingAccountBucketViewArgs()
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 BillingAccountBucketViewArgsBuilder.() -> Unit) {
val builder = BillingAccountBucketViewArgsBuilder()
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(): BillingAccountBucketView {
val builtJavaResource =
com.pulumi.googlenative.logging.v2.BillingAccountBucketView(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return BillingAccountBucketView(builtJavaResource)
}
}
/**
* Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.
* Auto-naming is currently not supported for this resource.
*/
public class BillingAccountBucketView internal constructor(
override val javaResource: com.pulumi.googlenative.logging.v2.BillingAccountBucketView,
) : KotlinCustomResource(javaResource, BillingAccountBucketViewMapper) {
public val billingAccountId: Output
get() = javaResource.billingAccountId().applyValue({ args0 -> args0 })
public val bucketId: Output
get() = javaResource.bucketId().applyValue({ args0 -> args0 })
/**
* The creation timestamp of the view.
*/
public val createTime: Output
get() = javaResource.createTime().applyValue({ args0 -> args0 })
/**
* Describes this view.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")
*/
public val filter: Output
get() = javaResource.filter().applyValue({ args0 -> args0 })
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
/**
* The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The last update timestamp of the view.
*/
public val updateTime: Output
get() = javaResource.updateTime().applyValue({ args0 -> args0 })
/**
* Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
*/
public val viewId: Output
get() = javaResource.viewId().applyValue({ args0 -> args0 })
}
public object BillingAccountBucketViewMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.googlenative.logging.v2.BillingAccountBucketView::class == javaResource::class
override fun map(javaResource: Resource): BillingAccountBucketView =
BillingAccountBucketView(
javaResource as
com.pulumi.googlenative.logging.v2.BillingAccountBucketView,
)
}
/**
* @see [BillingAccountBucketView].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [BillingAccountBucketView].
*/
public suspend fun billingAccountBucketView(
name: String,
block: suspend BillingAccountBucketViewResourceBuilder.() -> Unit,
): BillingAccountBucketView {
val builder = BillingAccountBucketViewResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [BillingAccountBucketView].
* @param name The _unique_ name of the resulting resource.
*/
public fun billingAccountBucketView(name: String): BillingAccountBucketView {
val builder = BillingAccountBucketViewResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy