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

Class: Aws::Batch::Types::Volume

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Volume as input to an Aws::Client method, you can use a vanilla Hash:

{
  host: {
    source_path: "String",
  },
  name: "String",
}

A data volume used in a job's container properties.

Instance Attribute Summary collapse

Instance Attribute Details

#hostTypes::Host

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. However, the data is not guaranteed to persist after the containers associated with it stop running.

Returns:

  • (Types::Host)

    The contents of the host parameter determine whether your data volume persists on the host container instance and where it is stored.

#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)

    The name of the volume.