com.pulumi.vault.kotlin.outputs.AuthBackendTune.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-vault-kotlin Show documentation
Show all versions of pulumi-vault-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.vault.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property allowedResponseHeaders List of headers to whitelist and allowing
* a plugin to include them in the response.
* @property auditNonHmacRequestKeys Specifies the list of keys that will
* not be HMAC'd by audit devices in the request data object.
* @property auditNonHmacResponseKeys Specifies the list of keys that will
* not be HMAC'd by audit devices in the response data object.
* @property defaultLeaseTtl Specifies the default time-to-live.
* If set, this overrides the global default.
* Must be a valid [duration string](https://golang.org/pkg/time/#ParseDuration)
* @property listingVisibility Specifies whether to show this mount in
* the UI-specific listing endpoint. Valid values are "unauth" or "hidden".
* @property maxLeaseTtl Specifies the maximum time-to-live.
* If set, this overrides the global default.
* Must be a valid [duration string](https://golang.org/pkg/time/#ParseDuration)
* @property passthroughRequestHeaders List of headers to whitelist and
* pass from the request to the backend.
* @property tokenType Specifies the type of tokens that should be returned by
* the mount. Valid values are "default-service", "default-batch", "service", "batch".
*/
public data class AuthBackendTune(
public val allowedResponseHeaders: List? = null,
public val auditNonHmacRequestKeys: List? = null,
public val auditNonHmacResponseKeys: List? = null,
public val defaultLeaseTtl: String? = null,
public val listingVisibility: String? = null,
public val maxLeaseTtl: String? = null,
public val passthroughRequestHeaders: List? = null,
public val tokenType: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.vault.outputs.AuthBackendTune): AuthBackendTune =
AuthBackendTune(
allowedResponseHeaders = javaType.allowedResponseHeaders().map({ args0 -> args0 }),
auditNonHmacRequestKeys = javaType.auditNonHmacRequestKeys().map({ args0 -> args0 }),
auditNonHmacResponseKeys = javaType.auditNonHmacResponseKeys().map({ args0 -> args0 }),
defaultLeaseTtl = javaType.defaultLeaseTtl().map({ args0 -> args0 }).orElse(null),
listingVisibility = javaType.listingVisibility().map({ args0 -> args0 }).orElse(null),
maxLeaseTtl = javaType.maxLeaseTtl().map({ args0 -> args0 }).orElse(null),
passthroughRequestHeaders = javaType.passthroughRequestHeaders().map({ args0 -> args0 }),
tokenType = javaType.tokenType().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy