com.pulumi.awsnative.auditmanager.kotlin.inputs.AssessmentRoleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.auditmanager.kotlin.inputs
import com.pulumi.awsnative.auditmanager.inputs.AssessmentRoleArgs.builder
import com.pulumi.awsnative.auditmanager.kotlin.enums.AssessmentRoleType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The wrapper that contains AWS Audit Manager role information, such as the role type and IAM ARN.
* @property roleArn The Amazon Resource Name (ARN) of the IAM role.
* @property roleType The type of customer persona.
* > In `CreateAssessment` , `roleType` can only be `PROCESS_OWNER` .
* >
* > In `UpdateSettings` , `roleType` can only be `PROCESS_OWNER` .
* >
* > In `BatchCreateDelegationByAssessment` , `roleType` can only be `RESOURCE_OWNER` .
*/
public data class AssessmentRoleArgs(
public val roleArn: Output? = null,
public val roleType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.auditmanager.inputs.AssessmentRoleArgs =
com.pulumi.awsnative.auditmanager.inputs.AssessmentRoleArgs.builder()
.roleArn(roleArn?.applyValue({ args0 -> args0 }))
.roleType(roleType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AssessmentRoleArgs].
*/
@PulumiTagMarker
public class AssessmentRoleArgsBuilder internal constructor() {
private var roleArn: Output? = null
private var roleType: Output? = null
/**
* @param value The Amazon Resource Name (ARN) of the IAM role.
*/
@JvmName("tofrdpyrlgtoplpy")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value The type of customer persona.
* > In `CreateAssessment` , `roleType` can only be `PROCESS_OWNER` .
* >
* > In `UpdateSettings` , `roleType` can only be `PROCESS_OWNER` .
* >
* > In `BatchCreateDelegationByAssessment` , `roleType` can only be `RESOURCE_OWNER` .
*/
@JvmName("sjmogiwneuydfslf")
public suspend fun roleType(`value`: Output) {
this.roleType = value
}
/**
* @param value The Amazon Resource Name (ARN) of the IAM role.
*/
@JvmName("pkpwtcmyeweakrit")
public suspend fun roleArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.roleArn = mapped
}
/**
* @param value The type of customer persona.
* > In `CreateAssessment` , `roleType` can only be `PROCESS_OWNER` .
* >
* > In `UpdateSettings` , `roleType` can only be `PROCESS_OWNER` .
* >
* > In `BatchCreateDelegationByAssessment` , `roleType` can only be `RESOURCE_OWNER` .
*/
@JvmName("enlvrbrobthjjord")
public suspend fun roleType(`value`: AssessmentRoleType?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.roleType = mapped
}
internal fun build(): AssessmentRoleArgs = AssessmentRoleArgs(
roleArn = roleArn,
roleType = roleType,
)
}