#[non_exhaustive]pub struct ComponentRunWithBuilder { /* private fields */ }
Expand description
A builder for ComponentRunWith
.
Implementations§
source§impl ComponentRunWithBuilder
impl ComponentRunWithBuilder
sourcepub fn posix_user(self, input: impl Into<String>) -> Self
pub fn posix_user(self, input: impl Into<String>) -> Self
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 set_posix_user(self, input: Option<String>) -> Self
pub fn set_posix_user(self, input: Option<String>) -> Self
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 get_posix_user(&self) -> &Option<String>
pub fn get_posix_user(&self) -> &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.
sourcepub fn system_resource_limits(self, input: SystemResourceLimits) -> Self
pub fn system_resource_limits(self, input: SystemResourceLimits) -> Self
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 set_system_resource_limits(
self,
input: Option<SystemResourceLimits>,
) -> Self
pub fn set_system_resource_limits( self, input: Option<SystemResourceLimits>, ) -> Self
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 get_system_resource_limits(&self) -> &Option<SystemResourceLimits>
pub fn get_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, input: impl Into<String>) -> Self
pub fn windows_user(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_windows_user(self, input: Option<String>) -> Self
pub fn set_windows_user(self, input: Option<String>) -> Self
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.
sourcepub fn get_windows_user(&self) -> &Option<String>
pub fn get_windows_user(&self) -> &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.
sourcepub fn build(self) -> ComponentRunWith
pub fn build(self) -> ComponentRunWith
Consumes the builder and constructs a ComponentRunWith
.
Trait Implementations§
source§impl Clone for ComponentRunWithBuilder
impl Clone for ComponentRunWithBuilder
source§fn clone(&self) -> ComponentRunWithBuilder
fn clone(&self) -> ComponentRunWithBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComponentRunWithBuilder
impl Debug for ComponentRunWithBuilder
source§impl Default for ComponentRunWithBuilder
impl Default for ComponentRunWithBuilder
source§fn default() -> ComponentRunWithBuilder
fn default() -> ComponentRunWithBuilder
source§impl PartialEq for ComponentRunWithBuilder
impl PartialEq for ComponentRunWithBuilder
source§fn eq(&self, other: &ComponentRunWithBuilder) -> bool
fn eq(&self, other: &ComponentRunWithBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComponentRunWithBuilder
Auto Trait Implementations§
impl Freeze for ComponentRunWithBuilder
impl RefUnwindSafe for ComponentRunWithBuilder
impl Send for ComponentRunWithBuilder
impl Sync for ComponentRunWithBuilder
impl Unpin for ComponentRunWithBuilder
impl UnwindSafe for ComponentRunWithBuilder
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