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

com.pulumi.awsnative.redshift.kotlin.EndpointAuthorizationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.redshift.kotlin

import com.pulumi.awsnative.redshift.EndpointAuthorizationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Describes an endpoint authorization for authorizing Redshift-managed VPC endpoint access to a cluster across AWS accounts.
 * @property account The target AWS account ID to grant or revoke access for.
 * @property clusterIdentifier The cluster identifier.
 * @property force  Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.
 * @property vpcIds The virtual private cloud (VPC) identifiers to grant or revoke access to.
 */
public data class EndpointAuthorizationArgs(
    public val account: Output? = null,
    public val clusterIdentifier: Output? = null,
    public val force: Output? = null,
    public val vpcIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.redshift.EndpointAuthorizationArgs =
        com.pulumi.awsnative.redshift.EndpointAuthorizationArgs.builder()
            .account(account?.applyValue({ args0 -> args0 }))
            .clusterIdentifier(clusterIdentifier?.applyValue({ args0 -> args0 }))
            .force(force?.applyValue({ args0 -> args0 }))
            .vpcIds(vpcIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [EndpointAuthorizationArgs].
 */
@PulumiTagMarker
public class EndpointAuthorizationArgsBuilder internal constructor() {
    private var account: Output? = null

    private var clusterIdentifier: Output? = null

    private var force: Output? = null

    private var vpcIds: Output>? = null

    /**
     * @param value The target AWS account ID to grant or revoke access for.
     */
    @JvmName("srsaroynhtmwmrto")
    public suspend fun account(`value`: Output) {
        this.account = value
    }

    /**
     * @param value The cluster identifier.
     */
    @JvmName("jxwqnotbnbkgvpqe")
    public suspend fun clusterIdentifier(`value`: Output) {
        this.clusterIdentifier = value
    }

    /**
     * @param value  Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.
     */
    @JvmName("ivoikulxhcigrsco")
    public suspend fun force(`value`: Output) {
        this.force = value
    }

    /**
     * @param value The virtual private cloud (VPC) identifiers to grant or revoke access to.
     */
    @JvmName("oyrouuirwyiqpkow")
    public suspend fun vpcIds(`value`: Output>) {
        this.vpcIds = value
    }

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

    /**
     * @param values The virtual private cloud (VPC) identifiers to grant or revoke access to.
     */
    @JvmName("rphecgvbfhhcisys")
    public suspend fun vpcIds(values: List>) {
        this.vpcIds = Output.all(values)
    }

    /**
     * @param value The target AWS account ID to grant or revoke access for.
     */
    @JvmName("tstqtvydtylyplrf")
    public suspend fun account(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.account = mapped
    }

    /**
     * @param value The cluster identifier.
     */
    @JvmName("fnflasboukecovme")
    public suspend fun clusterIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterIdentifier = mapped
    }

    /**
     * @param value  Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.
     */
    @JvmName("jjssfpdhsalvlykt")
    public suspend fun force(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.force = mapped
    }

    /**
     * @param value The virtual private cloud (VPC) identifiers to grant or revoke access to.
     */
    @JvmName("ntkmgprnlhoxwyky")
    public suspend fun vpcIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcIds = mapped
    }

    /**
     * @param values The virtual private cloud (VPC) identifiers to grant or revoke access to.
     */
    @JvmName("oiwionefrcdynopn")
    public suspend fun vpcIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcIds = mapped
    }

    internal fun build(): EndpointAuthorizationArgs = EndpointAuthorizationArgs(
        account = account,
        clusterIdentifier = clusterIdentifier,
        force = force,
        vpcIds = vpcIds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy