Class CfnDeployment.ComponentRunWithProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeployment.ComponentRunWithProperty>
- Enclosing interface:
CfnDeployment.ComponentRunWithProperty
CfnDeployment.ComponentRunWithProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDeployment.ComponentRunWithProperty.getPosixUser()
systemResourceLimits
(IResolvable systemResourceLimits) Sets the value ofCfnDeployment.ComponentRunWithProperty.getSystemResourceLimits()
systemResourceLimits
(CfnDeployment.SystemResourceLimitsProperty systemResourceLimits) Sets the value ofCfnDeployment.ComponentRunWithProperty.getSystemResourceLimits()
windowsUser
(String windowsUser) Sets the value ofCfnDeployment.ComponentRunWithProperty.getWindowsUser()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
posixUser
@Stability(Stable) public CfnDeployment.ComponentRunWithProperty.Builder posixUser(String posixUser) Sets the value ofCfnDeployment.ComponentRunWithProperty.getPosixUser()
- Parameters:
posixUser
- The POSIX system user and (optional) group to use to run this component. 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 AWS IoT Greengrass Core software uses the primary user for the group.- Returns:
this
-
systemResourceLimits
@Stability(Stable) public CfnDeployment.ComponentRunWithProperty.Builder systemResourceLimits(IResolvable systemResourceLimits) Sets the value ofCfnDeployment.ComponentRunWithProperty.getSystemResourceLimits()
- Parameters:
systemResourceLimits
- The system resource limits to apply to this component's process on the core device. AWS IoT Greengrass supports this feature only on Linux core devices.If you omit this parameter, the AWS IoT Greengrass Core software uses the default system resource limits that you configure on the AWS IoT Greengrass nucleus component. For more information, see Configure system resource limits for components .
- Returns:
this
-
systemResourceLimits
@Stability(Stable) public CfnDeployment.ComponentRunWithProperty.Builder systemResourceLimits(CfnDeployment.SystemResourceLimitsProperty systemResourceLimits) Sets the value ofCfnDeployment.ComponentRunWithProperty.getSystemResourceLimits()
- Parameters:
systemResourceLimits
- The system resource limits to apply to this component's process on the core device. AWS IoT Greengrass supports this feature only on Linux core devices.If you omit this parameter, the AWS IoT Greengrass Core software uses the default system resource limits that you configure on the AWS IoT Greengrass nucleus component. For more information, see Configure system resource limits for components .
- Returns:
this
-
windowsUser
@Stability(Stable) public CfnDeployment.ComponentRunWithProperty.Builder windowsUser(String windowsUser) Sets the value ofCfnDeployment.ComponentRunWithProperty.getWindowsUser()
- Parameters:
windowsUser
- 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 AWS IoT Greengrass Core software uses the default Windows user that you configure on the AWS IoT Greengrass nucleus component. For more information, see Configure the user and group that run components .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeployment.ComponentRunWithProperty>
- Returns:
- a new instance of
CfnDeployment.ComponentRunWithProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-