![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.iam.kotlin.inputs.UserPolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iam.kotlin.inputs
import com.pulumi.awsnative.iam.inputs.UserPolicyArgs.builder
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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* 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 UserPolicyArgs(
public val policyDocument: Output,
public val policyName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iam.inputs.UserPolicyArgs =
com.pulumi.awsnative.iam.inputs.UserPolicyArgs.builder()
.policyDocument(policyDocument.applyValue({ args0 -> args0 }))
.policyName(policyName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UserPolicyArgs].
*/
@PulumiTagMarker
public class UserPolicyArgsBuilder internal constructor() {
private var policyDocument: Output? = null
private var policyName: Output? = null
/**
* @param value 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).
*/
@JvmName("dnrgbeykmfigxjus")
public suspend fun policyDocument(`value`: Output) {
this.policyDocument = value
}
/**
* @param value The friendly name (not ARN) identifying the policy.
*/
@JvmName("kydyhshlkbcvoqld")
public suspend fun policyName(`value`: Output) {
this.policyName = value
}
/**
* @param value 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).
*/
@JvmName("kqqajhsqjdgnoore")
public suspend fun policyDocument(`value`: Any) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.policyDocument = mapped
}
/**
* @param value The friendly name (not ARN) identifying the policy.
*/
@JvmName("wcdaijqqyjawhsio")
public suspend fun policyName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.policyName = mapped
}
internal fun build(): UserPolicyArgs = UserPolicyArgs(
policyDocument = policyDocument ?: throw PulumiNullFieldException("policyDocument"),
policyName = policyName ?: throw PulumiNullFieldException("policyName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy