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

com.pulumi.azure.postgresql.kotlin.inputs.FlexibleServerIdentityArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.postgresql.kotlin.inputs

import com.pulumi.azure.postgresql.inputs.FlexibleServerIdentityArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property identityIds A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with `customer_managed_key` block.
 * @property type Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Flexible Server. The only possible value is `UserAssigned`.
 */
public data class FlexibleServerIdentityArgs(
    public val identityIds: Output>,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.postgresql.inputs.FlexibleServerIdentityArgs =
        com.pulumi.azure.postgresql.inputs.FlexibleServerIdentityArgs.builder()
            .identityIds(identityIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FlexibleServerIdentityArgs].
 */
@PulumiTagMarker
public class FlexibleServerIdentityArgsBuilder internal constructor() {
    private var identityIds: Output>? = null

    private var type: Output? = null

    /**
     * @param value A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with `customer_managed_key` block.
     */
    @JvmName("hnxrgpduwpdcohvn")
    public suspend fun identityIds(`value`: Output>) {
        this.identityIds = value
    }

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

    /**
     * @param values A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with `customer_managed_key` block.
     */
    @JvmName("onqpjajbhfympvry")
    public suspend fun identityIds(values: List>) {
        this.identityIds = Output.all(values)
    }

    /**
     * @param value Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Flexible Server. The only possible value is `UserAssigned`.
     */
    @JvmName("xrtttykalurxcgll")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with `customer_managed_key` block.
     */
    @JvmName("srsumjmoqxccornn")
    public suspend fun identityIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.identityIds = mapped
    }

    /**
     * @param values A list of User Assigned Managed Identity IDs to be assigned to this PostgreSQL Flexible Server. Required if used together with `customer_managed_key` block.
     */
    @JvmName("dogthgvodcwojklo")
    public suspend fun identityIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.identityIds = mapped
    }

    /**
     * @param value Specifies the type of Managed Service Identity that should be configured on this PostgreSQL Flexible Server. The only possible value is `UserAssigned`.
     */
    @JvmName("psaacjsrslmnmiyr")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): FlexibleServerIdentityArgs = FlexibleServerIdentityArgs(
        identityIds = identityIds ?: throw PulumiNullFieldException("identityIds"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy