Struct aws_sdk_greengrassv2::types::ComponentRunWith
source · #[non_exhaustive]pub struct ComponentRunWith {
pub posix_user: Option<String>,
pub system_resource_limits: Option<SystemResourceLimits>,
pub windows_user: Option<String>,
}
Expand description
Contains information system user and group that the IoT Greengrass Core software uses to run component processes on the core device. For more information, see Configure the user and group that run components in the IoT Greengrass V2 Developer Guide.
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.posix_user: Option<String>
The POSIX system user and, optionally, group to use to run this component on Linux core devices. The user, and group if specified, must exist on each Linux core device. Specify the user and group separated by a colon (:
) in the following format: user:group
. The group is optional. If you don't specify a group, the IoT Greengrass Core software uses the primary user for the group.
If you omit this parameter, the IoT Greengrass Core software uses the default system user and group that you configure on the Greengrass nucleus component. For more information, see Configure the user and group that run components.
system_resource_limits: Option<SystemResourceLimits>
The system resource limits to apply to this component's process on the core device. IoT Greengrass currently supports this feature on only Linux core devices.
If you omit this parameter, the IoT Greengrass Core software uses the default system resource limits that you configure on the Greengrass nucleus component. For more information, see Configure system resource limits for components.
windows_user: Option<String>
The Windows user to use to run this component on Windows core devices. The user must exist on each Windows core device, and its name and password must be in the LocalSystem account's Credentials Manager instance.
If you omit this parameter, the IoT Greengrass Core software uses the default Windows user that you configure on the Greengrass nucleus component. For more information, see Configure the user and group that run components.
Implementations§
source§impl ComponentRunWith
impl ComponentRunWith
sourcepub fn posix_user(&self) -> Option<&str>
pub fn posix_user(&self) -> Option<&str>
The POSIX system user and, optionally, group to use to run this component on Linux core devices. The user, and group if specified, must exist on each Linux core device. Specify the user and group separated by a colon (:
) in the following format: user:group
. The group is optional. If you don't specify a group, the IoT Greengrass Core software uses the primary user for the group.
If you omit this parameter, the IoT Greengrass Core software uses the default system user and group that you configure on the Greengrass nucleus component. For more information, see Configure the user and group that run components.
sourcepub fn system_resource_limits(&self) -> Option<&SystemResourceLimits>
pub fn system_resource_limits(&self) -> Option<&SystemResourceLimits>
The system resource limits to apply to this component's process on the core device. IoT Greengrass currently supports this feature on only Linux core devices.
If you omit this parameter, the IoT Greengrass Core software uses the default system resource limits that you configure on the Greengrass nucleus component. For more information, see Configure system resource limits for components.
sourcepub fn windows_user(&self) -> Option<&str>
pub fn windows_user(&self) -> Option<&str>
The Windows user to use to run this component on Windows core devices. The user must exist on each Windows core device, and its name and password must be in the LocalSystem account's Credentials Manager instance.
If you omit this parameter, the IoT Greengrass Core software uses the default Windows user that you configure on the Greengrass nucleus component. For more information, see Configure the user and group that run components.
source§impl ComponentRunWith
impl ComponentRunWith
sourcepub fn builder() -> ComponentRunWithBuilder
pub fn builder() -> ComponentRunWithBuilder
Creates a new builder-style object to manufacture ComponentRunWith
.
Trait Implementations§
source§impl Clone for ComponentRunWith
impl Clone for ComponentRunWith
source§fn clone(&self) -> ComponentRunWith
fn clone(&self) -> ComponentRunWith
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComponentRunWith
impl Debug for ComponentRunWith
source§impl PartialEq for ComponentRunWith
impl PartialEq for ComponentRunWith
source§fn eq(&self, other: &ComponentRunWith) -> bool
fn eq(&self, other: &ComponentRunWith) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComponentRunWith
Auto Trait Implementations§
impl Freeze for ComponentRunWith
impl RefUnwindSafe for ComponentRunWith
impl Send for ComponentRunWith
impl Sync for ComponentRunWith
impl Unpin for ComponentRunWith
impl UnwindSafe for ComponentRunWith
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