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

com.pulumi.awsnative.securityhub.kotlin.DelegatedAdminArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.securityhub.kotlin

import com.pulumi.awsnative.securityhub.DelegatedAdminArgs.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.jvm.JvmName

/**
 * The ``AWS::SecurityHub::DelegatedAdmin`` resource designates the delegated ASHlong administrator account for an organization. You must enable the integration between ASH and AOlong before you can designate a delegated ASH administrator. Only the management account for an organization can designate the delegated ASH administrator account. For more information, see [Designating the delegated administrator](https://docs.aws.amazon.com/securityhub/latest/userguide/designate-orgs-admin-account.html#designate-admin-instructions) in the *User Guide*.
 *  To change the delegated administrator account, remove the current delegated administrator account, and then designate the new account.
 *  To designate multiple delegated administrators in different organizations and AWS-Regions, we recommend using [mappings](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html).
 *  Tags aren't supported for this resource.
 * @property adminAccountId The AWS-account identifier of the account to designate as the Security Hub administrator account.
 */
public data class DelegatedAdminArgs(
    public val adminAccountId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.securityhub.DelegatedAdminArgs =
        com.pulumi.awsnative.securityhub.DelegatedAdminArgs.builder()
            .adminAccountId(adminAccountId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DelegatedAdminArgs].
 */
@PulumiTagMarker
public class DelegatedAdminArgsBuilder internal constructor() {
    private var adminAccountId: Output? = null

    /**
     * @param value The AWS-account identifier of the account to designate as the Security Hub administrator account.
     */
    @JvmName("xnmvdklhittephdh")
    public suspend fun adminAccountId(`value`: Output) {
        this.adminAccountId = value
    }

    /**
     * @param value The AWS-account identifier of the account to designate as the Security Hub administrator account.
     */
    @JvmName("bctdgktqsmhkehoy")
    public suspend fun adminAccountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adminAccountId = mapped
    }

    internal fun build(): DelegatedAdminArgs = DelegatedAdminArgs(
        adminAccountId = adminAccountId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy