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: Option<bool>,
pub max_swap: Option<i32>,
pub shared_memory_size: Option<i32>,
pub swappiness: Option<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: Option<bool>
Whether to run an init
process inside the container that forwards signals and reaps processes.
max_swap: Option<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: Option<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
) -> &[AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails]
pub fn devices( &self ) -> &[AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDevicesDetails]
The host devices to expose to the container.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .devices.is_none()
.
sourcepub fn init_process_enabled(&self) -> Option<bool>
pub fn init_process_enabled(&self) -> Option<bool>
Whether to run an init
process inside the container that forwards signals and reaps processes.
sourcepub fn max_swap(&self) -> Option<i32>
pub fn max_swap(&self) -> Option<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) -> Option<i32>
pub fn swappiness(&self) -> Option<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
) -> &[AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
pub fn tmpfs( &self ) -> &[AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersTmpfsDetails]
The container path, mount options, and size (in MiB) of the tmpfs mount.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tmpfs.is_none()
.
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 ==
.impl StructuralPartialEq for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
Auto Trait Implementations§
impl Freeze for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
impl RefUnwindSafe for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
impl Send for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
impl Sync for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
impl Unpin for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
impl UnwindSafe for AwsEcsTaskDefinitionContainerDefinitionsLinuxParametersDetails
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more