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.
When using a volume configured at launch, the name
is required and must also be specified as the volume name in the ServiceVolumeConfiguration
or TaskVolumeConfiguration
parameter when creating your service or standalone task.
For all other types of volumes, this name is referenced in the sourceVolume
parameter of the mountPoints
object in the container definition.
When a volume is using the efsVolumeConfiguration
, the name is required.
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.
When using a volume configured at launch, the name
is required and must also be specified as the volume name in the ServiceVolumeConfiguration
or TaskVolumeConfiguration
parameter when creating your service or standalone task.
For all other types of volumes, this name is referenced in the sourceVolume
parameter of the mountPoints
object in the container definition.
When a volume is using the efsVolumeConfiguration
, the name is required.
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.
When using a volume configured at launch, the name
is required and must also be specified as the volume name in the ServiceVolumeConfiguration
or TaskVolumeConfiguration
parameter when creating your service or standalone task.
For all other types of volumes, this name is referenced in the sourceVolume
parameter of the mountPoints
object in the container definition.
When a volume is using the efsVolumeConfiguration
, the name is required.
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.
sourcepub fn configured_at_launch(self, input: bool) -> Self
pub fn configured_at_launch(self, input: bool) -> Self
Indicates whether the volume should be configured at launch time. This is used to create Amazon EBS volumes for standalone tasks or tasks created as part of a service. Each task definition revision may only have one volume configured at launch in the volume configuration.
To configure a volume at launch time, use this task definition revision and specify a volumeConfigurations
object when calling the CreateService
, UpdateService
, RunTask
or StartTask
APIs.
sourcepub fn set_configured_at_launch(self, input: Option<bool>) -> Self
pub fn set_configured_at_launch(self, input: Option<bool>) -> Self
Indicates whether the volume should be configured at launch time. This is used to create Amazon EBS volumes for standalone tasks or tasks created as part of a service. Each task definition revision may only have one volume configured at launch in the volume configuration.
To configure a volume at launch time, use this task definition revision and specify a volumeConfigurations
object when calling the CreateService
, UpdateService
, RunTask
or StartTask
APIs.
sourcepub fn get_configured_at_launch(&self) -> &Option<bool>
pub fn get_configured_at_launch(&self) -> &Option<bool>
Indicates whether the volume should be configured at launch time. This is used to create Amazon EBS volumes for standalone tasks or tasks created as part of a service. Each task definition revision may only have one volume configured at launch in the volume configuration.
To configure a volume at launch time, use this task definition revision and specify a volumeConfigurations
object when calling the CreateService
, UpdateService
, RunTask
or StartTask
APIs.
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 ==
.