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

com.pulumi.awsnative.apigateway.kotlin.outputs.GetUsagePlanResult.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.apigateway.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property apiStages The associated API stages of a usage plan.
 * @property description The description of a usage plan.
 * @property id The ID for the usage plan. For example: `abc123` .
 * @property quota The target maximum number of permitted requests per a given unit time interval.
 * @property tags The collection of tags. Each tag element is associated with a given resource.
 * @property throttle A map containing method level throttling information for API stage in a usage plan.
 * @property usagePlanName The name of a usage plan.
 */
public data class GetUsagePlanResult(
    public val apiStages: List? = null,
    public val description: String? = null,
    public val id: String? = null,
    public val quota: UsagePlanQuotaSettings? = null,
    public val tags: List? = null,
    public val throttle: UsagePlanThrottleSettings? = null,
    public val usagePlanName: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.apigateway.outputs.GetUsagePlanResult): GetUsagePlanResult = GetUsagePlanResult(
            apiStages = javaType.apiStages().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.apigateway.kotlin.outputs.UsagePlanApiStage.Companion.toKotlin(args0)
                })
            }),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            quota = javaType.quota().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.apigateway.kotlin.outputs.UsagePlanQuotaSettings.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            throttle = javaType.throttle().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.apigateway.kotlin.outputs.UsagePlanThrottleSettings.Companion.toKotlin(args0)
                })
            }).orElse(null),
            usagePlanName = javaType.usagePlanName().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy