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

com.pulumi.vault.kotlin.outputs.GetPolicyDocumentRule.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: 6.6.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property allowedParameters Whitelists a list of keys and values that are permitted on the given path. See Parameters below.
 * @property capabilities A list of capabilities that this rule apply to `path`. For example, ["read", "write"].
 * @property deniedParameters Blacklists a list of parameter and values. Any values specified here take precedence over `allowed_parameter`. See Parameters below.
 * @property description Description of the rule. Will be added as a comment to rendered rule.
 * @property maxWrappingTtl The maximum allowed TTL that clients can specify for a wrapped response.
 * @property minWrappingTtl The minimum allowed TTL that clients can specify for a wrapped response.
 * @property path A path in Vault that this rule applies to.
 * @property requiredParameters A list of parameters that must be specified.
 */
public data class GetPolicyDocumentRule(
    public val allowedParameters: List? = null,
    public val capabilities: List,
    public val deniedParameters: List? = null,
    public val description: String? = null,
    public val maxWrappingTtl: String? = null,
    public val minWrappingTtl: String? = null,
    public val path: String,
    public val requiredParameters: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.vault.outputs.GetPolicyDocumentRule): GetPolicyDocumentRule = GetPolicyDocumentRule(
            allowedParameters = javaType.allowedParameters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.vault.kotlin.outputs.GetPolicyDocumentRuleAllowedParameter.Companion.toKotlin(args0)
                })
            }),
            capabilities = javaType.capabilities().map({ args0 -> args0 }),
            deniedParameters = javaType.deniedParameters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.vault.kotlin.outputs.GetPolicyDocumentRuleDeniedParameter.Companion.toKotlin(args0)
                })
            }),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            maxWrappingTtl = javaType.maxWrappingTtl().map({ args0 -> args0 }).orElse(null),
            minWrappingTtl = javaType.minWrappingTtl().map({ args0 -> args0 }).orElse(null),
            path = javaType.path(),
            requiredParameters = javaType.requiredParameters().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy