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

com.pulumi.vault.pkiSecret.kotlin.inputs.SecretBackendRolePolicyIdentifierArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.pkiSecret.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.pkiSecret.inputs.SecretBackendRolePolicyIdentifierArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property cps The URL of the CPS for the policy identifier
 * Example usage:
 * 
 * ```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.pkiSecret.SecretBackendRole;
 * import com.pulumi.vault.pkiSecret.SecretBackendRoleArgs;
 * 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 pki = new Mount("pki", MountArgs.builder()
 *             .path("pki")
 *             .type("pki")
 *             .defaultLeaseTtlSeconds(3600)
 *             .maxLeaseTtlSeconds(86400)
 *             .build());
 *         var role = new SecretBackendRole("role", SecretBackendRoleArgs.builder()
 *             .backend(pki.path())
 *             .name("my_role")
 *             .ttl(3600)
 *             .allowIpSans(true)
 *             .keyType("rsa")
 *             .keyBits(4096)
 *             .allowedDomains(
 *                 "example.com",
 *                 "my.domain")
 *             .allowSubdomains(true)
 *             .policyIdentifiers(
 *                 Map.ofEntries(
 *                     Map.entry("oid", "1.3.6.1.4.1.7.8"),
 *                     Map.entry("notice", "I am a user Notice")
 *                 ),
 *                 Map.ofEntries(
 *                     Map.entry("oid", "1.3.6.1.4.1.44947.1.2.4"),
 *                     Map.entry("cps", "https://example.com")
 *                 ))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   pki:
 *     type: vault:Mount
 *     properties:
 *       path: pki
 *       type: pki
 *       defaultLeaseTtlSeconds: 3600
 *       maxLeaseTtlSeconds: 86400
 *   role:
 *     type: vault:pkiSecret:SecretBackendRole
 *     properties:
 *       backend: ${pki.path}
 *       name: my_role
 *       ttl: 3600
 *       allowIpSans: true
 *       keyType: rsa
 *       keyBits: 4096
 *       allowedDomains:
 *         - example.com
 *         - my.domain
 *       allowSubdomains: true
 *       policyIdentifiers:
 *         - oid: 1.3.6.1.4.1.7.8
 *           notice: I am a user Notice
 *         - oid: 1.3.6.1.4.1.44947.1.2.4
 *           cps: https://example.com
 * ```
 * 
 * @property notice A notice for the policy identifier
 * @property oid The OID for the policy identifier
 */
public data class SecretBackendRolePolicyIdentifierArgs(
    public val cps: Output? = null,
    public val notice: Output? = null,
    public val oid: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.pkiSecret.inputs.SecretBackendRolePolicyIdentifierArgs =
        com.pulumi.vault.pkiSecret.inputs.SecretBackendRolePolicyIdentifierArgs.builder()
            .cps(cps?.applyValue({ args0 -> args0 }))
            .notice(notice?.applyValue({ args0 -> args0 }))
            .oid(oid.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecretBackendRolePolicyIdentifierArgs].
 */
@PulumiTagMarker
public class SecretBackendRolePolicyIdentifierArgsBuilder internal constructor() {
    private var cps: Output? = null

    private var notice: Output? = null

    private var oid: Output? = null

    /**
     * @param value The URL of the CPS for the policy identifier
     * Example usage:
     * 
     * ```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.pkiSecret.SecretBackendRole;
     * import com.pulumi.vault.pkiSecret.SecretBackendRoleArgs;
     * 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 pki = new Mount("pki", MountArgs.builder()
     *             .path("pki")
     *             .type("pki")
     *             .defaultLeaseTtlSeconds(3600)
     *             .maxLeaseTtlSeconds(86400)
     *             .build());
     *         var role = new SecretBackendRole("role", SecretBackendRoleArgs.builder()
     *             .backend(pki.path())
     *             .name("my_role")
     *             .ttl(3600)
     *             .allowIpSans(true)
     *             .keyType("rsa")
     *             .keyBits(4096)
     *             .allowedDomains(
     *                 "example.com",
     *                 "my.domain")
     *             .allowSubdomains(true)
     *             .policyIdentifiers(
     *                 Map.ofEntries(
     *                     Map.entry("oid", "1.3.6.1.4.1.7.8"),
     *                     Map.entry("notice", "I am a user Notice")
     *                 ),
     *                 Map.ofEntries(
     *                     Map.entry("oid", "1.3.6.1.4.1.44947.1.2.4"),
     *                     Map.entry("cps", "https://example.com")
     *                 ))
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * resources:
     *   pki:
     *     type: vault:Mount
     *     properties:
     *       path: pki
     *       type: pki
     *       defaultLeaseTtlSeconds: 3600
     *       maxLeaseTtlSeconds: 86400
     *   role:
     *     type: vault:pkiSecret:SecretBackendRole
     *     properties:
     *       backend: ${pki.path}
     *       name: my_role
     *       ttl: 3600
     *       allowIpSans: true
     *       keyType: rsa
     *       keyBits: 4096
     *       allowedDomains:
     *         - example.com
     *         - my.domain
     *       allowSubdomains: true
     *       policyIdentifiers:
     *         - oid: 1.3.6.1.4.1.7.8
     *           notice: I am a user Notice
     *         - oid: 1.3.6.1.4.1.44947.1.2.4
     *           cps: https://example.com
     * ```
     * 
     */
    @JvmName("afdqqhjucmgwlipl")
    public suspend fun cps(`value`: Output) {
        this.cps = value
    }

    /**
     * @param value A notice for the policy identifier
     */
    @JvmName("srdhfjesqnwfqqft")
    public suspend fun notice(`value`: Output) {
        this.notice = value
    }

    /**
     * @param value The OID for the policy identifier
     */
    @JvmName("akvywyjxdpembgud")
    public suspend fun oid(`value`: Output) {
        this.oid = value
    }

    /**
     * @param value The URL of the CPS for the policy identifier
     * Example usage:
     * 
     * ```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.pkiSecret.SecretBackendRole;
     * import com.pulumi.vault.pkiSecret.SecretBackendRoleArgs;
     * 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 pki = new Mount("pki", MountArgs.builder()
     *             .path("pki")
     *             .type("pki")
     *             .defaultLeaseTtlSeconds(3600)
     *             .maxLeaseTtlSeconds(86400)
     *             .build());
     *         var role = new SecretBackendRole("role", SecretBackendRoleArgs.builder()
     *             .backend(pki.path())
     *             .name("my_role")
     *             .ttl(3600)
     *             .allowIpSans(true)
     *             .keyType("rsa")
     *             .keyBits(4096)
     *             .allowedDomains(
     *                 "example.com",
     *                 "my.domain")
     *             .allowSubdomains(true)
     *             .policyIdentifiers(
     *                 Map.ofEntries(
     *                     Map.entry("oid", "1.3.6.1.4.1.7.8"),
     *                     Map.entry("notice", "I am a user Notice")
     *                 ),
     *                 Map.ofEntries(
     *                     Map.entry("oid", "1.3.6.1.4.1.44947.1.2.4"),
     *                     Map.entry("cps", "https://example.com")
     *                 ))
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * resources:
     *   pki:
     *     type: vault:Mount
     *     properties:
     *       path: pki
     *       type: pki
     *       defaultLeaseTtlSeconds: 3600
     *       maxLeaseTtlSeconds: 86400
     *   role:
     *     type: vault:pkiSecret:SecretBackendRole
     *     properties:
     *       backend: ${pki.path}
     *       name: my_role
     *       ttl: 3600
     *       allowIpSans: true
     *       keyType: rsa
     *       keyBits: 4096
     *       allowedDomains:
     *         - example.com
     *         - my.domain
     *       allowSubdomains: true
     *       policyIdentifiers:
     *         - oid: 1.3.6.1.4.1.7.8
     *           notice: I am a user Notice
     *         - oid: 1.3.6.1.4.1.44947.1.2.4
     *           cps: https://example.com
     * ```
     * 
     */
    @JvmName("bvnbcxmygqsdhysf")
    public suspend fun cps(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cps = mapped
    }

    /**
     * @param value A notice for the policy identifier
     */
    @JvmName("iyofddvhnihxnfaa")
    public suspend fun notice(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notice = mapped
    }

    /**
     * @param value The OID for the policy identifier
     */
    @JvmName("nivcrhnyupqsogdn")
    public suspend fun oid(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oid = mapped
    }

    internal fun build(): SecretBackendRolePolicyIdentifierArgs =
        SecretBackendRolePolicyIdentifierArgs(
            cps = cps,
            notice = notice,
            oid = oid ?: throw PulumiNullFieldException("oid"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy