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

com.pulumi.awsnative.resiliencehub.kotlin.inputs.AppPermissionModelArgs.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: 1.24.0.0
Show newest version
@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>) {
        this.crossAccountRoleArns = Output.all(values)
    }

    /**
     * @param value 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.
     */
    @JvmName("njvqokogwpgxyfyf")
    public suspend fun invokerRoleName(`value`: Output) {
        this.invokerRoleName = value
    }

    /**
     * @param value 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.
     */
    @JvmName("sjgemjfamkucdtjd")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @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("jophmtkhseinuuhl")
    public suspend fun crossAccountRoleArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.crossAccountRoleArns = mapped
    }

    /**
     * @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("wlqgiyecqtvgtnyi")
    public suspend fun crossAccountRoleArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.crossAccountRoleArns = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("dvjhgcafhntwkycr")
    public suspend fun invokerRoleName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.invokerRoleName = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("kognevlvfylpjyjf")
    public suspend fun type(`value`: AppPermissionModelType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AppPermissionModelArgs = AppPermissionModelArgs(
        crossAccountRoleArns = crossAccountRoleArns,
        invokerRoleName = invokerRoleName,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy