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

com.pulumi.awsnative.s3.kotlin.StorageLensGroupArgs.kt Maven / Gradle / Ivy

@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.StorageLensGroupArgs.builder
import com.pulumi.awsnative.s3.kotlin.inputs.StorageLensGroupFilterArgs
import com.pulumi.awsnative.s3.kotlin.inputs.StorageLensGroupFilterArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

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

/**
 * Builder for [StorageLensGroupArgs].
 */
@PulumiTagMarker
public class StorageLensGroupArgsBuilder internal constructor() {
    private var filter: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value This property contains the criteria for the Storage Lens group data that is displayed
     */
    @JvmName("ldwjqxiddjesxhlw")
    public suspend fun filter(`value`: Output) {
        this.filter = value
    }

    /**
     * @param value This property contains the Storage Lens group name.
     */
    @JvmName("bxvdlatwwoaoqktb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    @JvmName("ubfspvliflakmlhl")
    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 Group.
     */
    @JvmName("xjgrheynnbpjuikm")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value This property contains the criteria for the Storage Lens group data that is displayed
     */
    @JvmName("rjbcopvhleidlkon")
    public suspend fun filter(`value`: StorageLensGroupFilterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param argument This property contains the criteria for the Storage Lens group data that is displayed
     */
    @JvmName("wsveeksxvhurfwbx")
    public suspend fun filter(argument: suspend StorageLensGroupFilterArgsBuilder.() -> Unit) {
        val toBeMapped = StorageLensGroupFilterArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param value This property contains the Storage Lens group name.
     */
    @JvmName("oylqsbrsdhpuegfd")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A set of tags (key-value pairs) for this Amazon S3 Storage Lens Group.
     */
    @JvmName("swijieutarmelktt")
    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 Group.
     */
    @JvmName("uhyhyhmfvmrdfstp")
    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 Group.
     */
    @JvmName("jinysaxmyqyjpusr")
    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 Group.
     */
    @JvmName("lglljheqlwehauju")
    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 Group.
     */
    @JvmName("hheqcemcbuofgdcr")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): StorageLensGroupArgs = StorageLensGroupArgs(
        filter = filter,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy