
com.pulumi.awsnative.s3.kotlin.inputs.StorageLensPrefixLevelArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.s3.kotlin.inputs
import com.pulumi.awsnative.s3.inputs.StorageLensPrefixLevelArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Prefix-level metrics configurations.
* @property storageMetrics A property for the prefix-level storage metrics for Amazon S3 Storage Lens.
*/
public data class StorageLensPrefixLevelArgs(
public val storageMetrics: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.s3.inputs.StorageLensPrefixLevelArgs =
com.pulumi.awsnative.s3.inputs.StorageLensPrefixLevelArgs.builder()
.storageMetrics(
storageMetrics.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [StorageLensPrefixLevelArgs].
*/
@PulumiTagMarker
public class StorageLensPrefixLevelArgsBuilder internal constructor() {
private var storageMetrics: Output? = null
/**
* @param value A property for the prefix-level storage metrics for Amazon S3 Storage Lens.
*/
@JvmName("oethkwrppwyfoqck")
public suspend fun storageMetrics(`value`: Output) {
this.storageMetrics = value
}
/**
* @param value A property for the prefix-level storage metrics for Amazon S3 Storage Lens.
*/
@JvmName("ekdbbccglrbnecpw")
public suspend fun storageMetrics(`value`: StorageLensPrefixLevelStorageMetricsArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.storageMetrics = mapped
}
/**
* @param argument A property for the prefix-level storage metrics for Amazon S3 Storage Lens.
*/
@JvmName("ecgyrdexuogktfwh")
public suspend fun storageMetrics(argument: suspend StorageLensPrefixLevelStorageMetricsArgsBuilder.() -> Unit) {
val toBeMapped = StorageLensPrefixLevelStorageMetricsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.storageMetrics = mapped
}
internal fun build(): StorageLensPrefixLevelArgs = StorageLensPrefixLevelArgs(
storageMetrics = storageMetrics ?: throw PulumiNullFieldException("storageMetrics"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy