All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.s3.kotlin.inputs.BucketAnalyticsConfigurationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.s3.kotlin.inputs

import com.pulumi.awsnative.s3.inputs.BucketAnalyticsConfigurationArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
 * @property id The ID that identifies the analytics configuration.
 * @property prefix The prefix that an object must have to be included in the analytics results.
 * @property storageClassAnalysis Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes.
 * @property tagFilters The tags to use when evaluating an analytics filter.
 *  The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.
 */
public data class BucketAnalyticsConfigurationArgs(
    public val id: Output,
    public val prefix: Output? = null,
    public val storageClassAnalysis: Output,
    public val tagFilters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3.inputs.BucketAnalyticsConfigurationArgs =
        com.pulumi.awsnative.s3.inputs.BucketAnalyticsConfigurationArgs.builder()
            .id(id.applyValue({ args0 -> args0 }))
            .prefix(prefix?.applyValue({ args0 -> args0 }))
            .storageClassAnalysis(
                storageClassAnalysis.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tagFilters(
                tagFilters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [BucketAnalyticsConfigurationArgs].
 */
@PulumiTagMarker
public class BucketAnalyticsConfigurationArgsBuilder internal constructor() {
    private var id: Output? = null

    private var prefix: Output? = null

    private var storageClassAnalysis: Output? = null

    private var tagFilters: Output>? = null

    /**
     * @param value The ID that identifies the analytics configuration.
     */
    @JvmName("rhwldsagoxwoxfrk")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The prefix that an object must have to be included in the analytics results.
     */
    @JvmName("vxyamehsfhgiillg")
    public suspend fun prefix(`value`: Output) {
        this.prefix = value
    }

    /**
     * @param value Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes.
     */
    @JvmName("yrxlqxpmcqngqefc")
    public suspend fun storageClassAnalysis(`value`: Output) {
        this.storageClassAnalysis = value
    }

    /**
     * @param value The tags to use when evaluating an analytics filter.
     *  The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.
     */
    @JvmName("lflbfwpuecbejhoc")
    public suspend fun tagFilters(`value`: Output>) {
        this.tagFilters = value
    }

    @JvmName("vvyubwkjvfsvekwd")
    public suspend fun tagFilters(vararg values: Output) {
        this.tagFilters = Output.all(values.asList())
    }

    /**
     * @param values The tags to use when evaluating an analytics filter.
     *  The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.
     */
    @JvmName("obearjdrdcgbflrt")
    public suspend fun tagFilters(values: List>) {
        this.tagFilters = Output.all(values)
    }

    /**
     * @param value The ID that identifies the analytics configuration.
     */
    @JvmName("gcmkbfnvbjjkhtno")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The prefix that an object must have to be included in the analytics results.
     */
    @JvmName("ywqetjkmtdjmddgw")
    public suspend fun prefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.prefix = mapped
    }

    /**
     * @param value Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes.
     */
    @JvmName("plylqrsxquaowxmh")
    public suspend fun storageClassAnalysis(`value`: BucketStorageClassAnalysisArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storageClassAnalysis = mapped
    }

    /**
     * @param argument Contains data related to access patterns to be collected and made available to analyze the tradeoffs between different storage classes.
     */
    @JvmName("ejegcnikjxgerqtg")
    public suspend fun storageClassAnalysis(argument: suspend BucketStorageClassAnalysisArgsBuilder.() -> Unit) {
        val toBeMapped = BucketStorageClassAnalysisArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.storageClassAnalysis = mapped
    }

    /**
     * @param value The tags to use when evaluating an analytics filter.
     *  The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.
     */
    @JvmName("syykxyedwimstpjh")
    public suspend fun tagFilters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagFilters = mapped
    }

    /**
     * @param argument The tags to use when evaluating an analytics filter.
     *  The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.
     */
    @JvmName("gfecswmbspndckur")
    public suspend fun tagFilters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BucketTagFilterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tagFilters = mapped
    }

    /**
     * @param argument The tags to use when evaluating an analytics filter.
     *  The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.
     */
    @JvmName("uxrnvjmsxgxqvdlu")
    public suspend fun tagFilters(vararg argument: suspend BucketTagFilterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BucketTagFilterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tagFilters = mapped
    }

    /**
     * @param argument The tags to use when evaluating an analytics filter.
     *  The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.
     */
    @JvmName("vtxplmbxdsdtniue")
    public suspend fun tagFilters(argument: suspend BucketTagFilterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(BucketTagFilterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tagFilters = mapped
    }

    /**
     * @param values The tags to use when evaluating an analytics filter.
     *  The analytics only includes objects that meet the filter's criteria. If no filter is specified, all of the contents of the bucket are included in the analysis.
     */
    @JvmName("tpnnyaxknkgqvgil")
    public suspend fun tagFilters(vararg values: BucketTagFilterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tagFilters = mapped
    }

    internal fun build(): BucketAnalyticsConfigurationArgs = BucketAnalyticsConfigurationArgs(
        id = id ?: throw PulumiNullFieldException("id"),
        prefix = prefix,
        storageClassAnalysis = storageClassAnalysis ?: throw
            PulumiNullFieldException("storageClassAnalysis"),
        tagFilters = tagFilters,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy