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

com.pulumi.azurenative.securityandcompliance.kotlin.inputs.ServicesPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.securityandcompliance.kotlin.inputs

import com.pulumi.azurenative.securityandcompliance.inputs.ServicesPropertiesArgs.builder
import com.pulumi.azurenative.securityandcompliance.kotlin.enums.PublicNetworkAccess
import com.pulumi.core.Either
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

/**
 * The properties of a service instance.
 * @property accessPolicies The access policies of the service instance.
 * @property authenticationConfiguration The authentication configuration for the service instance.
 * @property corsConfiguration The settings for the CORS configuration of the service instance.
 * @property cosmosDbConfiguration The settings for the Cosmos DB database backing the service.
 * @property exportConfiguration The settings for the export operation of the service instance.
 * @property privateEndpointConnections The list of private endpoint connections that are set up for this resource.
 * @property publicNetworkAccess Control permission for data plane traffic coming from public networks while private endpoint is enabled.
 */
public data class ServicesPropertiesArgs(
    public val accessPolicies: Output>? = null,
    public val authenticationConfiguration: Output? =
        null,
    public val corsConfiguration: Output? = null,
    public val cosmosDbConfiguration: Output? = null,
    public val exportConfiguration: Output? = null,
    public val privateEndpointConnections: Output>? = null,
    public val publicNetworkAccess: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.securityandcompliance.inputs.ServicesPropertiesArgs = com.pulumi.azurenative.securityandcompliance.inputs.ServicesPropertiesArgs.builder()
        .accessPolicies(
            accessPolicies?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .authenticationConfiguration(
            authenticationConfiguration?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .corsConfiguration(corsConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .cosmosDbConfiguration(
            cosmosDbConfiguration?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .exportConfiguration(
            exportConfiguration?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .privateEndpointConnections(
            privateEndpointConnections?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        )
        .publicNetworkAccess(
            publicNetworkAccess?.applyValue({ args0 ->
                args0.transform(
                    { args0 -> args0 },
                    { args0 -> args0.let({ args0 -> args0.toJava() }) },
                )
            }),
        ).build()
}

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

    private var authenticationConfiguration: Output? =
        null

    private var corsConfiguration: Output? = null

    private var cosmosDbConfiguration: Output? = null

    private var exportConfiguration: Output? = null

    private var privateEndpointConnections: Output>? = null

    private var publicNetworkAccess: Output>? = null

    /**
     * @param value The access policies of the service instance.
     */
    @JvmName("eqmjoqfktjmghxur")
    public suspend fun accessPolicies(`value`: Output>) {
        this.accessPolicies = value
    }

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

    /**
     * @param values The access policies of the service instance.
     */
    @JvmName("ndohqgmtrrcirqum")
    public suspend fun accessPolicies(values: List>) {
        this.accessPolicies = Output.all(values)
    }

    /**
     * @param value The authentication configuration for the service instance.
     */
    @JvmName("excisfbursviauts")
    public suspend fun authenticationConfiguration(`value`: Output) {
        this.authenticationConfiguration = value
    }

    /**
     * @param value The settings for the CORS configuration of the service instance.
     */
    @JvmName("gmydgfxseocmoxlw")
    public suspend fun corsConfiguration(`value`: Output) {
        this.corsConfiguration = value
    }

    /**
     * @param value The settings for the Cosmos DB database backing the service.
     */
    @JvmName("vvylnciatxtgjlku")
    public suspend fun cosmosDbConfiguration(`value`: Output) {
        this.cosmosDbConfiguration = value
    }

    /**
     * @param value The settings for the export operation of the service instance.
     */
    @JvmName("rngynprvbjwbcgeo")
    public suspend fun exportConfiguration(`value`: Output) {
        this.exportConfiguration = value
    }

    /**
     * @param value The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("uagkxorxlppolidc")
    public suspend fun privateEndpointConnections(`value`: Output>) {
        this.privateEndpointConnections = value
    }

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

    /**
     * @param values The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("wtegpafonjabxueu")
    public suspend fun privateEndpointConnections(values: List>) {
        this.privateEndpointConnections = Output.all(values)
    }

    /**
     * @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
     */
    @JvmName("usanxjwdkxipxdse")
    public suspend fun publicNetworkAccess(`value`: Output>) {
        this.publicNetworkAccess = value
    }

    /**
     * @param value The access policies of the service instance.
     */
    @JvmName("knltpnvhpmylgbyg")
    public suspend fun accessPolicies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessPolicies = mapped
    }

    /**
     * @param argument The access policies of the service instance.
     */
    @JvmName("tgxipboeecwaqbmt")
    public suspend fun accessPolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServiceAccessPolicyEntryArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accessPolicies = mapped
    }

    /**
     * @param argument The access policies of the service instance.
     */
    @JvmName("wuvwmnkxehwhcwqh")
    public suspend fun accessPolicies(vararg argument: suspend ServiceAccessPolicyEntryArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServiceAccessPolicyEntryArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accessPolicies = mapped
    }

    /**
     * @param argument The access policies of the service instance.
     */
    @JvmName("udwislrddlhmoknm")
    public suspend fun accessPolicies(argument: suspend ServiceAccessPolicyEntryArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ServiceAccessPolicyEntryArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.accessPolicies = mapped
    }

    /**
     * @param values The access policies of the service instance.
     */
    @JvmName("tbaswgvmwopvcdnl")
    public suspend fun accessPolicies(vararg values: ServiceAccessPolicyEntryArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessPolicies = mapped
    }

    /**
     * @param value The authentication configuration for the service instance.
     */
    @JvmName("awwyrjfpikwkkpxt")
    public suspend fun authenticationConfiguration(`value`: ServiceAuthenticationConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authenticationConfiguration = mapped
    }

    /**
     * @param argument The authentication configuration for the service instance.
     */
    @JvmName("bsuwsoxneryhfbeg")
    public suspend fun authenticationConfiguration(argument: suspend ServiceAuthenticationConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAuthenticationConfigurationInfoArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.authenticationConfiguration = mapped
    }

    /**
     * @param value The settings for the CORS configuration of the service instance.
     */
    @JvmName("tgbxvhhmnfibykhi")
    public suspend fun corsConfiguration(`value`: ServiceCorsConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.corsConfiguration = mapped
    }

    /**
     * @param argument The settings for the CORS configuration of the service instance.
     */
    @JvmName("biggcovfkxptkecx")
    public suspend fun corsConfiguration(argument: suspend ServiceCorsConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceCorsConfigurationInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.corsConfiguration = mapped
    }

    /**
     * @param value The settings for the Cosmos DB database backing the service.
     */
    @JvmName("hqtegsobagyyihtw")
    public suspend fun cosmosDbConfiguration(`value`: ServiceCosmosDbConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cosmosDbConfiguration = mapped
    }

    /**
     * @param argument The settings for the Cosmos DB database backing the service.
     */
    @JvmName("vqhwscxhsulxfuel")
    public suspend fun cosmosDbConfiguration(argument: suspend ServiceCosmosDbConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceCosmosDbConfigurationInfoArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cosmosDbConfiguration = mapped
    }

    /**
     * @param value The settings for the export operation of the service instance.
     */
    @JvmName("qxcaebtfxdsmwphy")
    public suspend fun exportConfiguration(`value`: ServiceExportConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exportConfiguration = mapped
    }

    /**
     * @param argument The settings for the export operation of the service instance.
     */
    @JvmName("qsarfdccxpuwqfof")
    public suspend fun exportConfiguration(argument: suspend ServiceExportConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceExportConfigurationInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.exportConfiguration = mapped
    }

    /**
     * @param value The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("sviujpesjudeoduw")
    public suspend fun privateEndpointConnections(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateEndpointConnections = mapped
    }

    /**
     * @param argument The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("mgthlhmwhgkmdvqn")
    public suspend fun privateEndpointConnections(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PrivateEndpointConnectionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.privateEndpointConnections = mapped
    }

    /**
     * @param argument The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("kxfvofeodjqcxvwb")
    public suspend fun privateEndpointConnections(vararg argument: suspend PrivateEndpointConnectionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PrivateEndpointConnectionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.privateEndpointConnections = mapped
    }

    /**
     * @param argument The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("vdfhvmkohaqtxpur")
    public suspend fun privateEndpointConnections(argument: suspend PrivateEndpointConnectionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PrivateEndpointConnectionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.privateEndpointConnections = mapped
    }

    /**
     * @param values The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("kcepeompitjeialf")
    public suspend fun privateEndpointConnections(vararg values: PrivateEndpointConnectionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateEndpointConnections = mapped
    }

    /**
     * @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
     */
    @JvmName("sxefplkfojrtlkvs")
    public suspend fun publicNetworkAccess(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    /**
     * @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
     */
    @JvmName("egmkibemeetxhmnv")
    public fun publicNetworkAccess(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    /**
     * @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
     */
    @JvmName("oyjuvejwbxamudov")
    public fun publicNetworkAccess(`value`: PublicNetworkAccess) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    internal fun build(): ServicesPropertiesArgs = ServicesPropertiesArgs(
        accessPolicies = accessPolicies,
        authenticationConfiguration = authenticationConfiguration,
        corsConfiguration = corsConfiguration,
        cosmosDbConfiguration = cosmosDbConfiguration,
        exportConfiguration = exportConfiguration,
        privateEndpointConnections = privateEndpointConnections,
        publicNetworkAccess = publicNetworkAccess,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy