Struct aws_sdk_securityhub::types::AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
source · #[non_exhaustive]pub struct AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails {
pub capabilities: Option<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails>,
pub devices: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails>>,
pub init_process_enabled: bool,
pub max_swap: i32,
pub shared_memory_size: i32,
pub swappiness: i32,
pub tmpfs: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails>>,
}
Expand description
>Linux-specific modifications that are applied to the container, such as Linux kernel capabilities.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.capabilities: Option<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails>
The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.
devices: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails>>
The host devices to expose to the container.
init_process_enabled: bool
Whether to run an init
process inside the container that forwards signals and reaps processes.
max_swap: i32
The total amount of swap memory (in MiB) that a container can use.
The value for the size (in MiB) of the /dev/shm volume.
swappiness: i32
Configures the container's memory swappiness behavior. Determines how aggressively pages are swapped. The higher the value, the more aggressive the swappiness. The default is 60.
tmpfs: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails>>
The container path, mount options, and size (in MiB) of the tmpfs mount.
Implementations§
source§impl AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
impl AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
sourcepub fn capabilities(
&self
) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails>
pub fn capabilities( &self ) -> Option<&AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersCapabilitiesDetails>
The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.
sourcepub fn devices(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails]>
pub fn devices( &self ) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails]>
The host devices to expose to the container.
sourcepub fn init_process_enabled(&self) -> bool
pub fn init_process_enabled(&self) -> bool
Whether to run an init
process inside the container that forwards signals and reaps processes.
sourcepub fn max_swap(&self) -> i32
pub fn max_swap(&self) -> i32
The total amount of swap memory (in MiB) that a container can use.
The value for the size (in MiB) of the /dev/shm volume.
sourcepub fn swappiness(&self) -> i32
pub fn swappiness(&self) -> i32
Configures the container's memory swappiness behavior. Determines how aggressively pages are swapped. The higher the value, the more aggressive the swappiness. The default is 60.
sourcepub fn tmpfs(
&self
) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]>
pub fn tmpfs( &self ) -> Option<&[AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]>
The container path, mount options, and size (in MiB) of the tmpfs mount.
source§impl AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
impl AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
sourcepub fn builder(
) -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetailsBuilder
pub fn builder( ) -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetailsBuilder
Creates a new builder-style object to manufacture AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
.
Trait Implementations§
source§impl Clone for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
impl Clone for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
source§fn clone(
&self
) -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
fn clone( &self ) -> AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
impl PartialEq for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
source§fn eq(
&self,
other: &AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
) -> bool
fn eq( &self, other: &AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails ) -> bool
self
and other
values to be equal, and is used
by ==
.