Struct aws_sdk_batch::model::efs_volume_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for EfsVolumeConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn file_system_id(self, input: impl Into<String>) -> Self
pub fn file_system_id(self, input: impl Into<String>) -> Self
The Amazon EFS file system ID to use.
sourcepub fn set_file_system_id(self, input: Option<String>) -> Self
pub fn set_file_system_id(self, input: Option<String>) -> Self
The Amazon EFS file system ID to use.
sourcepub fn root_directory(self, input: impl Into<String>) -> Self
pub fn root_directory(self, input: impl Into<String>) -> Self
The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume is used instead. Specifying /
has the same effect as omitting this parameter. The maximum length is 4,096 characters.
If an EFS access point is specified in the authorizationConfig
, the root directory parameter must either be omitted or set to /
, which enforces the path set on the Amazon EFS access point.
sourcepub fn set_root_directory(self, input: Option<String>) -> Self
pub fn set_root_directory(self, input: Option<String>) -> Self
The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume is used instead. Specifying /
has the same effect as omitting this parameter. The maximum length is 4,096 characters.
If an EFS access point is specified in the authorizationConfig
, the root directory parameter must either be omitted or set to /
, which enforces the path set on the Amazon EFS access point.
sourcepub fn transit_encryption(self, input: EfsTransitEncryption) -> Self
pub fn transit_encryption(self, input: EfsTransitEncryption) -> Self
Determines whether to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default value of DISABLED
is used. For more information, see Encrypting data in transit in the Amazon Elastic File System User Guide.
sourcepub fn set_transit_encryption(self, input: Option<EfsTransitEncryption>) -> Self
pub fn set_transit_encryption(self, input: Option<EfsTransitEncryption>) -> Self
Determines whether to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default value of DISABLED
is used. For more information, see Encrypting data in transit in the Amazon Elastic File System User Guide.
sourcepub fn transit_encryption_port(self, input: i32) -> Self
pub fn transit_encryption_port(self, input: i32) -> Self
The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you don't specify a transit encryption port, it uses the port selection strategy that the Amazon EFS mount helper uses. The value must be between 0 and 65,535. For more information, see EFS mount helper in the Amazon Elastic File System User Guide.
sourcepub fn set_transit_encryption_port(self, input: Option<i32>) -> Self
pub fn set_transit_encryption_port(self, input: Option<i32>) -> Self
The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you don't specify a transit encryption port, it uses the port selection strategy that the Amazon EFS mount helper uses. The value must be between 0 and 65,535. For more information, see EFS mount helper in the Amazon Elastic File System User Guide.
The authorization configuration details for the Amazon EFS file system.
The authorization configuration details for the Amazon EFS file system.
sourcepub fn build(self) -> EfsVolumeConfiguration
pub fn build(self) -> EfsVolumeConfiguration
Consumes the builder and constructs a EfsVolumeConfiguration
.