com.pulumi.cloudflare.kotlin.inputs.ApiTokenConditionRequestIpArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.ApiTokenConditionRequestIpArgs.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.collections.List
import kotlin.jvm.JvmName
/**
*
* @property ins List of IP addresses or CIDR notation where the token may be used from. If not specified, the token will be valid for all IP addresses.
* @property notIns List of IP addresses or CIDR notation where the token should not be used from.
*/
public data class ApiTokenConditionRequestIpArgs(
public val ins: Output>? = null,
public val notIns: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.ApiTokenConditionRequestIpArgs =
com.pulumi.cloudflare.inputs.ApiTokenConditionRequestIpArgs.builder()
.ins(ins?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.notIns(notIns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [ApiTokenConditionRequestIpArgs].
*/
@PulumiTagMarker
public class ApiTokenConditionRequestIpArgsBuilder internal constructor() {
private var ins: Output>? = null
private var notIns: Output>? = null
/**
* @param value List of IP addresses or CIDR notation where the token may be used from. If not specified, the token will be valid for all IP addresses.
*/
@JvmName("sjgoaksxbxhwdakw")
public suspend fun ins(`value`: Output>) {
this.ins = value
}
@JvmName("cyfqtgdkrjuubdtd")
public suspend fun ins(vararg values: Output) {
this.ins = Output.all(values.asList())
}
/**
* @param values List of IP addresses or CIDR notation where the token may be used from. If not specified, the token will be valid for all IP addresses.
*/
@JvmName("wgrxxbktuhfdbcll")
public suspend fun ins(values: List