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

com.pulumi.aws.iam.kotlin.GroupPolicyAttachmentsExclusiveArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.iam.kotlin

import com.pulumi.aws.iam.GroupPolicyAttachmentsExclusiveArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * ## Import
 * Using `pulumi import`, import exclusive management of managed IAM policy assignments using the `group_name`. For example:
 * ```sh
 * $ pulumi import aws:iam/groupPolicyAttachmentsExclusive:GroupPolicyAttachmentsExclusive example MyGroup
 * ```
 * @property groupName IAM group name.
 * @property policyArns A list of managed IAM policy ARNs to be attached to the group. Policies attached to this group but not configured in this argument will be removed.
 */
public data class GroupPolicyAttachmentsExclusiveArgs(
    public val groupName: Output? = null,
    public val policyArns: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iam.GroupPolicyAttachmentsExclusiveArgs =
        com.pulumi.aws.iam.GroupPolicyAttachmentsExclusiveArgs.builder()
            .groupName(groupName?.applyValue({ args0 -> args0 }))
            .policyArns(policyArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [GroupPolicyAttachmentsExclusiveArgs].
 */
@PulumiTagMarker
public class GroupPolicyAttachmentsExclusiveArgsBuilder internal constructor() {
    private var groupName: Output? = null

    private var policyArns: Output>? = null

    /**
     * @param value IAM group name.
     */
    @JvmName("aulogmnjpaobfnvt")
    public suspend fun groupName(`value`: Output) {
        this.groupName = value
    }

    /**
     * @param value A list of managed IAM policy ARNs to be attached to the group. Policies attached to this group but not configured in this argument will be removed.
     */
    @JvmName("fpdpjtgoigdcobcq")
    public suspend fun policyArns(`value`: Output>) {
        this.policyArns = value
    }

    @JvmName("uaupkukryhkxrfdy")
    public suspend fun policyArns(vararg values: Output) {
        this.policyArns = Output.all(values.asList())
    }

    /**
     * @param values A list of managed IAM policy ARNs to be attached to the group. Policies attached to this group but not configured in this argument will be removed.
     */
    @JvmName("eqpkjlguvlpvptwb")
    public suspend fun policyArns(values: List>) {
        this.policyArns = Output.all(values)
    }

    /**
     * @param value IAM group name.
     */
    @JvmName("utijqrcpmjabdobw")
    public suspend fun groupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupName = mapped
    }

    /**
     * @param value A list of managed IAM policy ARNs to be attached to the group. Policies attached to this group but not configured in this argument will be removed.
     */
    @JvmName("rfjmwrhmlleabubd")
    public suspend fun policyArns(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyArns = mapped
    }

    /**
     * @param values A list of managed IAM policy ARNs to be attached to the group. Policies attached to this group but not configured in this argument will be removed.
     */
    @JvmName("yhfwuwlseoyyxrnx")
    public suspend fun policyArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyArns = mapped
    }

    internal fun build(): GroupPolicyAttachmentsExclusiveArgs = GroupPolicyAttachmentsExclusiveArgs(
        groupName = groupName,
        policyArns = policyArns,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy