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

com.pulumi.aws.auditmanager.kotlin.inputs.AssessmentRoleArgs.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.AssessmentRoleArgs.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.jvm.JvmName

/**
 *
 * @property roleArn Amazon Resource Name (ARN) of the IAM role.
 * @property roleType Type of customer persona. For assessment creation, type must always be `PROCESS_OWNER`.
 */
public data class AssessmentRoleArgs(
    public val roleArn: Output,
    public val roleType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.auditmanager.inputs.AssessmentRoleArgs =
        com.pulumi.aws.auditmanager.inputs.AssessmentRoleArgs.builder()
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .roleType(roleType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AssessmentRoleArgs].
 */
@PulumiTagMarker
public class AssessmentRoleArgsBuilder internal constructor() {
    private var roleArn: Output? = null

    private var roleType: Output? = null

    /**
     * @param value Amazon Resource Name (ARN) of the IAM role.
     */
    @JvmName("hgqvxbtnxvcndapc")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value Type of customer persona. For assessment creation, type must always be `PROCESS_OWNER`.
     */
    @JvmName("sdvyfrnshrhgaopf")
    public suspend fun roleType(`value`: Output) {
        this.roleType = value
    }

    /**
     * @param value Amazon Resource Name (ARN) of the IAM role.
     */
    @JvmName("pqtldioqeqnxlhxq")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value Type of customer persona. For assessment creation, type must always be `PROCESS_OWNER`.
     */
    @JvmName("inwltptjschtkfqo")
    public suspend fun roleType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleType = mapped
    }

    internal fun build(): AssessmentRoleArgs = AssessmentRoleArgs(
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        roleType = roleType ?: throw PulumiNullFieldException("roleType"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy