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

com.pulumi.awsnative.guardduty.kotlin.MalwareProtectionPlanArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.guardduty.kotlin

import com.pulumi.awsnative.guardduty.MalwareProtectionPlanArgs.builder
import com.pulumi.awsnative.guardduty.kotlin.inputs.MalwareProtectionPlanCfnActionsArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.MalwareProtectionPlanCfnActionsArgsBuilder
import com.pulumi.awsnative.guardduty.kotlin.inputs.MalwareProtectionPlanCfnProtectedResourceArgs
import com.pulumi.awsnative.guardduty.kotlin.inputs.MalwareProtectionPlanCfnProtectedResourceArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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

/**
 * Resource Type definition for AWS::GuardDuty::MalwareProtectionPlan
 * @property actions Specifies the action that is to be applied to the Malware Protection plan resource.
 * @property protectedResource Information about the protected resource. Presently, S3Bucket is the only supported protected resource.
 * @property role IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource.
 * @property tags The tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.
 */
public data class MalwareProtectionPlanArgs(
    public val actions: Output? = null,
    public val protectedResource: Output? = null,
    public val role: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.guardduty.MalwareProtectionPlanArgs =
        com.pulumi.awsnative.guardduty.MalwareProtectionPlanArgs.builder()
            .actions(actions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .protectedResource(protectedResource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .role(role?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [MalwareProtectionPlanArgs].
 */
@PulumiTagMarker
public class MalwareProtectionPlanArgsBuilder internal constructor() {
    private var actions: Output? = null

    private var protectedResource: Output? = null

    private var role: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies the action that is to be applied to the Malware Protection plan resource.
     */
    @JvmName("rcpenwjkoqfscney")
    public suspend fun actions(`value`: Output) {
        this.actions = value
    }

    /**
     * @param value Information about the protected resource. Presently, S3Bucket is the only supported protected resource.
     */
    @JvmName("ppfnfaamoyrjpdom")
    public suspend fun protectedResource(`value`: Output) {
        this.protectedResource = value
    }

    /**
     * @param value IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource.
     */
    @JvmName("lhvvnxbdwqchbtmb")
    public suspend fun role(`value`: Output) {
        this.role = value
    }

    /**
     * @param value The tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.
     */
    @JvmName("kwbrbbqaahkukqji")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.
     */
    @JvmName("bgshtqfdpxmxqmlv")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Specifies the action that is to be applied to the Malware Protection plan resource.
     */
    @JvmName("dhvhmjjtmvuxarfh")
    public suspend fun actions(`value`: MalwareProtectionPlanCfnActionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param argument Specifies the action that is to be applied to the Malware Protection plan resource.
     */
    @JvmName("pocdogwmdcboepnr")
    public suspend fun actions(argument: suspend MalwareProtectionPlanCfnActionsArgsBuilder.() -> Unit) {
        val toBeMapped = MalwareProtectionPlanCfnActionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.actions = mapped
    }

    /**
     * @param value Information about the protected resource. Presently, S3Bucket is the only supported protected resource.
     */
    @JvmName("xhwohstlvuyxpnvs")
    public suspend fun protectedResource(`value`: MalwareProtectionPlanCfnProtectedResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protectedResource = mapped
    }

    /**
     * @param argument Information about the protected resource. Presently, S3Bucket is the only supported protected resource.
     */
    @JvmName("eqcthbrpwwatbghj")
    public suspend fun protectedResource(argument: suspend MalwareProtectionPlanCfnProtectedResourceArgsBuilder.() -> Unit) {
        val toBeMapped = MalwareProtectionPlanCfnProtectedResourceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.protectedResource = mapped
    }

    /**
     * @param value IAM role that includes the permissions required to scan and (optionally) add tags to the associated protected resource.
     */
    @JvmName("wdqbhxmconxsbeim")
    public suspend fun role(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.role = mapped
    }

    /**
     * @param value The tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.
     */
    @JvmName("ugpdpopoxtoywkri")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.
     */
    @JvmName("ncxmfihxhwyfioyb")
    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 The tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.
     */
    @JvmName("vmxnrrkquujqeclj")
    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 The tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.
     */
    @JvmName("sahgjyjvkqwhixdb")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags to be added to the created Malware Protection plan resource. Each tag consists of a key and an optional value, both of which you need to specify.
     */
    @JvmName("chtkxqbflbutefjx")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): MalwareProtectionPlanArgs = MalwareProtectionPlanArgs(
        actions = actions,
        protectedResource = protectedResource,
        role = role,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy