
com.pulumi.awsnative.organizations.kotlin.AccountArgs.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.organizations.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.organizations.AccountArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* You can use AWS::Organizations::Account to manage accounts in organization.
* @property accountName The friendly name of the member account.
* @property email The email address of the owner to assign to the new member account.
* @property parentIds List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
* @property roleName The name of an IAM role that AWS Organizations automatically preconfigures in the new member account. Default name is OrganizationAccountAccessRole if not specified.
* @property tags A list of tags that you want to attach to the newly created account. For each tag in the list, you must specify both a tag key and a value.
*/
public data class AccountArgs(
public val accountName: Output? = null,
public val email: Output? = null,
public val parentIds: Output>? = null,
public val roleName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.organizations.AccountArgs =
com.pulumi.awsnative.organizations.AccountArgs.builder()
.accountName(accountName?.applyValue({ args0 -> args0 }))
.email(email?.applyValue({ args0 -> args0 }))
.parentIds(parentIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.roleName(roleName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AccountArgs].
*/
@PulumiTagMarker
public class AccountArgsBuilder internal constructor() {
private var accountName: Output? = null
private var email: Output? = null
private var parentIds: Output>? = null
private var roleName: Output? = null
private var tags: Output>? = null
/**
* @param value The friendly name of the member account.
*/
@JvmName("udgecinqdqhyromy")
public suspend fun accountName(`value`: Output) {
this.accountName = value
}
/**
* @param value The email address of the owner to assign to the new member account.
*/
@JvmName("ypbhsvytctududuh")
public suspend fun email(`value`: Output) {
this.email = value
}
/**
* @param value List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
*/
@JvmName("fsbffebaonqivaaw")
public suspend fun parentIds(`value`: Output>) {
this.parentIds = value
}
@JvmName("gdefowelpjcugthd")
public suspend fun parentIds(vararg values: Output) {
this.parentIds = Output.all(values.asList())
}
/**
* @param values List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root.
*/
@JvmName("dlgcalmpdilqcdjm")
public suspend fun parentIds(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy