
com.pulumi.azure.containerapp.kotlin.inputs.AppRegistryArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.containerapp.kotlin.inputs
import com.pulumi.azure.containerapp.inputs.AppRegistryArgs.builder
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property identity Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
* > **Note:** The Resource ID must be of a User Assigned Managed identity defined in an `identity` block.
* @property passwordSecretName The name of the Secret Reference containing the password value for this user on the Container Registry, `username` must also be supplied.
* @property server The hostname for the Container Registry.
* The authentication details must also be supplied, `identity` and `username`/`password_secret_name` are mutually exclusive.
* @property username The username to use for this Container Registry, `password_secret_name` must also be supplied..
*/
public data class AppRegistryArgs(
public val identity: Output? = null,
public val passwordSecretName: Output? = null,
public val server: Output,
public val username: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerapp.inputs.AppRegistryArgs =
com.pulumi.azure.containerapp.inputs.AppRegistryArgs.builder()
.identity(identity?.applyValue({ args0 -> args0 }))
.passwordSecretName(passwordSecretName?.applyValue({ args0 -> args0 }))
.server(server.applyValue({ args0 -> args0 }))
.username(username?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppRegistryArgs].
*/
@PulumiTagMarker
public class AppRegistryArgsBuilder internal constructor() {
private var identity: Output? = null
private var passwordSecretName: Output? = null
private var server: Output? = null
private var username: Output? = null
/**
* @param value Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
* > **Note:** The Resource ID must be of a User Assigned Managed identity defined in an `identity` block.
*/
@JvmName("spibqlgyaxuamavj")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The name of the Secret Reference containing the password value for this user on the Container Registry, `username` must also be supplied.
*/
@JvmName("ioketpvkdchsfnws")
public suspend fun passwordSecretName(`value`: Output) {
this.passwordSecretName = value
}
/**
* @param value The hostname for the Container Registry.
* The authentication details must also be supplied, `identity` and `username`/`password_secret_name` are mutually exclusive.
*/
@JvmName("baavqtmhrqwfoiad")
public suspend fun server(`value`: Output) {
this.server = value
}
/**
* @param value The username to use for this Container Registry, `password_secret_name` must also be supplied..
*/
@JvmName("xehdcxqunlomyhop")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value Resource ID for the User Assigned Managed identity to use when pulling from the Container Registry.
* > **Note:** The Resource ID must be of a User Assigned Managed identity defined in an `identity` block.
*/
@JvmName("ggnylkerxehxuowy")
public suspend fun identity(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param value The name of the Secret Reference containing the password value for this user on the Container Registry, `username` must also be supplied.
*/
@JvmName("ywiywcckfesstlus")
public suspend fun passwordSecretName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.passwordSecretName = mapped
}
/**
* @param value The hostname for the Container Registry.
* The authentication details must also be supplied, `identity` and `username`/`password_secret_name` are mutually exclusive.
*/
@JvmName("opviyoqgutocbnqn")
public suspend fun server(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.server = mapped
}
/**
* @param value The username to use for this Container Registry, `password_secret_name` must also be supplied..
*/
@JvmName("mjxgylorlhmdntrr")
public suspend fun username(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): AppRegistryArgs = AppRegistryArgs(
identity = identity,
passwordSecretName = passwordSecretName,
server = server ?: throw PulumiNullFieldException("server"),
username = username,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy