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

com.pulumi.awsnative.iam.kotlin.inputs.GroupPolicyArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iam.kotlin.inputs

import com.pulumi.awsnative.iam.inputs.GroupPolicyArgs.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, see [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 policy document.
 * @property policyName The friendly name (not ARN) identifying the policy.
 */
public data class GroupPolicyArgs(
    public val policyDocument: Output,
    public val policyName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iam.inputs.GroupPolicyArgs =
        com.pulumi.awsnative.iam.inputs.GroupPolicyArgs.builder()
            .policyDocument(policyDocument.applyValue({ args0 -> args0 }))
            .policyName(policyName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GroupPolicyArgs].
 */
@PulumiTagMarker
public class GroupPolicyArgsBuilder internal constructor() {
    private var policyDocument: Output? = null

    private var policyName: Output? = null

    /**
     * @param value The policy document.
     */
    @JvmName("stjfyqcjunocpgll")
    public suspend fun policyDocument(`value`: Output) {
        this.policyDocument = value
    }

    /**
     * @param value The friendly name (not ARN) identifying the policy.
     */
    @JvmName("gyhyuqepirfkpulo")
    public suspend fun policyName(`value`: Output) {
        this.policyName = value
    }

    /**
     * @param value The policy document.
     */
    @JvmName("weecuuwnvjvwivfv")
    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("wsbgndiiivpekxdg")
    public suspend fun policyName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyName = mapped
    }

    internal fun build(): GroupPolicyArgs = GroupPolicyArgs(
        policyDocument = policyDocument ?: throw PulumiNullFieldException("policyDocument"),
        policyName = policyName ?: throw PulumiNullFieldException("policyName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy