TaskDefinitionVolumeDockerVolumeConfiguration

data class TaskDefinitionVolumeDockerVolumeConfiguration(val autoprovision: Boolean? = null, val driver: String? = null, val driverOpts: Map<String, String>? = null, val labels: Map<String, String>? = null, val scope: String? = null)

Constructors

constructor(autoprovision: Boolean? = null, driver: String? = null, driverOpts: Map<String, String>? = null, labels: Map<String, String>? = null, scope: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val autoprovision: Boolean? = null

If this value is true, the Docker volume is created if it does not already exist. Note: This field is only used if the scope is shared.

Link copied to clipboard
val driver: String? = null

Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement.

Link copied to clipboard
val driverOpts: Map<String, String>? = null

Map of Docker driver specific options.

Link copied to clipboard
val labels: Map<String, String>? = null

Map of custom metadata to add to your Docker volume.

Link copied to clipboard
val scope: String? = null

Scope for the Docker volume, which determines its lifecycle, either task or shared. Docker volumes that are scoped to a task are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are scoped as shared persist after the task stops.