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

com.pulumi.aws.guardduty.kotlin.inputs.MalwareProtectionPlanProtectedResourceS3BucketArgs.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.guardduty.kotlin.inputs

import com.pulumi.aws.guardduty.inputs.MalwareProtectionPlanProtectedResourceS3BucketArgs.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 bucketName Name of the S3 bucket.
 * @property objectPrefixes The list of object prefixes that specify the S3 objects that will be scanned.
 */
public data class MalwareProtectionPlanProtectedResourceS3BucketArgs(
    public val bucketName: Output,
    public val objectPrefixes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.guardduty.inputs.MalwareProtectionPlanProtectedResourceS3BucketArgs =
        com.pulumi.aws.guardduty.inputs.MalwareProtectionPlanProtectedResourceS3BucketArgs.builder()
            .bucketName(bucketName.applyValue({ args0 -> args0 }))
            .objectPrefixes(objectPrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [MalwareProtectionPlanProtectedResourceS3BucketArgs].
 */
@PulumiTagMarker
public class MalwareProtectionPlanProtectedResourceS3BucketArgsBuilder internal constructor() {
    private var bucketName: Output? = null

    private var objectPrefixes: Output>? = null

    /**
     * @param value Name of the S3 bucket.
     */
    @JvmName("nbpctdtudtkcrhdq")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value The list of object prefixes that specify the S3 objects that will be scanned.
     */
    @JvmName("jcjqmqiogsuelumw")
    public suspend fun objectPrefixes(`value`: Output>) {
        this.objectPrefixes = value
    }

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

    /**
     * @param values The list of object prefixes that specify the S3 objects that will be scanned.
     */
    @JvmName("xwqivjlwpqoiygwo")
    public suspend fun objectPrefixes(values: List>) {
        this.objectPrefixes = Output.all(values)
    }

    /**
     * @param value Name of the S3 bucket.
     */
    @JvmName("vapmdwastakmhret")
    public suspend fun bucketName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value The list of object prefixes that specify the S3 objects that will be scanned.
     */
    @JvmName("ypghboryyrxflcqe")
    public suspend fun objectPrefixes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectPrefixes = mapped
    }

    /**
     * @param values The list of object prefixes that specify the S3 objects that will be scanned.
     */
    @JvmName("gxlpmfbmnqcbtmpq")
    public suspend fun objectPrefixes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.objectPrefixes = mapped
    }

    internal fun build(): MalwareProtectionPlanProtectedResourceS3BucketArgs =
        MalwareProtectionPlanProtectedResourceS3BucketArgs(
            bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
            objectPrefixes = objectPrefixes,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy