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

com.pulumi.aws.macie2.kotlin.inputs.ClassificationJobS3JobDefinitionBucketDefinitionArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.macie2.kotlin.inputs

import com.pulumi.aws.macie2.inputs.ClassificationJobS3JobDefinitionBucketDefinitionArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property accountId The unique identifier for the AWS account that owns the buckets.
 * @property buckets An array that lists the names of the buckets.
 */
public data class ClassificationJobS3JobDefinitionBucketDefinitionArgs(
    public val accountId: Output,
    public val buckets: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.macie2.inputs.ClassificationJobS3JobDefinitionBucketDefinitionArgs =
        com.pulumi.aws.macie2.inputs.ClassificationJobS3JobDefinitionBucketDefinitionArgs.builder()
            .accountId(accountId.applyValue({ args0 -> args0 }))
            .buckets(buckets.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ClassificationJobS3JobDefinitionBucketDefinitionArgs].
 */
@PulumiTagMarker
public class ClassificationJobS3JobDefinitionBucketDefinitionArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var buckets: Output>? = null

    /**
     * @param value The unique identifier for the AWS account that owns the buckets.
     */
    @JvmName("jwknxwyikhnlcplg")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value An array that lists the names of the buckets.
     */
    @JvmName("ttavioqxteoigyhj")
    public suspend fun buckets(`value`: Output>) {
        this.buckets = value
    }

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

    /**
     * @param values An array that lists the names of the buckets.
     */
    @JvmName("aaixxjsaradcevyq")
    public suspend fun buckets(values: List>) {
        this.buckets = Output.all(values)
    }

    /**
     * @param value The unique identifier for the AWS account that owns the buckets.
     */
    @JvmName("ddlshemarvakrqgo")
    public suspend fun accountId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value An array that lists the names of the buckets.
     */
    @JvmName("hcanikpsjxwltaqs")
    public suspend fun buckets(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.buckets = mapped
    }

    /**
     * @param values An array that lists the names of the buckets.
     */
    @JvmName("nhebtpvrokhqtdbd")
    public suspend fun buckets(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.buckets = mapped
    }

    internal fun build(): ClassificationJobS3JobDefinitionBucketDefinitionArgs =
        ClassificationJobS3JobDefinitionBucketDefinitionArgs(
            accountId = accountId ?: throw PulumiNullFieldException("accountId"),
            buckets = buckets ?: throw PulumiNullFieldException("buckets"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy