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

com.pulumi.awsnative.ecs.kotlin.inputs.TaskDefinitionHostEntryArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ecs.kotlin.inputs

import com.pulumi.awsnative.ecs.inputs.TaskDefinitionHostEntryArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The ``HostEntry`` property specifies a hostname and an IP address that are added to the ``/etc/hosts`` file of a container through the ``extraHosts`` parameter of its ``ContainerDefinition`` resource.
 * @property hostname The hostname to use in the ``/etc/hosts`` entry.
 * @property ipAddress The IP address to use in the ``/etc/hosts`` entry.
 */
public data class TaskDefinitionHostEntryArgs(
    public val hostname: Output? = null,
    public val ipAddress: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.TaskDefinitionHostEntryArgs =
        com.pulumi.awsnative.ecs.inputs.TaskDefinitionHostEntryArgs.builder()
            .hostname(hostname?.applyValue({ args0 -> args0 }))
            .ipAddress(ipAddress?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TaskDefinitionHostEntryArgs].
 */
@PulumiTagMarker
public class TaskDefinitionHostEntryArgsBuilder internal constructor() {
    private var hostname: Output? = null

    private var ipAddress: Output? = null

    /**
     * @param value The hostname to use in the ``/etc/hosts`` entry.
     */
    @JvmName("leexpseqlfghxqrk")
    public suspend fun hostname(`value`: Output) {
        this.hostname = value
    }

    /**
     * @param value The IP address to use in the ``/etc/hosts`` entry.
     */
    @JvmName("jwfclpiyobgaxgsb")
    public suspend fun ipAddress(`value`: Output) {
        this.ipAddress = value
    }

    /**
     * @param value The hostname to use in the ``/etc/hosts`` entry.
     */
    @JvmName("ycuirosatnljrwhn")
    public suspend fun hostname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostname = mapped
    }

    /**
     * @param value The IP address to use in the ``/etc/hosts`` entry.
     */
    @JvmName("ibwpsxbarwtgocan")
    public suspend fun ipAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddress = mapped
    }

    internal fun build(): TaskDefinitionHostEntryArgs = TaskDefinitionHostEntryArgs(
        hostname = hostname,
        ipAddress = ipAddress,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy