Struct aws_sdk_batch::model::volume::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Volume
.
Implementations§
source§impl Builder
impl Builder
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 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 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
.