Volume class

A data volume used in a task definition. For tasks that use the Amazon Elastic File System (Amazon EFS), specify an efsVolumeConfiguration. For Windows tasks that use Amazon FSx for Windows File Server file system, specify a fsxWindowsFileServerVolumeConfiguration. For tasks that use a Docker volume, specify a DockerVolumeConfiguration. For tasks that use a bind mount host volume, specify a host and optional sourcePath. For more information, see Using Data Volumes in Tasks.

Constructors

Volume({DockerVolumeConfiguration? dockerVolumeConfiguration, EFSVolumeConfiguration? efsVolumeConfiguration, FSxWindowsFileServerVolumeConfiguration? fsxWindowsFileServerVolumeConfiguration, HostVolumeProperties? host, String? name})
Volume.fromJson(Map<String, dynamic> json)
factory

Properties

dockerVolumeConfiguration DockerVolumeConfiguration?
This parameter is specified when you are using Docker volumes. Docker volumes are only supported when you are using the EC2 launch type. Windows containers only support the use of the local driver. To use bind mounts, specify the host parameter instead.
final
efsVolumeConfiguration EFSVolumeConfiguration?
This parameter is specified when you are using an Amazon Elastic File System file system for task storage.
final
fsxWindowsFileServerVolumeConfiguration FSxWindowsFileServerVolumeConfiguration?
This parameter is specified when you are using Amazon FSx for Windows File Server file system for task storage.
final
hashCode int
The hash code for this object.
no setterinherited
host HostVolumeProperties?
This parameter is specified when you are using bind mount host volumes. The contents of the host parameter determine whether your bind mount host volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data is not guaranteed to persist after the containers associated with it stop running.
final
name String?
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, and hyphens are allowed. This name is referenced in the sourceVolume parameter of container definition mountPoints.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited