Class: Aws::ECS::Types::Volume
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECS::Types::Volume
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ecs/types.rb
Overview
When making an API call, you may pass Volume data as a hash:
{
name: "String",
host: {
source_path: "String",
},
}
A data volume used in a task definition.
Instance Attribute Summary collapse
-
#host ⇒ Types::HostVolumeProperties
The contents of the ‘host` parameter determine whether your data volume persists on the host container instance and where it is stored.
-
#name ⇒ String
The name of the volume.
Instance Attribute Details
#host ⇒ Types::HostVolumeProperties
The contents of the ‘host` parameter determine whether your data 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, but the data is not guaranteed to persist after the containers associated with it stop running.
Windows containers can mount whole directories on the same drive as ‘$env:ProgramData`. Windows containers cannot mount directories on a different drive, and mount point cannot be across drives. For example, you can mount `C:mypath:C:mypath` and `D::D:`, but not `D:mypath:C:mypath` or `D::C:mypath`.
5870 5871 5872 5873 5874 |
# File 'lib/aws-sdk-ecs/types.rb', line 5870 class Volume < Struct.new( :name, :host) include Aws::Structure end |
#name ⇒ String
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in the ‘sourceVolume` parameter of container definition `mountPoints`.
5870 5871 5872 5873 5874 |
# File 'lib/aws-sdk-ecs/types.rb', line 5870 class Volume < Struct.new( :name, :host) include Aws::Structure end |