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

com.pulumi.awsnative.s3.kotlin.StorageLensArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.s3.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.s3.StorageLensArgs.builder
import com.pulumi.awsnative.s3.kotlin.inputs.StorageLensConfigurationArgs
import com.pulumi.awsnative.s3.kotlin.inputs.StorageLensConfigurationArgsBuilder
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.collections.List
import kotlin.jvm.JvmName

/**
 * The AWS::S3::StorageLens resource is an Amazon S3 resource type that you can use to create Storage Lens configurations.
 * @property storageLensConfiguration This resource contains the details Amazon S3 Storage Lens configuration.
 * @property tags A set of tags (key-value pairs) for this Amazon S3 Storage Lens configuration.
 */
public data class StorageLensArgs(
    public val storageLensConfiguration: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.s3.StorageLensArgs =
        com.pulumi.awsnative.s3.StorageLensArgs.builder()
            .storageLensConfiguration(
                storageLensConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [StorageLensArgs].
 */
@PulumiTagMarker
public class StorageLensArgsBuilder internal constructor() {
    private var storageLensConfiguration: Output? = null

    private var tags: Output>? = null

    /**
     * @param value This resource contains the details Amazon S3 Storage Lens configuration.
     */
    @JvmName("xggxfcmooxkcidrw")
    public suspend fun storageLensConfiguration(`value`: Output) {
        this.storageLensConfiguration = value
    }

    /**
     * @param value A set of tags (key-value pairs) for this Amazon S3 Storage Lens configuration.
     */
    @JvmName("vtndfxrhalgybflf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A set of tags (key-value pairs) for this Amazon S3 Storage Lens configuration.
     */
    @JvmName("mcqseljyvffahrlx")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value This resource contains the details Amazon S3 Storage Lens configuration.
     */
    @JvmName("ivayjprqhtwbylge")
    public suspend fun storageLensConfiguration(`value`: StorageLensConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageLensConfiguration = mapped
    }

    /**
     * @param argument This resource contains the details Amazon S3 Storage Lens configuration.
     */
    @JvmName("bqqsjhbhyimfmtud")
    public suspend fun storageLensConfiguration(argument: suspend StorageLensConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = StorageLensConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.storageLensConfiguration = mapped
    }

    /**
     * @param value A set of tags (key-value pairs) for this Amazon S3 Storage Lens configuration.
     */
    @JvmName("navpwekpcwlagpnc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A set of tags (key-value pairs) for this Amazon S3 Storage Lens configuration.
     */
    @JvmName("lkrrlfulktprwxgj")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A set of tags (key-value pairs) for this Amazon S3 Storage Lens configuration.
     */
    @JvmName("xdmvscpukxwdrkti")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A set of tags (key-value pairs) for this Amazon S3 Storage Lens configuration.
     */
    @JvmName("sfvoqyuuxaqdbmrj")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A set of tags (key-value pairs) for this Amazon S3 Storage Lens configuration.
     */
    @JvmName("ybgdikysxgwioggv")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): StorageLensArgs = StorageLensArgs(
        storageLensConfiguration = storageLensConfiguration,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy