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

com.pulumi.awsnative.resiliencehub.kotlin.outputs.AppPermissionModel.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.resiliencehub.kotlin.outputs

import com.pulumi.awsnative.resiliencehub.kotlin.enums.AppPermissionModelType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * 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 AppPermissionModel(
    public val crossAccountRoleArns: List? = null,
    public val invokerRoleName: String? = null,
    public val type: AppPermissionModelType,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.resiliencehub.outputs.AppPermissionModel): AppPermissionModel = AppPermissionModel(
            crossAccountRoleArns = javaType.crossAccountRoleArns().map({ args0 -> args0 }),
            invokerRoleName = javaType.invokerRoleName().map({ args0 -> args0 }).orElse(null),
            type = javaType.type().let({ args0 ->
                com.pulumi.awsnative.resiliencehub.kotlin.enums.AppPermissionModelType.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy