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 use Docker volumes.
|
Volume.Builder |
dockerVolumeConfiguration(DockerVolumeConfiguration dockerVolumeConfiguration)
This parameter is specified when you use Docker volumes.
|
default Volume.Builder |
efsVolumeConfiguration(Consumer<EFSVolumeConfiguration.Builder> efsVolumeConfiguration)
This parameter is specified when you use an Amazon Elastic File System file system for task storage.
|
Volume.Builder |
efsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)
This parameter is specified when you use an Amazon Elastic File System file system for task storage.
|
default Volume.Builder |
fsxWindowsFileServerVolumeConfiguration(Consumer<FSxWindowsFileServerVolumeConfiguration.Builder> fsxWindowsFileServerVolumeConfiguration)
This parameter is specified when you use Amazon FSx for Windows File Server file system for task storage.
|
Volume.Builder |
fsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration fsxWindowsFileServerVolumeConfiguration)
This parameter is specified when you use 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 use bind mount host volumes.
|
Volume.Builder |
host(HostVolumeProperties host)
This parameter is specified when you use bind mount host volumes.
|
Volume.Builder |
name(String name)
The name of the volume.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildVolume.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 use 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's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your
data volume. However, the data isn't guaranteed to persist after the containers that are associated with it
stop running.
Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows
containers can't mount directories on a different drive, and mount point can't 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 use 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's stored. If the host parameter is empty, then the Docker
daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after
the containers that are associated with it stop running.
Windows containers can mount whole directories on the same drive as $env:ProgramData.
Windows containers can't mount directories on a different drive, and mount point can't 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 use 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's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your
data volume. However, the data isn't guaranteed to persist after the containers that are associated with it
stop running.
Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows
containers can't mount directories on a different drive, and mount point can't 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.Builderhost(HostVolumeProperties)Volume.Builder dockerVolumeConfiguration(DockerVolumeConfiguration dockerVolumeConfiguration)
This parameter is specified when you use Docker volumes.
Windows containers only support the use of the local driver. To use bind mounts, specify the
host parameter instead.
Docker volumes aren't supported by tasks run on Fargate.
dockerVolumeConfiguration - This parameter is specified when you use Docker volumes.
Windows containers only support the use of the local driver. To use bind mounts, specify
the host parameter instead.
Docker volumes aren't supported by tasks run on Fargate.
default Volume.Builder dockerVolumeConfiguration(Consumer<DockerVolumeConfiguration.Builder> dockerVolumeConfiguration)
This parameter is specified when you use Docker volumes.
Windows containers only support the use of the local driver. To use bind mounts, specify the
host parameter instead.
Docker volumes aren't 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.BuilderdockerVolumeConfiguration(DockerVolumeConfiguration)Volume.Builder efsVolumeConfiguration(EFSVolumeConfiguration efsVolumeConfiguration)
This parameter is specified when you use an Amazon Elastic File System file system for task storage.
efsVolumeConfiguration - This parameter is specified when you use an Amazon Elastic File System file system for task storage.default Volume.Builder efsVolumeConfiguration(Consumer<EFSVolumeConfiguration.Builder> efsVolumeConfiguration)
This parameter is specified when you use an Amazon Elastic File System file system for task storage.
This is a convenience method 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.BuilderefsVolumeConfiguration(EFSVolumeConfiguration)Volume.Builder fsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration fsxWindowsFileServerVolumeConfiguration)
This parameter is specified when you use Amazon FSx for Windows File Server file system for task storage.
fsxWindowsFileServerVolumeConfiguration - This parameter is specified when you use 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 use Amazon FSx for Windows File Server file system for task storage.
This is a convenience method 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.BuilderfsxWindowsFileServerVolumeConfiguration(FSxWindowsFileServerVolumeConfiguration)Copyright © 2023. All rights reserved.