com.pulumi.awsnative.iam.kotlin.outputs.UserPolicy.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.Any
import kotlin.String
import kotlin.Suppress
/**
* Contains information about an attached policy.
* An attached policy is a managed policy that has been attached to a user, group, or role.
* For more information about managed policies, refer to [Managed Policies and Inline Policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the *User Guide*.
* @property policyDocument The entire contents of the policy that defines permissions. For more information, see [Overview of JSON policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json).
* @property policyName The friendly name (not ARN) identifying the policy.
*/
public data class UserPolicy(
public val policyDocument: Any,
public val policyName: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iam.outputs.UserPolicy): UserPolicy =
UserPolicy(
policyDocument = javaType.policyDocument(),
policyName = javaType.policyName(),
)
}
}