You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ECS::Types::Volume

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb

Overview

Note:

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

Instance Attribute Details

#hostTypes::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.



4215
4216
4217
4218
4219
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4215

class Volume < Struct.new(
  :name,
  :host)
  include Aws::Structure
end

#nameString

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.

Returns:

  • (String)


4215
4216
4217
4218
4219
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 4215

class Volume < Struct.new(
  :name,
  :host)
  include Aws::Structure
end