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