com.pulumi.awsnative.s3.kotlin.inputs.StorageLensBucketLevelArgs.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.StorageLensBucketLevelArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Bucket-level metrics configurations.
* @property activityMetrics A property for bucket-level activity metrics for S3 Storage Lens.
* @property advancedCostOptimizationMetrics A property for bucket-level advanced cost optimization metrics for S3 Storage Lens.
* @property advancedDataProtectionMetrics A property for bucket-level advanced data protection metrics for S3 Storage Lens.
* @property detailedStatusCodesMetrics A property for bucket-level detailed status code metrics for S3 Storage Lens.
* @property prefixLevel A property for bucket-level prefix-level storage metrics for S3 Storage Lens.
*/
public data class StorageLensBucketLevelArgs(
public val activityMetrics: Output? = null,
public val advancedCostOptimizationMetrics: Output? = null,
public val advancedDataProtectionMetrics: Output? =
null,
public val detailedStatusCodesMetrics: Output? = null,
public val prefixLevel: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.s3.inputs.StorageLensBucketLevelArgs =
com.pulumi.awsnative.s3.inputs.StorageLensBucketLevelArgs.builder()
.activityMetrics(activityMetrics?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.advancedCostOptimizationMetrics(
advancedCostOptimizationMetrics?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.advancedDataProtectionMetrics(
advancedDataProtectionMetrics?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.detailedStatusCodesMetrics(
detailedStatusCodesMetrics?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.prefixLevel(prefixLevel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [StorageLensBucketLevelArgs].
*/
@PulumiTagMarker
public class StorageLensBucketLevelArgsBuilder internal constructor() {
private var activityMetrics: Output? = null
private var advancedCostOptimizationMetrics:
Output? = null
private var advancedDataProtectionMetrics: Output? =
null
private var detailedStatusCodesMetrics: Output? = null
private var prefixLevel: Output? = null
/**
* @param value A property for bucket-level activity metrics for S3 Storage Lens.
*/
@JvmName("unioocycgbfrsywf")
public suspend fun activityMetrics(`value`: Output) {
this.activityMetrics = value
}
/**
* @param value A property for bucket-level advanced cost optimization metrics for S3 Storage Lens.
*/
@JvmName("yjqcvkpvnetjsgka")
public suspend fun advancedCostOptimizationMetrics(`value`: Output) {
this.advancedCostOptimizationMetrics = value
}
/**
* @param value A property for bucket-level advanced data protection metrics for S3 Storage Lens.
*/
@JvmName("ehqdajsyjrqhxsom")
public suspend fun advancedDataProtectionMetrics(`value`: Output) {
this.advancedDataProtectionMetrics = value
}
/**
* @param value A property for bucket-level detailed status code metrics for S3 Storage Lens.
*/
@JvmName("ffpfgjwrjkjnknws")
public suspend fun detailedStatusCodesMetrics(`value`: Output) {
this.detailedStatusCodesMetrics = value
}
/**
* @param value A property for bucket-level prefix-level storage metrics for S3 Storage Lens.
*/
@JvmName("ldxahxghikhnaenq")
public suspend fun prefixLevel(`value`: Output) {
this.prefixLevel = value
}
/**
* @param value A property for bucket-level activity metrics for S3 Storage Lens.
*/
@JvmName("csuudupldrovpyqy")
public suspend fun activityMetrics(`value`: StorageLensActivityMetricsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.activityMetrics = mapped
}
/**
* @param argument A property for bucket-level activity metrics for S3 Storage Lens.
*/
@JvmName("hgvgdptykktvlrep")
public suspend fun activityMetrics(argument: suspend StorageLensActivityMetricsArgsBuilder.() -> Unit) {
val toBeMapped = StorageLensActivityMetricsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.activityMetrics = mapped
}
/**
* @param value A property for bucket-level advanced cost optimization metrics for S3 Storage Lens.
*/
@JvmName("kcgyfeksvqeyclrx")
public suspend fun advancedCostOptimizationMetrics(`value`: StorageLensAdvancedCostOptimizationMetricsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.advancedCostOptimizationMetrics = mapped
}
/**
* @param argument A property for bucket-level advanced cost optimization metrics for S3 Storage Lens.
*/
@JvmName("obobkkucrxpwcprc")
public suspend fun advancedCostOptimizationMetrics(argument: suspend StorageLensAdvancedCostOptimizationMetricsArgsBuilder.() -> Unit) {
val toBeMapped = StorageLensAdvancedCostOptimizationMetricsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.advancedCostOptimizationMetrics = mapped
}
/**
* @param value A property for bucket-level advanced data protection metrics for S3 Storage Lens.
*/
@JvmName("xrsbwdcsborsarnw")
public suspend fun advancedDataProtectionMetrics(`value`: StorageLensAdvancedDataProtectionMetricsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.advancedDataProtectionMetrics = mapped
}
/**
* @param argument A property for bucket-level advanced data protection metrics for S3 Storage Lens.
*/
@JvmName("bsqocelbenvjuxte")
public suspend fun advancedDataProtectionMetrics(argument: suspend StorageLensAdvancedDataProtectionMetricsArgsBuilder.() -> Unit) {
val toBeMapped = StorageLensAdvancedDataProtectionMetricsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.advancedDataProtectionMetrics = mapped
}
/**
* @param value A property for bucket-level detailed status code metrics for S3 Storage Lens.
*/
@JvmName("xbndkoquevudavis")
public suspend fun detailedStatusCodesMetrics(`value`: StorageLensDetailedStatusCodesMetricsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.detailedStatusCodesMetrics = mapped
}
/**
* @param argument A property for bucket-level detailed status code metrics for S3 Storage Lens.
*/
@JvmName("ycapulunguinmmoj")
public suspend fun detailedStatusCodesMetrics(argument: suspend StorageLensDetailedStatusCodesMetricsArgsBuilder.() -> Unit) {
val toBeMapped = StorageLensDetailedStatusCodesMetricsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.detailedStatusCodesMetrics = mapped
}
/**
* @param value A property for bucket-level prefix-level storage metrics for S3 Storage Lens.
*/
@JvmName("irjvsyvmwtetolvj")
public suspend fun prefixLevel(`value`: StorageLensPrefixLevelArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.prefixLevel = mapped
}
/**
* @param argument A property for bucket-level prefix-level storage metrics for S3 Storage Lens.
*/
@JvmName("obiojdxtvsadvaey")
public suspend fun prefixLevel(argument: suspend StorageLensPrefixLevelArgsBuilder.() -> Unit) {
val toBeMapped = StorageLensPrefixLevelArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.prefixLevel = mapped
}
internal fun build(): StorageLensBucketLevelArgs = StorageLensBucketLevelArgs(
activityMetrics = activityMetrics,
advancedCostOptimizationMetrics = advancedCostOptimizationMetrics,
advancedDataProtectionMetrics = advancedDataProtectionMetrics,
detailedStatusCodesMetrics = detailedStatusCodesMetrics,
prefixLevel = prefixLevel,
)
}