
com.pulumi.awsnative.lightsail.kotlin.inputs.ContainerPrivateRegistryAccessArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.lightsail.kotlin.inputs
import com.pulumi.awsnative.lightsail.inputs.ContainerPrivateRegistryAccessArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.
* @property ecrImagePullerRole An object to describe a request to activate or deactivate the role that you can use to grant an Amazon Lightsail container service access to Amazon Elastic Container Registry (Amazon ECR) private repositories.
*/
public data class ContainerPrivateRegistryAccessArgs(
public val ecrImagePullerRole: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lightsail.inputs.ContainerPrivateRegistryAccessArgs =
com.pulumi.awsnative.lightsail.inputs.ContainerPrivateRegistryAccessArgs.builder()
.ecrImagePullerRole(
ecrImagePullerRole?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ContainerPrivateRegistryAccessArgs].
*/
@PulumiTagMarker
public class ContainerPrivateRegistryAccessArgsBuilder internal constructor() {
private var ecrImagePullerRole:
Output? = null
/**
* @param value An object to describe a request to activate or deactivate the role that you can use to grant an Amazon Lightsail container service access to Amazon Elastic Container Registry (Amazon ECR) private repositories.
*/
@JvmName("xiendktqorttxnkh")
public suspend fun ecrImagePullerRole(`value`: Output) {
this.ecrImagePullerRole = value
}
/**
* @param value An object to describe a request to activate or deactivate the role that you can use to grant an Amazon Lightsail container service access to Amazon Elastic Container Registry (Amazon ECR) private repositories.
*/
@JvmName("edfwafdafrnrqfnu")
public suspend fun ecrImagePullerRole(`value`: ContainerPrivateRegistryAccessEcrImagePullerRolePropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ecrImagePullerRole = mapped
}
/**
* @param argument An object to describe a request to activate or deactivate the role that you can use to grant an Amazon Lightsail container service access to Amazon Elastic Container Registry (Amazon ECR) private repositories.
*/
@JvmName("fgxhlvsoyxwatldy")
public suspend fun ecrImagePullerRole(argument: suspend ContainerPrivateRegistryAccessEcrImagePullerRolePropertiesArgsBuilder.() -> Unit) {
val toBeMapped =
ContainerPrivateRegistryAccessEcrImagePullerRolePropertiesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ecrImagePullerRole = mapped
}
internal fun build(): ContainerPrivateRegistryAccessArgs = ContainerPrivateRegistryAccessArgs(
ecrImagePullerRole = ecrImagePullerRole,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy