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

com.pulumi.aws.auditmanager.kotlin.inputs.AssessmentScopeArgs.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.auditmanager.kotlin.inputs

import com.pulumi.aws.auditmanager.inputs.AssessmentScopeArgs.builder
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

/**
 *
 * @property awsAccounts Amazon Web Services accounts that are in scope for the assessment. See `aws_accounts` below.
 * @property awsServices Amazon Web Services services that are included in the scope of the assessment. See `aws_services` below.
 */
public data class AssessmentScopeArgs(
    public val awsAccounts: Output>? = null,
    public val awsServices: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.auditmanager.inputs.AssessmentScopeArgs =
        com.pulumi.aws.auditmanager.inputs.AssessmentScopeArgs.builder()
            .awsAccounts(
                awsAccounts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .awsServices(
                awsServices?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AssessmentScopeArgs].
 */
@PulumiTagMarker
public class AssessmentScopeArgsBuilder internal constructor() {
    private var awsAccounts: Output>? = null

    private var awsServices: Output>? = null

    /**
     * @param value Amazon Web Services accounts that are in scope for the assessment. See `aws_accounts` below.
     */
    @JvmName("xlbdxpacnpfqwjcg")
    public suspend fun awsAccounts(`value`: Output>) {
        this.awsAccounts = value
    }

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

    /**
     * @param values Amazon Web Services accounts that are in scope for the assessment. See `aws_accounts` below.
     */
    @JvmName("ofusdiioygkidryp")
    public suspend fun awsAccounts(values: List>) {
        this.awsAccounts = Output.all(values)
    }

    /**
     * @param value Amazon Web Services services that are included in the scope of the assessment. See `aws_services` below.
     */
    @JvmName("rpthkomkdvvunmdd")
    public suspend fun awsServices(`value`: Output>) {
        this.awsServices = value
    }

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

    /**
     * @param values Amazon Web Services services that are included in the scope of the assessment. See `aws_services` below.
     */
    @JvmName("rkslxgtvtjyfqjlh")
    public suspend fun awsServices(values: List>) {
        this.awsServices = Output.all(values)
    }

    /**
     * @param value Amazon Web Services accounts that are in scope for the assessment. See `aws_accounts` below.
     */
    @JvmName("rbohkliqetvcporh")
    public suspend fun awsAccounts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsAccounts = mapped
    }

    /**
     * @param argument Amazon Web Services accounts that are in scope for the assessment. See `aws_accounts` below.
     */
    @JvmName("lecjocdpovdmpmbs")
    public suspend fun awsAccounts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AssessmentScopeAwsAccountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.awsAccounts = mapped
    }

    /**
     * @param argument Amazon Web Services accounts that are in scope for the assessment. See `aws_accounts` below.
     */
    @JvmName("dfopmkjryolekmym")
    public suspend fun awsAccounts(vararg argument: suspend AssessmentScopeAwsAccountArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AssessmentScopeAwsAccountArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.awsAccounts = mapped
    }

    /**
     * @param argument Amazon Web Services accounts that are in scope for the assessment. See `aws_accounts` below.
     */
    @JvmName("vuchdurrltrdpsvw")
    public suspend fun awsAccounts(argument: suspend AssessmentScopeAwsAccountArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AssessmentScopeAwsAccountArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.awsAccounts = mapped
    }

    /**
     * @param values Amazon Web Services accounts that are in scope for the assessment. See `aws_accounts` below.
     */
    @JvmName("lhvaxcndlxfkujnu")
    public suspend fun awsAccounts(vararg values: AssessmentScopeAwsAccountArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.awsAccounts = mapped
    }

    /**
     * @param value Amazon Web Services services that are included in the scope of the assessment. See `aws_services` below.
     */
    @JvmName("ooukuucrdgcnnqsq")
    public suspend fun awsServices(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsServices = mapped
    }

    /**
     * @param argument Amazon Web Services services that are included in the scope of the assessment. See `aws_services` below.
     */
    @JvmName("xxrysisdxdrxcvdl")
    public suspend fun awsServices(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AssessmentScopeAwsServiceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.awsServices = mapped
    }

    /**
     * @param argument Amazon Web Services services that are included in the scope of the assessment. See `aws_services` below.
     */
    @JvmName("cwerrrqovqftoqhk")
    public suspend fun awsServices(vararg argument: suspend AssessmentScopeAwsServiceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AssessmentScopeAwsServiceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.awsServices = mapped
    }

    /**
     * @param argument Amazon Web Services services that are included in the scope of the assessment. See `aws_services` below.
     */
    @JvmName("snmlswgiedrhitvb")
    public suspend fun awsServices(argument: suspend AssessmentScopeAwsServiceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AssessmentScopeAwsServiceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.awsServices = mapped
    }

    /**
     * @param values Amazon Web Services services that are included in the scope of the assessment. See `aws_services` below.
     */
    @JvmName("celqrknwdylrdrwl")
    public suspend fun awsServices(vararg values: AssessmentScopeAwsServiceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.awsServices = mapped
    }

    internal fun build(): AssessmentScopeArgs = AssessmentScopeArgs(
        awsAccounts = awsAccounts,
        awsServices = awsServices,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy