TaskDefinitionVolumeDockerVolumeConfiguration constructor

const TaskDefinitionVolumeDockerVolumeConfiguration({
  1. Input<bool?>? autoprovision,
  2. Input<String?>? driver,
  3. Input<Map<String, String>?>? driverOpts,
  4. Input<Map<String, String>?>? labels,
  5. Input<String?>? scope,
})

Creates a new TaskDefinitionVolumeDockerVolumeConfiguration. autoprovision 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. driver Docker volume driver to use. The driver value must match the driver name provided by Docker because it is used for task placement. driverOpts Map of Docker driver specific options. labels Map of custom metadata to add to your Docker volume. scope 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.

Implementation

const TaskDefinitionVolumeDockerVolumeConfiguration({
  this.autoprovision,
  this.driver,
  this.driverOpts,
  this.labels,
  this.scope,
});