Struct aws_sdk_ecs::types::builders::VolumeBuilder
source · #[non_exhaustive]pub struct VolumeBuilder { /* private fields */ }
Expand description
A builder for Volume
.
Implementations§
source§impl VolumeBuilder
impl VolumeBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
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
.
This is required wwhen you use an Amazon EFS volume.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
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
.
This is required wwhen you use an Amazon EFS volume.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
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
.
This is required wwhen you use an Amazon EFS volume.
sourcepub fn host(self, input: HostVolumeProperties) -> Self
pub fn host(self, input: HostVolumeProperties) -> Self
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
.
sourcepub fn set_host(self, input: Option<HostVolumeProperties>) -> Self
pub fn set_host(self, input: Option<HostVolumeProperties>) -> Self
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
.
sourcepub fn get_host(&self) -> &Option<HostVolumeProperties>
pub fn get_host(&self) -> &Option<HostVolumeProperties>
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
.
sourcepub fn docker_volume_configuration(
self,
input: DockerVolumeConfiguration
) -> Self
pub fn docker_volume_configuration( self, input: DockerVolumeConfiguration ) -> Self
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.
sourcepub fn set_docker_volume_configuration(
self,
input: Option<DockerVolumeConfiguration>
) -> Self
pub fn set_docker_volume_configuration( self, input: Option<DockerVolumeConfiguration> ) -> Self
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.
sourcepub fn get_docker_volume_configuration(
&self
) -> &Option<DockerVolumeConfiguration>
pub fn get_docker_volume_configuration( &self ) -> &Option<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.
sourcepub fn efs_volume_configuration(self, input: EfsVolumeConfiguration) -> Self
pub fn efs_volume_configuration(self, input: EfsVolumeConfiguration) -> Self
This parameter is specified when you use an Amazon Elastic File System file system for task storage.
sourcepub fn set_efs_volume_configuration(
self,
input: Option<EfsVolumeConfiguration>
) -> Self
pub fn set_efs_volume_configuration( self, input: Option<EfsVolumeConfiguration> ) -> Self
This parameter is specified when you use an Amazon Elastic File System file system for task storage.
sourcepub fn get_efs_volume_configuration(&self) -> &Option<EfsVolumeConfiguration>
pub fn get_efs_volume_configuration(&self) -> &Option<EfsVolumeConfiguration>
This parameter is specified when you use an Amazon Elastic File System file system for task storage.
sourcepub fn fsx_windows_file_server_volume_configuration(
self,
input: FSxWindowsFileServerVolumeConfiguration
) -> Self
pub fn fsx_windows_file_server_volume_configuration( self, input: FSxWindowsFileServerVolumeConfiguration ) -> Self
This parameter is specified when you use Amazon FSx for Windows File Server file system for task storage.
sourcepub fn set_fsx_windows_file_server_volume_configuration(
self,
input: Option<FSxWindowsFileServerVolumeConfiguration>
) -> Self
pub fn set_fsx_windows_file_server_volume_configuration( self, input: Option<FSxWindowsFileServerVolumeConfiguration> ) -> Self
This parameter is specified when you use Amazon FSx for Windows File Server file system for task storage.
sourcepub fn get_fsx_windows_file_server_volume_configuration(
&self
) -> &Option<FSxWindowsFileServerVolumeConfiguration>
pub fn get_fsx_windows_file_server_volume_configuration( &self ) -> &Option<FSxWindowsFileServerVolumeConfiguration>
This parameter is specified when you use Amazon FSx for Windows File Server file system for task storage.
Trait Implementations§
source§impl Clone for VolumeBuilder
impl Clone for VolumeBuilder
source§fn clone(&self) -> VolumeBuilder
fn clone(&self) -> VolumeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VolumeBuilder
impl Debug for VolumeBuilder
source§impl Default for VolumeBuilder
impl Default for VolumeBuilder
source§fn default() -> VolumeBuilder
fn default() -> VolumeBuilder
source§impl PartialEq for VolumeBuilder
impl PartialEq for VolumeBuilder
source§fn eq(&self, other: &VolumeBuilder) -> bool
fn eq(&self, other: &VolumeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.