![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ecs.kotlin.outputs.ServiceVolumeConfiguration.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ecs.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* The configuration for a volume specified in the task definition as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume.
* @property managedEbsVolume The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
* @property name The name of the volume. This value must match the volume name from the ``Volume`` object in the task definition.
*/
public data class ServiceVolumeConfiguration(
public val managedEbsVolume: ServiceManagedEbsVolumeConfiguration? = null,
public val name: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.ServiceVolumeConfiguration): ServiceVolumeConfiguration = ServiceVolumeConfiguration(
managedEbsVolume = javaType.managedEbsVolume().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ecs.kotlin.outputs.ServiceManagedEbsVolumeConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
name = javaType.name(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy