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

com.pulumi.awsnative.s3.kotlin.outputs.BucketAnalyticsConfiguration.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.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * 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 BucketAnalyticsConfiguration(
    public val id: String,
    public val prefix: String? = null,
    public val storageClassAnalysis: BucketStorageClassAnalysis,
    public val tagFilters: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.s3.outputs.BucketAnalyticsConfiguration): BucketAnalyticsConfiguration = BucketAnalyticsConfiguration(
            id = javaType.id(),
            prefix = javaType.prefix().map({ args0 -> args0 }).orElse(null),
            storageClassAnalysis = javaType.storageClassAnalysis().let({ args0 ->
                com.pulumi.awsnative.s3.kotlin.outputs.BucketStorageClassAnalysis.Companion.toKotlin(args0)
            }),
            tagFilters = javaType.tagFilters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.s3.kotlin.outputs.BucketTagFilter.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy