com.pulumi.vault.kotlin.PolicyArgs.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
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.PolicyArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* ## Import
* Policies can be imported using the `name`, e.g.
* ```sh
* $ pulumi import vault:index/policy:Policy example dev-team
* ```
* @property name The name of the policy
* @property namespace The namespace to provision the resource in.
* The value should not contain leading or trailing forward slashes.
* The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
* *Available only for Vault Enterprise*.
* @property policy String containing a Vault policy
*/
public data class PolicyArgs(
public val name: Output? = null,
public val namespace: Output? = null,
public val policy: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.vault.PolicyArgs = com.pulumi.vault.PolicyArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.namespace(namespace?.applyValue({ args0 -> args0 }))
.policy(policy?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PolicyArgs].
*/
@PulumiTagMarker
public class PolicyArgsBuilder internal constructor() {
private var name: Output? = null
private var namespace: Output? = null
private var policy: Output? = null
/**
* @param value The name of the policy
*/
@JvmName("udtcmyhnsjvghqbc")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The namespace to provision the resource in.
* The value should not contain leading or trailing forward slashes.
* The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
* *Available only for Vault Enterprise*.
*/
@JvmName("tlvohafidkjgcwee")
public suspend fun namespace(`value`: Output) {
this.namespace = value
}
/**
* @param value String containing a Vault policy
*/
@JvmName("jcpxcofwcseoewro")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value The name of the policy
*/
@JvmName("cktuxksuffheluli")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The namespace to provision the resource in.
* The value should not contain leading or trailing forward slashes.
* The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
* *Available only for Vault Enterprise*.
*/
@JvmName("atmuoeflwcybntob")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespace = mapped
}
/**
* @param value String containing a Vault policy
*/
@JvmName("xjobdyelvtddrust")
public suspend fun policy(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
internal fun build(): PolicyArgs = PolicyArgs(
name = name,
namespace = namespace,
policy = policy,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy