public static interface Volume.Builder extends SdkPojo, CopyableBuilder<Volume.Builder,Volume>
Modifier and Type | Method and Description |
---|---|
default Volume.Builder |
dockerVolumeConfiguration(Consumer<DockerVolumeConfiguration.Builder> dockerVolumeConfiguration)
This parameter is specified when you are using Docker volumes.
|
Volume.Builder |
dockerVolumeConfiguration(DockerVolumeConfiguration dockerVolumeConfiguration)
This parameter is specified when you are using Docker volumes.
|
default Volume.Builder |
efsVolumeConfiguration(Consumer<EFSVolumeConfiguration.Builder> efsVolumeConfiguration)
This parameter is specified when you are using an Amazon Elastic File System file system for task storage.
|
Volume.Builder |
efsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)
This parameter is specified when you are using an Amazon Elastic File System file system for task storage.
|
default Volume.Builder |
fsxWindowsFileServerVolumeConfiguration(Consumer<FSxWindowsFileServerVolumeConfiguration.Builder> fsxWindowsFileServerVolumeConfiguration)
This parameter is specified when you are using Amazon FSx for Windows File Server file system for task
storage.
|
Volume.Builder |
fsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration fsxWindowsFileServerVolumeConfiguration)
This parameter is specified when you are using Amazon FSx for Windows File Server file system for task
storage.
|
default Volume.Builder |
host(Consumer<HostVolumeProperties.Builder> host)
This parameter is specified when you are using bind mount host volumes.
|
Volume.Builder |
host(HostVolumeProperties host)
This parameter is specified when you are using bind mount host volumes.
|
Volume.Builder |
name(String name)
The name of the volume.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Volume.Builder name(String name)
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are
allowed. This name is referenced in the sourceVolume
parameter of container definition
mountPoints
.
name
- The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens
are allowed. This name is referenced in the sourceVolume
parameter of container
definition mountPoints
.Volume.Builder host(HostVolumeProperties host)
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.
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:\my\path:C:\my\path
and D:\:D:\
, but not
D:\my\path:C:\my\path
or D:\:C:\my\path
.
host
- 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.
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:\my\path:C:\my\path
and D:\:D:\
, but
not D:\my\path:C:\my\path
or D:\:C:\my\path
.
default Volume.Builder host(Consumer<HostVolumeProperties.Builder> host)
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.
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:\my\path:C:\my\path
and D:\:D:\
, but not
D:\my\path:C:\my\path
or D:\:C:\my\path
.
HostVolumeProperties.Builder
avoiding the need
to create one manually via HostVolumeProperties.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to host(HostVolumeProperties)
.host
- a consumer that will call methods on HostVolumeProperties.Builder
host(HostVolumeProperties)
Volume.Builder dockerVolumeConfiguration(DockerVolumeConfiguration dockerVolumeConfiguration)
This parameter is specified when you are using Docker volumes.
Windows containers only support the use of the local
driver. To use bind mounts, specify the
host
parameter instead.
Docker volumes are not supported by tasks run on Fargate.
dockerVolumeConfiguration
- This parameter is specified when you are using Docker volumes.
Windows containers only support the use of the local
driver. To use bind mounts, specify
the host
parameter instead.
Docker volumes are not supported by tasks run on Fargate.
default Volume.Builder dockerVolumeConfiguration(Consumer<DockerVolumeConfiguration.Builder> dockerVolumeConfiguration)
This parameter is specified when you are using Docker volumes.
Windows containers only support the use of the local
driver. To use bind mounts, specify the
host
parameter instead.
Docker volumes are not supported by tasks run on Fargate.
DockerVolumeConfiguration.Builder
avoiding the need to create one manually via DockerVolumeConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to dockerVolumeConfiguration(DockerVolumeConfiguration)
.dockerVolumeConfiguration
- a consumer that will call methods on DockerVolumeConfiguration.Builder
dockerVolumeConfiguration(DockerVolumeConfiguration)
Volume.Builder efsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)
This parameter is specified when you are using an Amazon Elastic File System file system for task storage.
efsVolumeConfiguration
- This parameter is specified when you are using an Amazon Elastic File System file system for task
storage.default Volume.Builder efsVolumeConfiguration(Consumer<EFSVolumeConfiguration.Builder> efsVolumeConfiguration)
This parameter is specified when you are using an Amazon Elastic File System file system for task storage.
This is a convenience that creates an instance of theEFSVolumeConfiguration.Builder
avoiding the
need to create one manually via EFSVolumeConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to efsVolumeConfiguration(EFSVolumeConfiguration)
.efsVolumeConfiguration
- a consumer that will call methods on EFSVolumeConfiguration.Builder
efsVolumeConfiguration(EFSVolumeConfiguration)
Volume.Builder fsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration fsxWindowsFileServerVolumeConfiguration)
This parameter is specified when you are using Amazon FSx for Windows File Server file system for task storage.
fsxWindowsFileServerVolumeConfiguration
- This parameter is specified when you are using Amazon FSx for Windows File Server file system for task
storage.default Volume.Builder fsxWindowsFileServerVolumeConfiguration(Consumer<FSxWindowsFileServerVolumeConfiguration.Builder> fsxWindowsFileServerVolumeConfiguration)
This parameter is specified when you are using Amazon FSx for Windows File Server file system for task storage.
This is a convenience that creates an instance of theFSxWindowsFileServerVolumeConfiguration.Builder
avoiding the need to create one manually via FSxWindowsFileServerVolumeConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to
fsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration)
.fsxWindowsFileServerVolumeConfiguration
- a consumer that will call methods on FSxWindowsFileServerVolumeConfiguration.Builder
fsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration)
Copyright © 2021. All rights reserved.