com.pulumi.aws.iam.kotlin.GroupPolicyAttachmentsExclusiveArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy