com.pulumi.vault.transform.kotlin.AlphabetArgs.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.transform.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.transform.AlphabetArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* This resource supports the "/transform/alphabet/{name}" Vault endpoint.
* It queries an existing alphabet by the given name.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vault from "@pulumi/vault";
* const mountTransform = new vault.Mount("mount_transform", {
* path: "transform",
* type: "transform",
* });
* const test = new vault.transform.Alphabet("test", {
* path: mountTransform.path,
* name: "numerics",
* alphabet: "0123456789",
* });
* ```
* ```python
* import pulumi
* import pulumi_vault as vault
* mount_transform = vault.Mount("mount_transform",
* path="transform",
* type="transform")
* test = vault.transform.Alphabet("test",
* path=mount_transform.path,
* name="numerics",
* alphabet="0123456789")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Vault = Pulumi.Vault;
* return await Deployment.RunAsync(() =>
* {
* var mountTransform = new Vault.Mount("mount_transform", new()
* {
* Path = "transform",
* Type = "transform",
* });
* var test = new Vault.Transform.Alphabet("test", new()
* {
* Path = mountTransform.Path,
* Name = "numerics",
* AlphabetSet = "0123456789",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
* "github.com/pulumi/pulumi-vault/sdk/v6/go/vault/transform"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* mountTransform, err := vault.NewMount(ctx, "mount_transform", &vault.MountArgs{
* Path: pulumi.String("transform"),
* Type: pulumi.String("transform"),
* })
* if err != nil {
* return err
* }
* _, err = transform.NewAlphabet(ctx, "test", &transform.AlphabetArgs{
* Path: mountTransform.Path,
* Name: pulumi.String("numerics"),
* Alphabet: pulumi.String("0123456789"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.vault.Mount;
* import com.pulumi.vault.MountArgs;
* import com.pulumi.vault.transform.Alphabet;
* import com.pulumi.vault.transform.AlphabetArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var mountTransform = new Mount("mountTransform", MountArgs.builder()
* .path("transform")
* .type("transform")
* .build());
* var test = new Alphabet("test", AlphabetArgs.builder()
* .path(mountTransform.path())
* .name("numerics")
* .alphabet("0123456789")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* mountTransform:
* type: vault:Mount
* name: mount_transform
* properties:
* path: transform
* type: transform
* test:
* type: vault:transform:Alphabet
* properties:
* path: ${mountTransform.path}
* name: numerics
* alphabet: '0123456789'
* ```
*
* @property alphabet A string of characters that contains the alphabet set.
* @property name The name of the alphabet.
* @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 path Path to where the back-end is mounted within Vault.
*/
public data class AlphabetArgs(
public val alphabet: Output? = null,
public val name: Output? = null,
public val namespace: Output? = null,
public val path: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.vault.transform.AlphabetArgs =
com.pulumi.vault.transform.AlphabetArgs.builder()
.alphabet(alphabet?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.namespace(namespace?.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AlphabetArgs].
*/
@PulumiTagMarker
public class AlphabetArgsBuilder internal constructor() {
private var alphabet: Output? = null
private var name: Output? = null
private var namespace: Output? = null
private var path: Output? = null
/**
* @param value A string of characters that contains the alphabet set.
*/
@JvmName("ravnnxylqijscddu")
public suspend fun alphabet(`value`: Output) {
this.alphabet = value
}
/**
* @param value The name of the alphabet.
*/
@JvmName("yfxihyuarqxunvkl")
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("lijxhnujwqkprlbl")
public suspend fun namespace(`value`: Output) {
this.namespace = value
}
/**
* @param value Path to where the back-end is mounted within Vault.
*/
@JvmName("wdcucnmdonvbcbcn")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value A string of characters that contains the alphabet set.
*/
@JvmName("ramjsgohdbjmrwss")
public suspend fun alphabet(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.alphabet = mapped
}
/**
* @param value The name of the alphabet.
*/
@JvmName("fiaegqlvprpbtwsa")
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("odmxgqwyedtohfwo")
public suspend fun namespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.namespace = mapped
}
/**
* @param value Path to where the back-end is mounted within Vault.
*/
@JvmName("dwcwhmotwdwsyjmg")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
internal fun build(): AlphabetArgs = AlphabetArgs(
alphabet = alphabet,
name = name,
namespace = namespace,
path = path,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy