Class CfnDeployment.SystemResourceLimitsProperty
Contains information about system resource limits that the software applies to a component's processes.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.GreengrassV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SystemResourceLimitsProperty : Object, CfnDeployment.ISystemResourceLimitsProperty
Syntax (vb)
Public Class SystemResourceLimitsProperty
Inherits Object
Implements CfnDeployment.ISystemResourceLimitsProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GreengrassV2;
var systemResourceLimitsProperty = new SystemResourceLimitsProperty {
Cpus = 123,
Memory = 123
};
Synopsis
Constructors
SystemResourceLimitsProperty() |
Properties
Cpus | The maximum amount of CPU time that a component's processes can use on the core device. |
Memory | The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device. |
Constructors
SystemResourceLimitsProperty()
public SystemResourceLimitsProperty()
Properties
Cpus
The maximum amount of CPU time that a component's processes can use on the core device.
public Nullable<double> Cpus { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
A core device's total CPU time is equivalent to the device's number of CPU cores. For example, on a core device with 4 CPU cores, you can set this value to 2 to limit the component's processes to 50 percent usage of each CPU core. On a device with 1 CPU core, you can set this value to 0.25 to limit the component's processes to 25 percent usage of the CPU. If you set this value to a number greater than the number of CPU cores, the AWS IoT Greengrass Core software doesn't limit the component's CPU usage.
Memory
The maximum amount of RAM, expressed in kilobytes, that a component's processes can use on the core device.
public Nullable<double> Memory { get; set; }
Property Value
System.Nullable<System.Double>