
com.pulumi.googlenative.logging.v2.kotlin.OrganizationBucketView.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@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 [OrganizationBucketView].
*/
@PulumiTagMarker
public class OrganizationBucketViewResourceBuilder internal constructor() {
public var name: String? = null
public var args: OrganizationBucketViewArgs = OrganizationBucketViewArgs()
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 OrganizationBucketViewArgsBuilder.() -> Unit) {
val builder = OrganizationBucketViewArgsBuilder()
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(): OrganizationBucketView {
val builtJavaResource =
com.pulumi.googlenative.logging.v2.OrganizationBucketView(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return OrganizationBucketView(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 OrganizationBucketView internal constructor(
override val javaResource: com.pulumi.googlenative.logging.v2.OrganizationBucketView,
) : KotlinCustomResource(javaResource, OrganizationBucketViewMapper) {
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 })
public val organizationId: Output
get() = javaResource.organizationId().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 OrganizationBucketViewMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.googlenative.logging.v2.OrganizationBucketView::class == javaResource::class
override fun map(javaResource: Resource): OrganizationBucketView =
OrganizationBucketView(
javaResource as
com.pulumi.googlenative.logging.v2.OrganizationBucketView,
)
}
/**
* @see [OrganizationBucketView].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [OrganizationBucketView].
*/
public suspend fun organizationBucketView(
name: String,
block: suspend OrganizationBucketViewResourceBuilder.() -> Unit,
): OrganizationBucketView {
val builder = OrganizationBucketViewResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [OrganizationBucketView].
* @param name The _unique_ name of the resulting resource.
*/
public fun organizationBucketView(name: String): OrganizationBucketView {
val builder = OrganizationBucketViewResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy