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

com.pulumi.awsnative.iam.kotlin.outputs.GetInstanceProfileResult.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.iam.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property arn Returns the Amazon Resource Name (ARN) for the instance profile. For example:
 * `{"Fn::GetAtt" : ["MyProfile", "Arn"] }`
 * This returns a value such as `arn:aws:iam::1234567890:instance-profile/MyProfile-ASDNSDLKJ` .
 * @property roles The name of the role to associate with the instance profile. Only one role can be assigned to an EC2 instance at a time, and all applications on the instance share the same role and permissions.
 */
public data class GetInstanceProfileResult(
    public val arn: String? = null,
    public val roles: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iam.outputs.GetInstanceProfileResult): GetInstanceProfileResult = GetInstanceProfileResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            roles = javaType.roles().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy