
com.pulumi.awsnative.ecs.kotlin.outputs.TaskDefinitionHostEntry.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.ecs.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* 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 TaskDefinitionHostEntry(
public val hostname: String? = null,
public val ipAddress: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.TaskDefinitionHostEntry): TaskDefinitionHostEntry = TaskDefinitionHostEntry(
hostname = javaType.hostname().map({ args0 -> args0 }).orElse(null),
ipAddress = javaType.ipAddress().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy