Struct aws_sdk_batch::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 host(self, input: Host) -> Self
pub fn host(self, input: Host) -> Self
The contents of the host
parameter determine whether your data 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.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
sourcepub fn set_host(self, input: Option<Host>) -> Self
pub fn set_host(self, input: Option<Host>) -> Self
The contents of the host
parameter determine whether your data 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.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
sourcepub fn get_host(&self) -> &Option<Host>
pub fn get_host(&self) -> &Option<Host>
The contents of the host
parameter determine whether your data 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.
This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume
parameter of container definition mountPoints
.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume
parameter of container definition mountPoints
.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the sourceVolume
parameter of container definition mountPoints
.
sourcepub fn efs_volume_configuration(self, input: EfsVolumeConfiguration) -> Self
pub fn efs_volume_configuration(self, input: EfsVolumeConfiguration) -> Self
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a platformVersion
of at least 1.4.0
.
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're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a platformVersion
of at least 1.4.0
.
sourcepub fn get_efs_volume_configuration(&self) -> &Option<EfsVolumeConfiguration>
pub fn get_efs_volume_configuration(&self) -> &Option<EfsVolumeConfiguration>
This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a platformVersion
of at least 1.4.0
.
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<VolumeBuilder> for VolumeBuilder
impl PartialEq<VolumeBuilder> 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 ==
.