
com.pulumi.awsnative.resiliencehub.kotlin.inputs.AppPermissionModelArgs.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.resiliencehub.kotlin.inputs
import com.pulumi.awsnative.resiliencehub.inputs.AppPermissionModelArgs.builder
import com.pulumi.awsnative.resiliencehub.kotlin.enums.AppPermissionModelType
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
/**
* Defines the roles and credentials that AWS Resilience Hub would use while creating the application, importing its resources, and running an assessment.
* @property crossAccountRoleArns Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for querying purposes while importing resources and assessing your application.
* @property invokerRoleName Existing AWS IAM role name in the primary AWS account that will be assumed by AWS Resilience Hub Service Principle to obtain a read-only access to your application resources while running an assessment.
* @property type Defines how AWS Resilience Hub scans your resources. It can scan for the resources by using a pre-existing role in your AWS account, or by using the credentials of the current IAM user.
*/
public data class AppPermissionModelArgs(
public val crossAccountRoleArns: Output>? = null,
public val invokerRoleName: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.resiliencehub.inputs.AppPermissionModelArgs =
com.pulumi.awsnative.resiliencehub.inputs.AppPermissionModelArgs.builder()
.crossAccountRoleArns(crossAccountRoleArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.invokerRoleName(invokerRoleName?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AppPermissionModelArgs].
*/
@PulumiTagMarker
public class AppPermissionModelArgsBuilder internal constructor() {
private var crossAccountRoleArns: Output>? = null
private var invokerRoleName: Output? = null
private var type: Output? = null
/**
* @param value Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for querying purposes while importing resources and assessing your application.
*/
@JvmName("gqnnnrcotrdhgtfm")
public suspend fun crossAccountRoleArns(`value`: Output>) {
this.crossAccountRoleArns = value
}
@JvmName("rojxvmvqongpjnot")
public suspend fun crossAccountRoleArns(vararg values: Output) {
this.crossAccountRoleArns = Output.all(values.asList())
}
/**
* @param values Defines a list of role Amazon Resource Names (ARNs) to be used in other accounts. These ARNs are used for querying purposes while importing resources and assessing your application.
*/
@JvmName("ljcpxhfwasgbsush")
public suspend fun crossAccountRoleArns(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy