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

com.pulumi.gcp.secretmanager.kotlin.inputs.SecretReplicationUserManagedReplicaArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.secretmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationUserManagedReplicaArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property customerManagedEncryption Customer Managed Encryption for the secret.
 * Structure is documented below.
 * @property location The canonical IDs of the location to replicate data. For example: "us-east1".
 */
public data class SecretReplicationUserManagedReplicaArgs(
    public val customerManagedEncryption: Output? = null,
    public val location: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.secretmanager.inputs.SecretReplicationUserManagedReplicaArgs = com.pulumi.gcp.secretmanager.inputs.SecretReplicationUserManagedReplicaArgs.builder()
        .customerManagedEncryption(
            customerManagedEncryption?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .location(location.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecretReplicationUserManagedReplicaArgs].
 */
@PulumiTagMarker
public class SecretReplicationUserManagedReplicaArgsBuilder internal constructor() {
    private var customerManagedEncryption:
        Output? = null

    private var location: Output? = null

    /**
     * @param value Customer Managed Encryption for the secret.
     * Structure is documented below.
     */
    @JvmName("otfxfqejntaodkfg")
    public suspend fun customerManagedEncryption(`value`: Output) {
        this.customerManagedEncryption = value
    }

    /**
     * @param value The canonical IDs of the location to replicate data. For example: "us-east1".
     */
    @JvmName("vdmakolobaquuane")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Customer Managed Encryption for the secret.
     * Structure is documented below.
     */
    @JvmName("evwhubouynsdrvro")
    public suspend fun customerManagedEncryption(`value`: SecretReplicationUserManagedReplicaCustomerManagedEncryptionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customerManagedEncryption = mapped
    }

    /**
     * @param argument Customer Managed Encryption for the secret.
     * Structure is documented below.
     */
    @JvmName("wansaivnywymantk")
    public suspend fun customerManagedEncryption(argument: suspend SecretReplicationUserManagedReplicaCustomerManagedEncryptionArgsBuilder.() -> Unit) {
        val toBeMapped =
            SecretReplicationUserManagedReplicaCustomerManagedEncryptionArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.customerManagedEncryption = mapped
    }

    /**
     * @param value The canonical IDs of the location to replicate data. For example: "us-east1".
     */
    @JvmName("umbibvkhnwvklwek")
    public suspend fun location(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.location = mapped
    }

    internal fun build(): SecretReplicationUserManagedReplicaArgs =
        SecretReplicationUserManagedReplicaArgs(
            customerManagedEncryption = customerManagedEncryption,
            location = location ?: throw PulumiNullFieldException("location"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy