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

com.pulumi.awsnative.lightsail.kotlin.outputs.Container.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lightsail.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * Describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.
 * @property command The launch command for the container.
 * @property containerName The name of the container.
 * @property environment The environment variables of the container.
 * @property image The name of the image used for the container.
 * @property ports The open firewall ports of the container.
 */
public data class Container(
    public val command: List? = null,
    public val containerName: String? = null,
    public val environment: List? = null,
    public val image: String? = null,
    public val ports: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lightsail.outputs.Container): Container =
            Container(
                command = javaType.command().map({ args0 -> args0 }),
                containerName = javaType.containerName().map({ args0 -> args0 }).orElse(null),
                environment = javaType.environment().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.lightsail.kotlin.outputs.ContainerEnvironmentVariable.Companion.toKotlin(args0)
                    })
                }),
                image = javaType.image().map({ args0 -> args0 }).orElse(null),
                ports = javaType.ports().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.lightsail.kotlin.outputs.ContainerPortInfo.Companion.toKotlin(args0)
                    })
                }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy