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

com.pulumi.gcp.projects.kotlin.inputs.ApiKeyRestrictionsServerKeyRestrictionsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.projects.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsServerKeyRestrictionsArgs.builder
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 allowedIps A list of the caller IP addresses that are allowed to make API calls with this key.
 */
public data class ApiKeyRestrictionsServerKeyRestrictionsArgs(
    public val allowedIps: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsServerKeyRestrictionsArgs = com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsServerKeyRestrictionsArgs.builder()
        .allowedIps(allowedIps.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value A list of the caller IP addresses that are allowed to make API calls with this key.
     */
    @JvmName("vtcaikjgnmudhdub")
    public suspend fun allowedIps(`value`: Output>) {
        this.allowedIps = value
    }

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

    /**
     * @param values A list of the caller IP addresses that are allowed to make API calls with this key.
     */
    @JvmName("ffxlsokakvvoxspi")
    public suspend fun allowedIps(values: List>) {
        this.allowedIps = Output.all(values)
    }

    /**
     * @param value A list of the caller IP addresses that are allowed to make API calls with this key.
     */
    @JvmName("mhgjbbhkkfahsmmj")
    public suspend fun allowedIps(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedIps = mapped
    }

    /**
     * @param values A list of the caller IP addresses that are allowed to make API calls with this key.
     */
    @JvmName("lxjkgoypvhgmfpyb")
    public suspend fun allowedIps(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedIps = mapped
    }

    internal fun build(): ApiKeyRestrictionsServerKeyRestrictionsArgs =
        ApiKeyRestrictionsServerKeyRestrictionsArgs(
            allowedIps = allowedIps ?: throw PulumiNullFieldException("allowedIps"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy