com.pulumi.awsnative.apigateway.kotlin.UsagePlanKeyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.apigateway.kotlin
import com.pulumi.awsnative.apigateway.UsagePlanKeyArgs.builder
import com.pulumi.awsnative.apigateway.kotlin.enums.UsagePlanKeyKeyType
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.jvm.JvmName
/**
* The ``AWS::ApiGateway::UsagePlanKey`` resource associates an API key with a usage plan. This association determines which users the usage plan is applied to.
* @property keyId The Id of the UsagePlanKey resource.
* @property keyType The type of a UsagePlanKey resource for a plan customer.
* @property usagePlanId The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
*/
public data class UsagePlanKeyArgs(
public val keyId: Output? = null,
public val keyType: Output? = null,
public val usagePlanId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.apigateway.UsagePlanKeyArgs =
com.pulumi.awsnative.apigateway.UsagePlanKeyArgs.builder()
.keyId(keyId?.applyValue({ args0 -> args0 }))
.keyType(keyType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.usagePlanId(usagePlanId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UsagePlanKeyArgs].
*/
@PulumiTagMarker
public class UsagePlanKeyArgsBuilder internal constructor() {
private var keyId: Output? = null
private var keyType: Output? = null
private var usagePlanId: Output? = null
/**
* @param value The Id of the UsagePlanKey resource.
*/
@JvmName("ajvmkjpmhbcmahnr")
public suspend fun keyId(`value`: Output) {
this.keyId = value
}
/**
* @param value The type of a UsagePlanKey resource for a plan customer.
*/
@JvmName("cleqahxnusvyjmxl")
public suspend fun keyType(`value`: Output) {
this.keyType = value
}
/**
* @param value The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
*/
@JvmName("qfnyopnqryynpude")
public suspend fun usagePlanId(`value`: Output) {
this.usagePlanId = value
}
/**
* @param value The Id of the UsagePlanKey resource.
*/
@JvmName("rdwhqptewbpivmof")
public suspend fun keyId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyId = mapped
}
/**
* @param value The type of a UsagePlanKey resource for a plan customer.
*/
@JvmName("xwmfxpbifacnuiiq")
public suspend fun keyType(`value`: UsagePlanKeyKeyType?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyType = mapped
}
/**
* @param value The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
*/
@JvmName("kuhvpbgctwtxiacl")
public suspend fun usagePlanId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.usagePlanId = mapped
}
internal fun build(): UsagePlanKeyArgs = UsagePlanKeyArgs(
keyId = keyId,
keyType = keyType,
usagePlanId = usagePlanId,
)
}