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

com.pulumi.awsnative.batch.kotlin.outputs.JobDefinitionEksVolume.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.batch.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property emptyDir Specifies the configuration of a Kubernetes `emptyDir` volume. For more information, see [emptyDir](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) in the *Kubernetes documentation* .
 * @property hostPath Specifies the configuration of a Kubernetes `hostPath` volume. For more information, see [hostPath](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/#hostpath) in the *Kubernetes documentation* .
 * @property name The name of the volume. The name must be allowed as a DNS subdomain name. For more information, see [DNS subdomain names](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names) in the *Kubernetes documentation* .
 * @property secret Specifies the configuration of a Kubernetes `secret` volume. For more information, see [secret](https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/#secret) in the *Kubernetes documentation* .
 */
public data class JobDefinitionEksVolume(
    public val emptyDir: JobDefinitionEksEmptyDir? = null,
    public val hostPath: JobDefinitionEksHostPath? = null,
    public val name: String,
    public val secret: JobDefinitionEksSecret? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.batch.outputs.JobDefinitionEksVolume): JobDefinitionEksVolume = JobDefinitionEksVolume(
            emptyDir = javaType.emptyDir().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.batch.kotlin.outputs.JobDefinitionEksEmptyDir.Companion.toKotlin(args0)
                })
            }).orElse(null),
            hostPath = javaType.hostPath().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.batch.kotlin.outputs.JobDefinitionEksHostPath.Companion.toKotlin(args0)
                })
            }).orElse(null),
            name = javaType.name(),
            secret = javaType.secret().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.batch.kotlin.outputs.JobDefinitionEksSecret.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy